URL Encoder/Decoder

Encode or decode URLs and parameters safely.

Result
Actions

What is this tool?


A URL encoder/decoder converts reserved characters (spaces, ?, &, non-ASCII) into percent-encoded form and back so query strings stay valid.

URLs cannot contain a raw space. The usual encoding is %20. Other octets are %HH. Encoding a whole URL twice will percent-encode the percent signs and break the link — encode parameters, not a string that is already encoded, unless you know you need that.

Decoding turns %20 back into a space so a log line is readable. It will not fetch the URL. It will not tell you if a parameter is safe. It only changes representation.

Use encodeURIComponent semantics for query values. If you are building a full URL, keep the scheme and host unencoded.

How to use


  1. Paste the raw text, URL, or query value.
  2. Choose Encode or Decode.
  3. Copy the result.

Example


Example input (Encode)
hello world!
Example output
hello%20world%21

Benefits


  • Safe query values without guessing percent codes.
  • Decode ugly log URLs back to text.
  • Runs locally.

FAQ


Why do spaces become %20?
A URL cannot contain a literal space. Percent-encoding is the standard replacement.
Does this send my URL anywhere?
No. Encode and decode run in the browser.
Should I encode an entire already-valid URL?
Usually no. Encode query parameter values. Encoding a complete URL twice will break it.

Related tools