URL encode and decode

URL encoding (percent-encoding) replaces characters that are unsafe in a URL with % followed by their byte value in hexadecimal. A space becomes %20.

How to use the URL encoder

  1. Choose Encode or Decode.
  2. Paste a value or URL.
  3. Tick Keep URL structure only when encoding a whole URL.

Component or whole URL

Encoding a parameter value must escape characters such as &, = and ?. Encoding a whole URL must keep them. These correspond to encodeURIComponent and encodeURI in JavaScript.

Frequently asked questions

Why is a space sometimes a plus sign?

HTML form encoding uses + for spaces. This tool uses %20 and does not treat + as a space when decoding.

Is URL encoding encryption?

No.

What encoding is used for non-English characters?

UTF-8 bytes, each percent-encoded.

Related tools