Free online tools · No sign-up

URL encoder / decoder

Encode or decode URL parameter values using encodeURIComponent / decodeURIComponent. Supports Unicode such as café and niño; spaces become %20.

Local processing · Inputs are not uploaded

Up to 1 MiB. For individual URL parameter values, not application/x-www-form-urlencoded forms.

Enter content, then choose an action.

How to use

  1. Paste a parameter value or its percent-encoded form, choose encode or decode, then copy the result.
  2. For a parameter, encode the value before adding it to a URL. Entering a whole URL also encodes : / ? & =, so choose the input for your intended use.
  3. Spaces map to %20; decoding does not turn + into a space. Incomplete percent escapes or invalid UTF-8 produce an error.

Example

café niño → caf%C3%A9%20ni%C3%B1o

Use https://example.com/?q=caf%C3%A9%20ni%C3%B1o. Decoding a+b leaves a+b; decoding a%20b gives a b.

Frequently asked questions

Can I encode a whole URL?

This tool encodes parameter values, including colons, slashes and question marks. Check that encoding a whole URL suits your use case.

Does a plus sign become a space?

No. With encodeURIComponent / decodeURIComponent, %20 is a space and + stays a plus sign.

What if decoding fails?

Check for incomplete percent escapes, invalid UTF-8 bytes or unencoded percent signs.

Related tools