Home › Tools › URL Encoder & Decoder
URL Encoder & Decoder
Escape the characters that are not allowed to appear raw in a URL, or read a URL that has already been escaped — with the choice between encoding a single component and encoding a whole URL.
How to use it
- Paste the URL or the value you want to work with.
- Choose Encode component for a value going into a query string, or Encode whole URL to keep the separators intact.
- Press Decode to go the other way — useful for unreadable tracking links.
Why it stays private
URLs frequently carry API keys, session identifiers and signed parameters. Decoding them in a local page means you can inspect a link you do not trust without handing that link to a third-party service.
Questions
Which encode button should I use?
Use Encode component when the text is a value that will sit inside a query string — it escapes &, =, ? and / so they cannot break the URL. Use Encode whole URL when you have a complete URL and only want to escape characters that are genuinely illegal, leaving its structure intact.
Why do spaces sometimes become %20 and sometimes +?
Both are valid in different contexts. The + convention comes from HTML form submission and is only correct in application/x-www-form-urlencoded bodies. Percent-encoding uses %20, which is the safer choice everywhere else.
It says my input is malformed — why?
A % sign that is not followed by two hexadecimal digits cannot be decoded. This usually means the string was only partially escaped, or a literal percent sign was never encoded as %25.