URL Encode & Decode (Percent Encoding)
Percent-encoding for URLs and query strings.
Free · no sign-up · runs locally·
About this tool
Percent-encoding escapes characters that have meaning in URLs. Component mode (encodeURIComponent) escapes everything reserved — right for query values; URL mode (encodeURI) preserves the characters that structure a URL. Both directions run live.
Like everything on encrypt.tools, this runs entirely in your browser — nothing you enter is transmitted or stored.
Do the same in a terminal
Reproduce or cross-check this tool with standard command-line utilities. For deterministic operations like hashing and encoding, the output matches exactly.
$ python3 -c 'import urllib.parse; print(urllib.parse.quote("a b&c=d/é", safe=""))'
a%20b%26c%3Dd%2F%C3%A9Frequently asked questions about URL Encoder
What's the difference between the two modes?+
Component mode (encodeURIComponent) escapes all reserved characters — right for query values. URL mode (encodeURI) preserves the characters that structure a URL, like : / and ?.
When do I need URL encoding?+
Whenever text goes into a URL — query parameters, path segments, or form data — so special characters like spaces, &, and = aren't misread.
Why did decoding fail?+
Malformed percent-encoding (a stray % or an incomplete %XX sequence) can't be decoded. Check the input for lone % signs.