Encode
Turns plain text into a percent-encoded string that is safe to put in a URL. Spaces, symbols, and non-English characters become %XX codes.
a b&cAftera%20b%26cConvert text to a percent-encoded URL and back in one place. Pick a direction, set the encode options you want, type or paste your text, and click Encode or Decode to see the result. It handles spaces, symbols, and non-English characters, and everything runs in your browser so your text stays on your device.
URL encoding, also called percent-encoding, makes text safe to put in a web address. Only a limited set of characters is allowed in a URL, so anything outside that set is replaced with a percent sign and two hex digits. A space becomes %20, an ampersand becomes %26, and so on. This tool shows you the encoded form of your text, or turns an encoded URL back into readable text with one click.
Turns plain text into a percent-encoded string that is safe to put in a URL. Spaces, symbols, and non-English characters become %XX codes.
a b&cAftera%20b%26cTurns a percent-encoded string back into plain text. Every %XX code is read back to the character it stands for, and a + is read as a space.
a%20b%26cAftera b&cWrites each space as a + sign instead of %20. This is the form style used in query strings. Leave it off to keep spaces as %20, which works anywhere in a URL.
a b&cAftera+b%26cOn by default. Turns accents, emoji, and other non-English characters into their %XX byte codes. Turn it off to keep those characters readable while reserved characters are still escaped.
café ☕Aftercafé%20☕Leaves the characters that give a URL its structure alone (: / ? # & = and a few more) and only escapes the rest. Turn it on to encode a whole address in one go. Leave it off to escape a single query value or path segment.
https://x.com/a bAfterhttps://x.com/a%20bA URL can only use a limited set of characters. Letters, digits, and a few marks are allowed as-is. Everything else has to be escaped so it does not confuse the browser or the server. Encoding replaces each of those characters with a percent sign and the hex value of its bytes.
Here are a few characters and how they look once encoded:
| Character | Encoded | What it is |
|---|---|---|
| (space) | %20 | Space |
| & | %26 | Ampersand |
| = | %3D | Equals sign |
| ? | %3F | Question mark |
| é | %C3%A9 | Accented e (two UTF-8 bytes) |
You can check any of these yourself. Type the character into the tool above and click Encode to see its percent code.
Encoding and decoding URLs comes up often when you build for the web or work with APIs. Here are the most common reasons people use this tool: