URL Encoder Decoder

Encode or decode a URL component with UTF-8 percent encoding.

Your input is processed in this browser and is not uploaded.

URL Encoder Decoder

Encode a single path or query component so reserved characters become percent escapes. Decode reverses valid UTF-8 percent encoding.

How to use it

  1. Choose Encode or Decode.
  2. Paste the particular URL component or encoded value.
  3. Select Run tool and place the result in the intended part of the URL.

Worked example

Encoding hello world & tea gives hello%20world%20%26%20tea. Encoding a complete address also escapes its colon and slashes; do that only when the whole address is itself one component value.

Limits and troubleshooting

This uses encodeURIComponent and decodeURIComponent, not a full URL parser or validator. A plus sign stays a plus sign when decoding, unlike some HTML form handling. Malformed percent escapes or byte sequences that are not valid UTF-8 cause errors. Limit: 200,000 input characters.

Frequently asked questions

Why did slashes become %2F?

The input was encoded as one component. Keep URL structure intact and encode only the inserted value.

Should I encode a value twice?

Usually not. A second pass changes percent signs again, for example %20 to %2520. Match the recipient’s expected encoding level.