URL Encoder / Decoder
Runs in your browserPercent-encode or decode text and full URLs for safe use in links and queries.
Plain text
Encoded
What is a URL Encoder / Decoder?
URLs can only contain a limited set of characters safely — letters, digits, and a handful of punctuation marks. Percent-encoding is how everything else, spaces, ampersands, non-ASCII text, gets represented: each byte outside the safe set becomes a % followed by two hexadecimal digits, so a space becomes %20 and é becomes %C3%A9.
There are two encoding modes because URLs have structure. Encoding a whole URI (encodeURI) leaves structural characters like :, /, ? and & alone, since those separate the parts of the URL. Encoding a single component (encodeURIComponent) escapes those same characters, because if the value you are inserting into a query string happens to contain an &, you need it escaped or it will be read as the start of the next parameter.
How to use it
- Choose Encode or Decode.
- For encoding, pick Component when you are building a query string value or path segment, or Full URI when you are encoding an entire URL and want to keep its structural characters intact.
- Type or paste your text. The result updates as you type.
- Copy the result, or use Swap to move the output back into the input and verify the round trip.
Examples
Component encoding
search?q=hello world & moresearch%3Fq%3Dhello%20world%20%26%20moreFull URI encoding
https://example.com/search?q=hello worldhttps://example.com/search?q=hello%20world