ToolsMaxxing

URL encoder and decoder

Percent-encode text for use in a URL, or decode %20 style text back to readable form.

Your files stay on your device

How it works

  1. 1Choose Encode or Decode.
  2. 2Paste your text or URL.
  3. 3For encoding, choose whether the text is a single value or a whole URL.
  4. 4Copy the result.

What the options do

A value (encodeURIComponent)
Encodes everything except letters, digits and - _ . ! ~ * ' ( ). Use for a query parameter value or a path segment.
A whole URL (encodeURI)
Keeps characters that structure a URL such as : / ? # & =, and encodes the rest. Use for a full address.
Treat + as a space
Form submissions write spaces as +. Turn this on to decode them.

Privacy

This tool runs in your browser. Your files are never uploaded to a server.

Questions people ask

When do I encode a value, and when a whole URL?

Encode each parameter value on its own, then join them with & and =. If you encode a complete URL as a value, its slashes and question marks are escaped and the link breaks.

Why does decoding fail?

A % sign must be followed by two hex digits, and the resulting bytes must form valid UTF-8. A stray % in text, such as 50% off, causes this. Encode it as %25.

What is the difference between %20 and +?

%20 is a space in any part of a URL. + means a space only in form-encoded query strings, which is why it has its own option.

How are non-English characters encoded?

As UTF-8 bytes, each written as %XX. For example the letter é becomes %C3%A9.

Does the tool follow or open the link?

No. It only changes text. Nothing is requested from the address.

Related tools