tools.now

URL Encode / Decode

Percent-encode a value so it is safe inside a URL, or decode an encoded URL to see what it really says. Non-ASCII characters are encoded as UTF-8.

Output

🔒 Runs in your browser. Your data is never uploaded.

How to use

  1. Choose Encode or Decode.
  2. Paste the text, query value or URL.
  3. For a complete URL, tick the whole-URL option so separators are kept.

Component vs. whole URL

Encoding a single query value must escape & = ? and /, otherwise the value breaks the URL. Encoding a whole URL must leave them alone. That is the difference between encodeURIComponent and encodeURI, and what the checkbox switches.

Frequently asked questions

Why is a space sometimes %20 and sometimes +?
%20 is the general percent-encoding. + means space only inside form-encoded query strings. This tool encodes spaces as %20 and decodes both.
What does “malformed” mean when decoding?
A % sign that is not followed by two hexadecimal digits, or bytes that do not form valid UTF-8. A literal percent sign must be written as %25.
Should I encode a URL twice?
No. Double encoding turns %20 into %2520 and is a common cause of broken links.

Related tools