What is URL Encoder / Decoder?
URL encoding (Percent-encoding) replaces unsafe ASCII characters with a % followed by two hexadecimal digits so query parameters can safely travel across HTTP URLs.
How to use this tool
- Paste your target URL string or query parameters into the input window.
- Select "Encode Component" or "Decode Component".
- Click "Encode URL" / "Decode URL" to execute.
Example
Input:
q=hello world & dev
Output:
q%3Dhello%20world%20%26%20dev
Common Use Cases
- Escaping redirect URLs passed inside OAuth state query parameters.
- Encoding dynamic text query parameters for REST APIs.
- Decoding unreadable percent-escaped URLs found in server log files.
Frequently Asked Questions
What is the difference between encodeURI and encodeURIComponent?
encodeURI preserves special URI delimiter characters (such as :, /, ?, #), whereas encodeURIComponent encodes all characters including slashes and question marks so they can be safely passed inside parameter values.