URL Encoder & Decoder

URLs can only contain a limited set of characters. Spaces, ampersands, hash marks and non-ASCII letters must be percent-encoded before they can be safely placed in a query string or path, otherwise the URL will break or change meaning.

This tool offers both component encoding, which encodes everything except unreserved characters, and full-URL encoding for complete addresses.

Runs locally in your browser โ€” nothing is uploaded.

How to use the URL Encoder & Decoder

  1. Pick the encoding style: component or full URL.
  2. Paste the text or URL to encode or decode.
  3. Press Encode or Decode, then copy the result.

Frequently asked questions

When should I use component encoding?

Use component encoding for individual query parameter values. It encodes characters such as &, =, ? and / that would otherwise be interpreted as URL syntax.

Why does decoding fail sometimes?

A percent sign must be followed by two hexadecimal digits. If the string contains a literal % that was not encoded, or an incomplete %-escape, the decode operation will fail.

Should I use + or %20 for spaces?

In standard URLs use %20. The + sign is only interpreted as a space in application/x-www-form-urlencoded form data and some query parsers.