How to encode or decode a URL
Pick Encode or Decode and paste. The result updates as you type. Swap sends the result back through in the other direction.
For example, encoding a b&c gives a%20b%26c, and decoding that gives you the original back.
Encode a value, or a whole URL?
This is the choice that trips people up, so we made it one checkbox.
- Unticked (the default) encodes everything except letters, digits and a handful of safe marks such as
- _ . ~. Use it for a single value going into a URL: a search term, an email address, a redirect target. It is whatencodeURIComponentdoes in JavaScript. - Whole URL leaves the characters that give a URL its structure, such as
: / ? & =, alone. Use it to tidy a complete link that has spaces or accented letters in it. It matchesencodeURI.
If you encode a full link with the box unticked, the slashes become %2F and the link stops working. That is the most common mistake we see.
Spaces: %20 or +?
Both exist. %20 is correct anywhere in a URL. + means a space only inside a query string, a habit left over from HTML forms. Tick Spaces as + when a system expects form-style encoding, or when you are decoding one that used it.
Split a long link into its parameters
Split query takes a URL and lists each parameter on its own line, decoded. It is the fastest way to read a tracking link, an OAuth redirect or a ticket full of SSO parameters and see which value is wrong.
When decoding fails
- A stray % sign. A real percent sign must be written
%25. We tell you where the bad one is. - Double encoding. If you see
%2520, the text was encoded twice. Decode it twice. - Invalid bytes. The value was cut off mid-character or written with an older character set.
Your links stay with you
URLs often carry session tokens and email addresses. We decode them in your browser and send nothing anywhere.
Last reviewed November 15, 2026.