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.

Start typing — results update live.

Something wrong with this tool? Tell us and we'll fix it

How to use

  1. Paste text to encode, or an encoded URL to decode.
  2. See the result instantly.
  3. 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.

Related tools