URL Encode & Decode Guide: Master Percent-Encoding
Spaces, ampersands, and emoji can all break a URL if they're not encoded correctly. A URL encoder/decoder makes sure your links and query parameters travel safely across the web.

Spaces, ampersands, and emoji can all break a URL if they're not encoded correctly. A URL encoder/decoder makes sure your links and query parameters travel safely across the web.
What is URL Encode & Decode Guide?
URL encoding (also called percent-encoding) replaces unsafe characters in a URL with a % followed by two hex digits โ for example, a space becomes %20. A URL encoder/decoder converts text to this safe form and back again.
How to use it
- Choose encode or decode mode.
- Paste your URL or text.
- Get the percent-encoded or decoded result instantly.
- Copy it, or parse a full URL to inspect its query parameters.
Key features
- Encode & decode โ Convert special characters to %XX and back with one click.
- Component vs full URL โ Choose encodeURIComponent for values or encodeURI for whole URLs.
- Query parameter parsing โ Break any URL into protocol, host, path, query, and hash.
- Unicode support โ Correctly handles accented characters and emoji as UTF-8.
Tips to get the most out of it
- Encode each query parameter value separately โ never encode the whole URL including the & and = separators.
- Use %20 (not +) for spaces in URL paths per RFC 3986.
- Decode logged URLs to read tracking and UTM parameters.
Frequently asked questions
What is percent-encoding?
It replaces unsafe URL characters with a % and their hex code, e.g. space โ %20.
encodeURI vs encodeURIComponent?
encodeURIComponent encodes structure characters like / ? & too; use it for values. encodeURI preserves them for whole URLs.
Why does my URL have %20 everywhere?
Those are encoded spaces โ decode the URL to see the readable version.
Is my data private?
Yes, all encoding and decoding happen in your browser.
Ready to try it? Open the tool and see your results instantly โ it's free, needs no login, and runs entirely in your browser.