URL Encoder / Decoder

Percent-encode URLs or individual components (query params, path segments) and decode them back — all client-side.

encodeURIPreserves URL structure characters (/, ?, =, &, #, :). Use for full URLs.

The URL Encoder / Decoder converts between raw URLs and their percent-encoded equivalents in real time. Two modes are available: encodeURI preserves structural characters like /, ?, and & — use it for full URLs. encodeURIComponent encodes all reserved characters — use it for individual query parameter values or path segments.

The Swap button flips input and output so you can chain encode → decode without copy-pasting. The stats bar shows the character count difference between the raw and encoded form.