About the URL Encoder / Decoder
The URL Encoder / Decoder converts a text value using browser URL component encoding and decoding functions. It is useful for query parameter values and examples that need reserved characters represented safely. Encoding a whole URL and encoding one component are different operations, so apply the result in the correct part of the URL.
How to use this tool
- Choose whether the text should be encoded or decoded.
- Paste the component value, including any spaces or reserved characters.
- Run the conversion and check for malformed percent sequences.
- Place the output in the intended URL component and test the complete URL.
Example
Input
q=blue sky & size Possible output
q%3Dblue%20sky%20%26%20size The example encodes the entire string as one component, so equals and ampersand are escaped too. If those characters are intended to separate query parameters, encode each value separately and assemble the URL with a URL API instead.
Practical tips and limitations
Do not repeatedly encode already encoded text unless the destination specifically expects nested encoding. Plus signs and percent escapes can be interpreted differently by form encoders and URL components. Never assume encoding encrypts data or hides query parameters from logs and browser history.
Frequently asked questions
Is URL encoding encryption?
No. It represents reserved characters in a URL-safe form and is easy to reverse.
Should I encode an entire URL?
Usually encode individual components such as a parameter value, not the separators in the complete URL.
Why does decoding fail?
A malformed percent escape is not valid encoded input. Check that every escape has the expected hexadecimal form.