URL Encoder/Decoder
Percent-encode and decode strings for safe URLs.
Input
Output
encodeURIComponent encodes query values; encodeURI leaves URL structure characters like : / ? #
In-depth explanation
Percent-encode strings for query parameters and path segments, or decode encoded URLs back to readable text. Everything runs locally in your browser — your inputs are not uploaded to produce the result.
Component encoding (default) escapes more characters — use it for query values. Full URI encoding leaves reserved characters like / and ? intact. On decode, + is treated as a space (common in form-encoded query strings).
Encoding runs locally in your browser. Tweak the inputs above to compare options, then copy or note the result you need.
Query values should use component encoding so ampersands and equals signs inside a value do not break the URL. Path encoding leaves some reserved characters. A plus sign on decode is treated as a space because form query strings still do that.
Double-encoding is a common bug (a percent sign that was already encoded). Decode once and inspect. This will not fetch the URL; it only transforms the string.
Frequently asked questions
Component vs full URI encoding?
Component encoding (default) escapes more characters — use it for query values. Full URI encoding leaves reserved characters like / and ? intact.
How are + signs handled?
On decode, + is treated as a space (common in form-encoded query strings).
Is my text uploaded?
No. Encoding runs locally in your browser.
Related tools
Explore similar utilities you might find useful next.
