Skip to content
Language:en

URL encoder and decoder

Percent-encode or decode text and URLs, and list the query parameters of a link.

Encode / Decode

Runs entirely in your browser. Your files never leave your device.

About this tool

Spaces, accents and symbols such as & or ? cannot appear as is in a web address: they are replaced by percent codes like %20 or %C3%A9. This tool converts text both ways as you type. Encode a single value to put in a query string, or a whole URL while keeping its slashes and question mark, and decode those unreadable links that come back from emails, logs and trackers.

When the text is a full address, the tool also breaks it down into protocol, host, port, path and fragment, and lists every query parameter with its decoded value, which makes long tracking links easy to read.

How it works

  1. Choose Encode or Decode.
  2. Pick “Parameter value” to encode everything, or “Full URL” to keep the URL structure.
  3. Paste your text: the result updates as you type.
  4. Copy the result, or swap it back into the input.

Encoding follows RFC 3986 with UTF-8, like encodeURIComponent and encodeURI in JavaScript. Tick “+ for spaces” for HTML form data (application/x-www-form-urlencoded).

Worked example

The search value “café & thé” becomes caf%C3%A9%20%26%20th%C3%A9 in a query string: é takes two bytes in UTF-8, the space becomes %20 and the & becomes %26 so it is not read as a new parameter.

Paste a long marketing link and the breakdown lists each parameter decoded: utm_source=newsletter, utm_campaign=black friday 2026, and so on.

Good to know

  • Encode each parameter value separately, not the whole URL, or the slashes and question mark will be encoded too.
  • In form submissions, spaces may appear as +; in paths they must be %20.
  • A % followed by something that is not two hex digits makes decoding fail; it often means the link was cut.

Frequently asked questions

What is the difference between the two modes?
“Parameter value” encodes every reserved character, including / ? & and =, so the value cannot break the URL. “Full URL” leaves those characters alone and only encodes spaces, accents and other unsafe characters.
Should spaces be %20 or +?
In paths always %20. In query strings both are common: + comes from HTML forms. If a server reads + literally, use %20.
Why does decoding fail?
A % must be followed by two hexadecimal digits forming valid UTF-8. A lone % or a truncated sequence such as %E9 alone cannot be decoded.