Understanding URL Encoding
Percent encoding represents bytes as % followed by two hexadecimal digits. Non-ASCII characters are commonly encoded as several UTF-8 bytes. Encode the appropriate URL component, rather than assuming each character maps to one ASCII byte.
In a URL component, a space is percent-encoded as %20. Form-style application/x-www-form-urlencoded data represents spaces as +; a literal plus must be encoded. Choose an encoder for the component and data format.
URL encoding ensures that your web applications can handle international characters, special symbols, and reserved characters without breaking functionality. Reserved characters like ampersands (&), question marks (?), and equal signs (=) have special meaning in URLs, so they must be encoded when used as actual data values rather than URL structure delimiters.
Use the interactive tool below to encode and decode URLs easily. The reference table shows commonly encoded characters and their percent-encoded equivalents, helping you understand how different characters are represented in valid URLs.
URL Encoder & Decoder
Common URL Encoded Characters
| Character | URL Encoding | Description |
|---|---|---|
| (space) | %20 or + | Space character |
| ! | %21 | Exclamation mark |
| " | %22 | Quotation mark |
| # | %23 | Hash / Number sign |
| $ | %24 | Dollar sign |
| % | %25 | Percent sign |
| & | %26 | Ampersand |
| ' | %27 | Apostrophe |
| ( | %28 | Left parenthesis |
| ) | %29 | Right parenthesis |
| * | %2A | Asterisk |
| + | %2B | Plus sign |
| , | %2C | Comma |
| / | %2F | Forward slash |
| : | %3A | Colon |
| ; | %3B | Semicolon |
| = | %3D | Equal sign |
| ? | %3F | Question mark |
| @ | %40 | At sign |
| [ | %5B | Left square bracket |
| ] | %5D | Right square bracket |
| { | %7B | Left curly brace |
| } | %7D | Right curly brace |