URL Encode / Decode

Make text safe to put in a URL, or turn a URL full of %20 and %E0 codes back into readable text.

Result

How to use

  1. Paste your text or URL.
  2. Click Encode or Decode.
  3. Choose "Keep URL structure" to encode a whole URL while keeping it working.
  4. Click Copy to copy the result.

How it works

Characters that are not allowed in URLs are replaced by % followed by their UTF-8 bytes in hexadecimal. A space becomes %20 and "ह" becomes %E0%A4%B9.

Tips and common uses

Query values vs whole URLs

To encode one value that goes after "?" or "&", use the default "Everything" option so characters like "&" and "=" are encoded. To encode a whole link and keep it working, choose "Keep URL structure".

Hindi and other languages in links

Characters outside English letters are written as percent codes, so "ह" becomes %E0%A4%B9. Decode a long link of such codes to read what it actually says.

Spaces are %20 or +

In a path a space is %20. In form data it is often written as "+". If a decoded value still shows a plus sign, replace it with a space by hand.

Frequently asked questions

Which option should I use?

Use "Everything" for a single value you are putting into a URL, such as a search term. Use "Keep URL structure" for a complete URL.

Why do I see + instead of %20 in some URLs?

HTML forms write spaces as +. This tool decodes + as a space too.

Why does decoding show an error?

The text contains a % that is not followed by a valid code, such as "100%".

More tools