Skip to content

URL Encoder & Decoder

Percent-encode text for URLs or decode %-encoded strings back to readable text.

  • Free, no sign-up
  • Runs in your browser
  • Reviewed Nov 6, 2026

How to use the URL Encoder & Decoder

  1. Choose Encode or Decode.
  2. For encoding, decide whether you're encoding a single value (default) or a whole URL.
  3. Copy the result.

How it works

Encoding a value uses encodeURIComponent, which escapes reserved characters like & = ? /. Whole-URL mode uses encodeURI, which keeps URL structure intact. Decoding uses decodeURIComponent and treats + as a space (form encoding). Runs entirely in your browser. Nothing you paste is uploaded or stored.

Worked examples

Query value

"a b&c" becomes a%20b%26c, so the & doesn't split your query string.

Limitations and assumptions

  • If a literal + should stay a plus when decoding, encode it as %2B first.

Frequently asked questions

Why did decoding fail?

A % must be followed by two hex digits. A stray % sign (like '50% off') makes the string malformed.

G

Built and reviewed by Guru G

Calculation logic is covered by automated tests against known values. Last reviewed Nov 6, 2026. Found a problem? Let us know — see our editorial policy.