sangsen

URL Encoder/Decoder

Encode text for safe use in a URL, or decode a percent-encoded string back to text.

Output

Result appears here.

How it works

Text is percent-encoded with encodeURIComponent, or a percent-encoded string is decoded back to text with decodeURIComponent — all in your browser. Encoding uses component-level rules, so characters like &, =, and ? that are meaningful in a query string are escaped rather than left as-is.

Example

Encode
a b&c=d?e/fa%20b%26c%3Dd%3Fe%2Ff

FAQ

Is my text uploaded anywhere?
No. Encoding and decoding happen in your browser via encodeURIComponent/decodeURIComponent — nothing you paste ever leaves your machine.
Does this work with non-English text and emoji?
Yes — text is percent-encoded as UTF-8 bytes, so accented characters and emoji round-trip correctly.
What happens with invalid percent-encoding on decode?
You get a clear error instead of a raw browser exception or silently garbled output.