About the URL Encode/Decode
URLs can only contain a limited set of characters. Spaces, accented letters, emoji and symbols like & or ? must be percent-encoded (for example, a space becomes %20). Encode text for safe use in URLs, or decode messy encoded links to read them.
Like every tool on this site, it runs entirely in your web browser using JavaScript. Your files and text are never uploaded to a server, which makes it fast, free and private.
How to use the URL Encode/Decode
- Paste text or a URL into the input box.
- Click “Encode” – by default every special character is encoded, ideal for query parameter values.
- Tick “Encode full URL” to keep URL structure characters like : / ? & = intact.
- Click “Decode” to turn percent-encoded text back into readable text.
encodeURIComponent vs. encodeURI
Component encoding (the default) encodes everything except letters, digits and - _ . ! ~ * ' ( ), which is correct for individual parameter values. Full-URL encoding leaves reserved characters alone so an entire address stays functional. Using the wrong one is a common cause of broken links and tracking parameters.
Plus signs and spaces
In HTML form submissions, spaces are often encoded as +. When decoding, this tool treats + as a space.
Frequently asked questions
Why do URLs contain %20?
%20 is the encoded form of a space character.
Does it support non-English characters?
Yes, characters are encoded as UTF-8 bytes.
Why does decoding fail?
The text contains a % that isn’t followed by two valid hex digits.
Is anything sent to a server?
No.
Guides and how-tos
- How to Make a QR Code for Free – Create a QR code for a link, Wi-Fi network or text in seconds, plus sizing, contrast and testing tips so your QR code scans every time.
- How to Format, Validate and Fix JSON – Beautify, minify and validate JSON online for free. Learn how to read error messages and fix trailing commas, quotes and other common JSON syntax mistakes.