← All tools

URL encode and decode

Produce encoded text you can safely put in an address bar or parameter, or decode encoded text back. Your data never leaves this computer.

Action

Why URL encoding is needed

Web addresses can only carry certain characters directly. Spaces, accented letters and symbols such as & ? = # / either have a special meaning in the address or are not allowed at all. When they appear inside a parameter value, they are percent-encoded: a space becomes %20, é becomes %C3%A9 and & becomes %26. Without encoding, a search like "?q=salt & pepper" reaches the server as "salt " plus a separate "pepper" parameter.

Which option to use

When encoding a whole address, the "full URL" option leaves structural characters such as / ? & = alone and only converts invalid ones. When encoding a parameter value, such as a search term or a redirect address, the "component" option converts those characters too. Picking the wrong one is the most common reason addresses break.

In form data a space is written as + instead of %20. When decoding such a value, turn on "treat + as space".

Breaking a URL into parts

To see what is inside a long campaign link or an API request, the "parse URL" option shows the protocol, domain, port, path and every parameter on separate lines, already decoded. It is handy for checking tracking parameters like utm_source or for debugging. Everything runs in your browser.

How to use it

  1. Type or paste the text or URL into the box.
  2. Choose Encode, Decode or Parse URL. Use Component for a single parameter value and Full URL for a whole address.
  3. Copy the result.

Frequently asked questions

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a whole address and leaves structural characters such as / ? & = alone. encodeURIComponent encodes a single piece such as a parameter value and converts those characters too.

How can I see the parameters of a URL?

Parse URL shows the protocol, host, port, path and every parameter on its own line. Encoded values are shown decoded.

Why can + mean a space?

In form data a space is written as +. If you turn on Treat + as a space when decoding, that conversion is applied.

Related tools