URL Encode and Decode
Percent-encode or decode URLs and query strings in your browser. Encode a single value or a whole URL, decode many lines at once, and see every parameter.
Runs in your browser. Nothing you enter is uploaded.
How to use
This tool percent-encodes text so it is safe to put in a URL, and decodes encoded URLs back into readable text.
- Choose Encode or Decode.
- Type or paste into the left box. The result updates as you type.
- When encoding, pick a Mode:
- Component encodes everything that has a special meaning in URLs, including
/,?,&and=. Use it for a single query value or path segment, the same wayencodeURIComponentworks in JavaScript. - Full URL keeps the characters that give a URL its structure and only encodes spaces, accents and other unsafe characters. Escapes that are already there, like
%20, are left alone, so encoding twice does no harm.
- Component encodes everything that has a special meaning in URLs, including
- When decoding, keep Plus as space on for query strings and form data, where
+means a space. Turn it off if a plus sign should stay a plus sign. - Turn on One per line to process a list of URLs or values in one go.
- Press Copy to copy the result, or Swap to move it into the input and flip the direction.
If the input is a URL with a query string, a table under the result lists every parameter with its decoded value. This makes long tracking links and API calls easy to read.
Text is encoded as UTF-8, which is what browsers and servers expect. If the input has a broken escape such as %2 or %zz, you see exactly where it is.
Frequently asked questions
What is the difference between component and full URL encoding?
Component encoding also escapes characters like /, ?, & and =, so a value can never break the URL around it. Full URL encoding keeps those characters, so the URL still works as a link.
Why does a space sometimes become + instead of %20?
HTML forms encode spaces as + in query strings, while the general URL rules use %20. Both are common. When decoding, the Plus as space option controls how + is read.
Which characters never need encoding?
Letters A to Z and a to z, digits, and the four characters - _ . ~ are always safe in a URL. Everything else may need encoding depending on where it appears.
Related tools
More encoding tools
- JWT decoder Decode a JSON Web Token to see its header, payload and expiry, check its signature with a secret or public key (RS256, ES256), and sign a changed one.
- Hash generator Get CRC32, MD5, SHA-1, SHA-256 and SHA-512 hashes of text or files, make HMACs, and check a download against its checksum or a SHA256SUMS file.