URL Encoder and Decoder

Percent-encode or decode URLs and query parameters, with a choice between component encoding and full-URI encoding.

13Characters encoded
73Output length

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the URL Encoder and Decoder does

Use this URL encoder and decoder to percent-encode or decode URLs and query parameters, with a choice between component encoding and full-URI encoding. Paste your text in, pick the options you need, and copy the result straight back out. It is most often used for building a query string containing spaces or special characters. If you want to cross-check the result, there is another URL encoder and decoder on FreeToolStation.org.

How to use it

  1. Paste the URL or the value you want to encode.
  2. Choose encode or decode.
  3. Use component scope for a single query value, full-URI scope for a whole URL.
  4. Copy the result.

How it works

The two scopes exist because they protect different things. Component encoding escapes the delimiter characters & = ? / # as well, which is what you need for a value going inside a query parameter — otherwise an ampersand in the value would be read as the start of the next parameter. Full-URI encoding leaves those delimiters intact so the URL structure survives.

Picking the wrong one is the most common mistake. Encoding a whole URL with component scope turns https://example.com into https%3A%2F%2Fexample.com, which is correct only when that URL is itself a parameter value — a redirect target, for instance.

Decoding fails on malformed input: a percent sign not followed by two hexadecimal digits is invalid, and the tool reports it rather than silently returning something wrong.

When to use it

  • Building a query string containing spaces or special characters.
  • Reading an encoded redirect URL from a tracking link.
  • Fixing a URL where an ampersand in a value broke the parameters.

Common mistakes to avoid

  • Encoding a whole URL with component scope when you wanted to keep its structure.
  • Double-encoding — encoding an already-encoded string turns % into %25.
  • Assuming a space becomes +; that is form encoding, not URL encoding, where it becomes %20.

Frequently asked questions

What is the difference between the two scopes?

Component encoding escapes the reserved delimiters & = ? / # as well as everything else, which is right for a single parameter value. Full-URI encoding leaves those characters alone so a complete URL keeps working.

Why does a space sometimes become + and sometimes %20?

Both are valid in different contexts. The application/x-www-form-urlencoded format used by HTML forms encodes a space as +; standard percent encoding uses %20. In a path segment, only %20 is correct.

Related tools

See all developer tools →