Developer and design
URL encoder and decoder
Percent-encode text for use in URLs and query strings, or decode %20-style URLs back into readable text.
- Free
- No signup
- Nothing stored
Result
The result appears here as you type.
Why use it
URLs can only contain a limited set of characters. Spaces, accents, & and ? must be percent-encoded, or links break and parameters get cut off.
Encode a value before putting it into a link, or decode a long tracking URL to see what it really contains.
How to use it
- Choose Encode or Decode.
- Paste your text or URL.
- When encoding a single parameter value, keep Encode everything on; for a whole address, switch it off so / and ? are kept.
- Copy the result.
How it works and its limits
- “Encode everything” uses encodeURIComponent, which also encodes / ? & = and #. Whole-URL mode uses encodeURI.
- Decoding treats + as a space, as HTML forms do.
- Runs in your browser.
Questions
Why does a space become %20?
Spaces are not allowed in URLs, so they are replaced with % followed by their character code in hexadecimal: 20.
What is the difference between %20 and +?
Both mean a space in query strings submitted by forms. %20 is valid everywhere in a URL; + only means a space in the query part.
Should I encode a whole URL or only part of it?
Usually only the parts you insert, such as a search term or a query parameter value. Encoding a complete URL also encodes characters like : and /, which breaks the address.