URL Encoder & Decoder

Make text safe to place in a web address, or turn a string full of %20 and %3D back into something readable.

Runs in your browser. What you enter here is not sent to our server.

When do you need URL encoding?

Web addresses can only contain a limited set of characters. Spaces, ampersands, question marks, non-English letters and many symbols must be written as a percent sign followed by two hexadecimal digits, for example %20 for a space.

Two modes

  • Default: encodes everything that is not a letter, digit or one of a few safe symbols. Use it for a single value, such as a search term going into a query string.
  • Whole URL: leaves characters that structure an address (: / ? & = #) untouched. Use it when you have a complete URL containing spaces or non-English characters.

Questions about the URL Encoder & Decoder

What is the difference between %20 and + for spaces?

Both can represent a space. %20 works everywhere in a URL; + means a space only in form-style query strings. When decoding in the default mode, this tool treats + as a space.

Why do I get an “invalid percent-encoding” message?

The text contains a % that is not followed by two hexadecimal digits, or the bytes do not form valid UTF-8. Check for a truncated or double-edited URL.