URL Encoder / Decoder
Links hate spaces, emoji, and ampersands. Percent-encode any text so it survives inside a URL โ or decode a gnarly %20-filled string back into something human.
How to use
- Paste your text. A full URL, a query string, or any text with spaces and special characters.
- Choose Encode or Decode. Encoding makes text URL-safe; decoding turns %20-style gibberish back into words.
- Read the result. It updates live as you type โ no button needed.
- Copy it. Ready to paste into your link, code, or API call.
When encoding actually matters
URLs can only safely carry a small set of characters. Everything else โ spaces, ampersands, question marks, accents, emoji โ has to be encoded as percent-sign codes before a browser will move it reliably. You'll run into this when a link breaks because a product name contains an &, when a search term needs to ride inside a query string, or when an API rejects a request because a value wasn't encoded.
Two details trip people up. First, a space becomes %20 in most of a URL but a + in form-style query strings โ both are correct in their own neighbourhood. Second, encode the value, not the whole URL: encoding the slashes and question marks that give a link its structure will break it completely. Paste a full URL in here only if you want it encoded as one lump of data, which is exactly what you want when passing a link as a parameter to another link.
Frequently asked questions
How do I encode a URL online?
Paste the text into the box above with Encode selected. Spaces become %20, ampersands become %26, and so on โ the output is safe to drop into a query string or path. Unicode and emoji are handled correctly too.
What does %20 mean in a URL?
It's a percent-encoded space โ URLs can't contain raw spaces, so they're written as %20. Similarly %26 is &, %3F is ?, and %2F is /. Switch to Decode above and paste any encoded string to see the readable version.
What's the difference between encodeURI and encodeURIComponent?
encodeURIComponent encodes everything except plain letters, digits, and a few safe symbols โ the right choice for query values. encodeURI leaves URL structure characters like : / ? # alone โ the right choice for whole URLs. This tool uses encodeURIComponent semantics so values come out fully safe.
Is my text uploaded anywhere?
No โ encoding and decoding happen entirely in your browser. Paste URLs, tokens, and query strings with confidence.
Related tools
Keep the momentum going.