Encoding and decoding a URL
Choose Encode or Decode and paste your text. The result changes as you type. Swap feeds the result back in the opposite direction.
As an example, a b&c encodes to a%20b%26c, and decoding that returns the original.
One value or the whole address?
Most encoding mistakes come from this one decision, so we have reduced it to a single tick box.
- Left unticked, we encode everything except letters, digits and a few safe marks such as
- _ . ~. That is right for a single value being placed inside an address: a search phrase, an email address, a return link. It is the same asencodeURIComponentin JavaScript. - Whole URL leaves alone the characters that hold an address together, such as
: / ? & =. Use it to clean up a complete link that contains spaces or accented letters. It matchesencodeURI.
Encode a complete link with the box unticked and every slash turns into %2F, which breaks it. We see that more often than any other fault.
Is a space %20 or a plus sign?
It can be either. %20 is valid anywhere in an address. A + stands for a space only within the query string, a convention inherited from HTML forms. Tick Spaces as + when the system you are dealing with expects the form style.
Reading a long link
Split query lists every parameter in a URL on a separate line, decoded. When a user sends you a link that fills three lines of a ticket, this is the quickest way to see which value has gone wrong.
If it will not decode
- A loose % sign. A genuine percent sign has to be written
%25. We show you where the faulty one sits. - Encoded twice.
%2520is a sign that the text was encoded a second time. Decode it again. - Invalid bytes. The value has been truncated, or was written in an older character set.
Nothing is sent anywhere
Web addresses frequently contain session tokens and email addresses. We decode them inside your browser and transmit nothing.
Last reviewed 15 November 2026.