Free tools / URL Encoder & Decoder

URL encode & decode

Percent-encode text so it's safe in a URL, or decode an encoded string back to readable text. Handles UTF-8 and runs entirely in your browser.

Text to encode
Encoded output

How it works

  1. 1Choose Encode or Decode.
  2. 2For encoding, keep 'component' on to escape ? & = / etc. (for a query value); turn it off to preserve URL structure (encodeURI).
  3. 3Output updates live; copy it with one click.

Frequently asked

encodeURI vs encodeURIComponent?

encodeURIComponent escapes everything that isn't safe in a single URL piece (including ? & = / #), which is what you want for a query-string value. encodeURI leaves URL structure characters intact - use it for a whole URL. The 'component' checkbox switches between them.

Why does decoding fail sometimes?

A malformed percent-sequence (a stray % not followed by two hex digits) can't be decoded. Fix or remove it and try again.

Is my input uploaded?

No - encoding and decoding happen entirely in your browser.

Related tools