URL Encoder / Decoder
Percent-encode text for safe use in URLs, or decode an encoded URL back to readable text. Handles Chinese, emoji, and special characters correctly — and shows both encodeURIComponent and full-URL variants.
Everything is processed locally in your browser — nothing is sent anywhere.
encodeURIComponentSafe for query values and path segments
encodeURIKeeps URL structure characters intact
Decoded (decodeURIComponent)
URL breakdown
Start typing — results update live.
Something wrong with this tool? Tell us and we'll fix it
How to use
- Paste text to encode, or an encoded URL to decode.
- See the result instantly.
- Copy with one click.
Frequently asked questions
What is the difference between encodeURI and encodeURIComponent?
encodeURI keeps URL structure characters (:/?#&) intact — use it for whole URLs. encodeURIComponent escapes everything — use it for query parameter values. The tool shows both.
Why does my Chinese text turn into %E4%BD%A0?
URLs only allow ASCII. Non-ASCII characters are UTF-8 encoded byte-by-byte as %XX sequences — %E4%BD%A0 is "你" in UTF-8. Decoding restores it exactly.
Is decoding safe for untrusted URLs?
The tool only transforms text — it never opens or fetches the URL, so decoding a suspicious link here is safe.