URL Encode / Decode
Decode or percent-encode a URL or a single value. Text is treated as UTF-8, and errors give the position of the problem.
RFC 3986UTF-8 · component or full URL · limit 1 MB
Runs in your browser. Nothing you enter is sent anywhere. How to check
1.How to use
- Choose Decode or Encode. When encoding, chooseComponent for a single value or Full URL for a whole URL.
- Paste your text. The result appears as you type.
- Copy the result, or press Swap to move it into the input and reverse the mode.
Encoding writes each character as UTF-8 bytes, and each byte as %XX with uppercase hexadecimal. Decoding turns every %XX back into the original text and leaves other characters as they are.
2.Examples
Encoding a query value with & and =
Fish & Chips = £5 encodes to Fish%20%26%20Chips%20%3D%20%C2%A35with the Component scope. The & and = are encoded, so the value cannot break the query string apart. The pound sign takes two UTF-8 bytes.
Decoding a redirect URL
https://example.com/login?redirect=https%3A%2F%2Fapp.example.com%2Fdashboard%3Ftab%3Dbillingdecodes tohttps://example.com/login?redirect=https://app.example.com/dashboard?tab=billingand shows where the login page sends you next.
+ versus %20
HTML forms send q=caf%C3%A9+au+lait, where + means a space. WithDecode + as space on, it decodes to q=café au lait. With it off, the + signs stay. This tool always encodes a space as %20, which every decoder reads as a space.
3.Options explained
Component or Full URL
Component encodes every character except A–Z a–z 0–9 and- _ . ! ~ * ' ( ), like JavaScript's encodeURIComponent. Use it for one query value or path segment. A complete URL is encoded entirely, including://, which is correct when the URL is itself a parameter value, such as a redirect target.
Full URL also keeps the characters that give a URL its structure:; , / ? : @ & = + $ #, like encodeURI. Use it for a complete URL whose structure is already right, for example to encode spaces and accented letters in it. It does not encode & or = inside a value, so use Component for values.
RFC 3986 §2.3lists A–Z a–z 0–9 - . _ ~ as unreserved, andRFC 3986 §2.2lists ! * ' ( ) as reserved. Both scopes leave ! * ' ( ) unencoded, as the JavaScript functions do.
When + means a space
In form data (application/x-www-form-urlencoded), the format a browser uses to submit an HTML form, a space is written as + and a literal plus as%2B. In other parts of a URL, + is just a plus. Turn onDecode + as space only for form data or query strings built that way.
4.Limits
- Input up to 1 MB.
- Decoding is strict: every
%must be followed by two hexadecimal digits, and the bytes must be valid UTF-8. Text in other character sets, such as Latin-1%E9, is reported as an error. - The tool does not split a URL into its parts or edit query parameters.
5.FAQ
What is the difference between encodeURI and encodeURIComponent?
encodeURI is for a whole URL and keeps ; , / ? : @ & = + $ #.encodeURIComponent is for one part of a URL and encodes those characters too. The Full URL and Component scopes give the same results as these functions.
Why did + become a space?
Because Decode + as space is on. Form encoding writes spaces as+. Turn the option off to keep + as a plus sign.
What is double encoding?
Encoding text that is already encoded. %20 becomes %2520, because the % itself is encoded as %25. When a decoded result still contains percent sequences, the tool says so and offers Decode again.
Is my data uploaded?
No. Encoding and decoding run in your browser. The privacy pageshows how to confirm this in your browser's Network tab.