Skip to main content

URL Encode / Decode

Percent-encode and decode URL parameters with encodeURIComponent.

URL encoder / decoder

URLs may only contain certain characters — spaces, non-ASCII text, & or ? break them. URL encoding turns those into %XX form so the URL is transmitted and parsed correctly. This tool switches between encoding and decoding in one click.

How to use

  1. To encode: paste text or a parameter with special characters and click Encode.
  2. To decode: paste a %XX string and click Decode to restore it.
  3. To encode a whole URL instead of one parameter, tick the option to use encodeURI.

Common use cases

  • Build query strings with non-ASCII or special characters.
  • Read an encoded URL copied from the address bar.
  • Debug parameter encoding in API requests.

Frequently Asked Questions

What is the difference between encodeURIComponent and encodeURI?

encodeURIComponent also encodes structural characters like / ? & =, ideal for a single parameter value; encodeURI keeps those characters, ideal for a whole URL.

Why does a space become %20?

Spaces must be encoded in URLs; the standard is %20. Some form encodings use + for a space instead; this tool uses the standard %20.

Do non-ASCII URLs need encoding?

Yes. When passed in code or placed in HTML attributes, characters usually still need percent-encoding (e.g. %E4%B8%AD) to be parsed correctly.

Is my data uploaded?

No. Encoding and decoding happen locally in your browser and nothing is sent to a server.