URL Decode
URL Encode
Decoded Result:
Encoded Result:
About URL Encoding/Decoding
URL encoding (percent-encoding) is the process of converting characters in a URL to a % followed by two hexadecimal digits. This ensures that URLs contain only valid and safe characters for transmission over the internet.
Why is URL Encoding Needed?
URLs can only use a limited set of characters from the ASCII character set. If a URL contains any of the following types of characters, it needs to be encoded:
- Non-ASCII characters (e.g., Chinese, Japanese, Korean characters)
- Reserved characters (e.g., :, /, ?, #, @, &, =)
- Unsafe characters (e.g., spaces, ", <, >, %, {, }, |, , ^, ~, [, ], `)
Usage Examples
Here are some examples of URL encoding/decoding:
Original URL: https://example.com/?q=URL test&page=1
Encoded: https%3A%2F%2Fexample.com%2F%3Fq%3DURL%20test%26page%3D1
Encoded string: %E2%82%AC%20%24%20%C2%A3%20%E0%A8%B0%20%E2%82%B9
Decoded: € $ £ ਰ ₹
中文用户? 查看我们的中文版URL解码工具。