URL Encode/Decode
Convert text into a form that is safe to place in a web address, or turn percent-encoded text back into normal characters.
- Free
- No sign-up
- Runs in your browser
What are you converting?
“A value” encodes every special character, including / ? & = and #. “A complete URL” keeps those characters so the address still works. Your text is converted in this browser tab.
How to use URL Encode/Decode
Choose encode or decode
Select Encode to make text URL-safe, or Decode to read a string full of % codes.
Say what you are converting
Pick “A value” for a query parameter or a piece of a path, which encodes every special character. Pick “A complete URL” to keep characters such as / ? and & that give the address its structure.
Paste, then copy
Paste your text, check the result and copy it. Use “Use result as input” to run a conversion in reverse.
Example
Encoding a search phrase
Input
Text: tea & coffee, 50% off (converted as a value)
Result
- tea%20%26%20coffee%2C%2050%25%20off
- Decoded again, it returns to: tea & coffee, 50% off
Common uses
Query strings
Add search terms, names or messages to a link without breaking it.
Links with spaces or symbols
Make a link to a file whose name has spaces or accents safe to share.
Reading logs and analytics
Decode long encoded addresses from reports to see what they actually contain.
Developers and API testing
Prepare parameters for requests and check what your code produced.
Tips for better results
- Encode each value on its own and join the pieces with & and =. If you encode a whole query string as one value, the separators are encoded too and the link stops working.
- Never encode a URL twice. The % sign turns into %25, and the address no longer means what you intended.
- In form-style data a + stands for a space. Tick the plus option when you decode such strings.
- Percent-encoding is not encryption. Anyone can decode it, so it does not protect private data.
Frequently asked questions
What is URL encoding?
URL encoding, also called percent-encoding, replaces characters that are unsafe in a web address with a % sign followed by two hexadecimal digits. A space, for example, becomes %20.
What is the difference between a value and a complete URL?
A value is encoded completely, so / ? & = and # all become codes. A complete URL keeps those characters because they have a job in the address, and only encodes things like spaces and non-English letters.
Why does decoding say my text is invalid?
A % sign must be followed by two hexadecimal digits, such as %41. A stray % sign, as in “100% sure”, causes the error.
How are non-English letters encoded?
They are first converted to UTF-8 bytes, and each byte is written as a % code, so é becomes %C3%A9.
Is my data sent to a server?
No. Encoding and decoding use your browser’s built-in functions, and the text stays on your device.
Last updated: