URL Encoder & Decoder
Free online URL encoder and decoder. Percent-encodes spaces, special characters, and non-ASCII safely. 100% in your browser.
Input
Paste input here, or
Output
About URL Encoder & Decoder
Paste a string to percent-encode it for safe use in a URL, or paste an encoded value to decode it back. Spaces, ampersands, question marks, and non-ASCII characters are converted to the percent-escaped form that browsers and servers expect. Toggle between encode and decode and copy the output in one step.
The conversion runs locally in your browser, so query strings and parameter values you test are not transmitted anywhere. This is handy for building API request URLs, debugging redirect links, or checking why a parameter is being misread on the server.
Frequently asked questions
- What is the difference from encodeURI?
- This tool escapes characters the way encodeURIComponent does, which is the right choice for individual query parameter values.
- Why is a space sometimes a plus sign?
- Form submissions encode spaces as plus signs, while percent-encoding uses %20. This tool uses %20 for general URL encoding.
- Can I encode an entire URL at once?
- You can, but encoding a whole URL also escapes the slashes and colons; encode only the parts that need it, such as parameter values.