URL 解码将 URL 编码的字符转换回其原始格式。URL 只能使用 ASCII 字符集通过 Internet 发送,因此特殊字符使用“%”后跟两个十六进制数字进行编码。
URL decoding reverses this process, converting encoded characters (like "%20" for a space) back into their original form, making the URL human-readable and easier to process programmatically.
常见用例
解码从 Web 表单接收的 URL 参数
在 Web 应用程序中
解码 API 响应 URL
调试编码的 URL
在遗留系统中
URL 解码示例
特殊字符
%20 → Space ( ) %3F → Question mark (?) %26 → Ampersand (&) %3D → Equals sign (=) %2B → Plus sign (+)
复杂示例
之前: https://example.com/search?query=hello%20world&category=books&price=%2420-%2430 之后: https://example.com/search?query=hello world