devjar tools
English

URL Encode / Decode

Paste and it converts right away.

Direction

Output


      

How to use

  1. Choose “Encode” or “Decode” and paste your text.
  2. Use “One value” for a search term or a single parameter. It also encodes & = ? / so the URL stays intact.
  3. Use “Whole URL” for a complete address. It keeps : / ? & = # as they are and only encodes spaces and non-ASCII characters.

“a b&c” becomes a%20b%26c as one value, or a+b%26c with “Spaces as +” on. “café” becomes caf%C3%A9 because é is two UTF-8 bytes. Decoding does the reverse; turn on the same + option for values that come from an HTML form.

FAQ

What is the difference between the two scopes?

One value (encodeURIComponent) encodes & = ? / # too, which is right for query values. Whole URL (encodeURI) leaves the characters that structure a URL alone and only encodes the rest.

Is a space %20 or +?

In paths, use %20. Values sent by HTML forms (application/x-www-form-urlencoded) write spaces as +. Match whatever the receiving side expects with “Spaces as +”.

Why does decoding fail?

Every % must be followed by two hex digits, and the bytes must form valid UTF-8. Old URLs encoded in Latin-1 (such as %E9 for é) are not UTF-8 and cannot be decoded here.