Skip to content
  1. Home
  2. Developer
  3. URL Encoder / Decoder

URL Encoder / Decoder

Percent-encode text for safe use in a URL, or decode an encoded string back to readable text.

How it works

URLs can only contain a limited set of characters. Anything else, such as spaces, accents or symbols, is replaced by a percent sign and the character’s UTF-8 bytes in hex. A space becomes %20, and “é” becomes %C3%A9.

Component mode encodes everything except letters, digits and - _ . ! ~ * ' ( ), which is right for a single query value or path segment. Full URL mode leaves characters that give a URL its structure (: / ? # & =) alone, so use it on a whole address.

Frequently asked questions

Which mode should I use for a query parameter value?

Component mode. It also encodes &, = and ?, which would otherwise break the query string.

Why does decoding show an error?

The text contains a % that is not followed by two hex digits, or the encoded bytes are not valid UTF-8.

Is a plus sign a space?

Only in form-encoded data. Percent-encoding uses %20 for a space, and this tool does not treat + as a space.