What is percent-encoding?
DefinitionPercent-encoding, also called URL encoding, is a method of representing characters in a URL by replacing them with a percent sign followed by two hexadecimal digits, such as %20 for a space.
Also known as URL encoding
URLs can only contain a limited set of ASCII characters, and some characters, such as ?, &, = and #, have special meanings. Percent-encoding lets those characters, spaces and non-English text be included safely. Characters outside ASCII are first converted to UTF-8 bytes, and each byte is encoded, so the letter é becomes %C3%A9.
Web developers deal with percent-encoding when building query strings, redirects and share links, such as a share button that passes a page's title and URL to a social network, and JavaScript provides the encodeURIComponent() function for this. Forgetting to encode values can break links or UTM parameters, while encoding a value twice produces strings like %2520.
Percent-encoding resources
Topic: Web standards and protocols
Cite this definition
- APA
What is percent-encoding? (2026, November 22). Glossary. https://glossary.io/percent-encoding/
- MLA
“What Is Percent-Encoding?” Glossary, Coywolf, 22 Nov. 2026, glossary.io/percent-encoding/.
- Chicago
“What Is Percent-Encoding?” Glossary. Coywolf. November 22, 2026. https://glossary.io/percent-encoding/.
- HTML link
<a href="https://glossary.io/percent-encoding/">What is percent-encoding?</a>
Published