URL Encode / Decode
Encode and decode URLs and query strings online — percent-encoding, form (+) encoding and a query string parser.
Escapes everything that is not safe inside one query parameter or path segment, including / ? & = #.
Plain text
Encoded result
Parse a query string
| Key | Decoded value | Raw value |
|---|
How to use the URL encoder
- Pick Encode or Decode, then choose how much to escape: a single component, a whole URL, or form data where spaces become
+. - Type or paste on the left — the result updates on the right as you type, and Copy result puts it on your clipboard.
- To inspect a link, paste it into Parse a query string and read every parameter as a decoded key/value table.
FAQ
When should I use encodeURI instead of encodeURIComponent?
Use Whole URL (encodeURI) when you already have a complete address and only want unsafe characters such as spaces fixed — the separators / ? & = # are left alone. Use Component (encodeURIComponent) for one value you are about to drop into a query string, because it escapes those separators too.
Why does my decoded text show “Broken escape sequence”?
A % in a URL must be followed by exactly two hex digits. If your text contains a literal percent sign (for example 100%), encode it as %25 first, or the decoder cannot tell it apart from an escape.
Is my URL sent anywhere?
No. Encoding, decoding and query-string parsing all happen in your browser with plain JavaScript; nothing is uploaded or logged.