URL encoder and decoder
Percent-encode or decode text and URLs, and list the query parameters of a link.
Malformed percent-encoding.
URL breakdown
- Protocol
- Host
- Port
- Path
- Fragment
Query parameters
| Name | Value |
|---|
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
- Choose Encode or Decode.
- Pick “Parameter value” to encode everything, or “Full URL” to keep the URL structure.
- Paste your text: the result updates as you type.
- 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.