URL解码器 | 快速解码URL

使用在线URL解码器,快速转换编码URL为可读格式,支持多种编码,方便解析特殊字符和参数。粘贴即可获取清晰URL信息。

在浏览器中 已更新 05/2026

结果
原始文本
转换后的文本

什么是 URL 编码?

URL 编码将 URL 中不允许的字符转换为可以通过互联网传输的格式。它用 "%" 后跟两个十六进制数字替换不安全的 ASCII 字符。

何时使用 URL 编码?

URL 编码在以下情况下是必要的: - 通过 URL(查询参数)发送数据时 - 处理 URL 中的特殊字符时 - 使用多语言内容时 - 确保数据安全传输时

常见的 URL 编码示例

Character URL Encoded
Space %20 或 +
& %26
= %3D
? %3F
/ %2F
@ %40

从你的AI智能体调用此工具

免费的JSON API和Model Context Protocol (MCP) 服务器。无需注册、无需API密钥、CORS开放。专为Claude、ChatGPT、Cursor、脚本和前端应用设计。

curl -X POST https://mate.tools/api/v1/url-decode.php \
  -H "Content-Type: application/json" \
  -d '{"encoded":"hello%20world%20%26%20cats"}'
import urllib.request, json

req = urllib.request.Request(
    "https://mate.tools/api/v1/url-decode.php",
    data=json.dumps({"encoded":"hello%20world%20%26%20cats"}).encode(),
    headers={"Content-Type": "application/json"},
)
with urllib.request.urlopen(req) as r:
    print(json.load(r))
const r = await fetch("https://mate.tools/api/v1/url-decode.php", {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({"encoded":"hello%20world%20%26%20cats"}),
});
console.log(await r.json());

添加到 claude_desktop_config.json(Claude Desktop)、~/.cursor/mcp.json(Cursor)或任何其他MCP兼容客户端:

{
  "mcpServers": {
    "mate-tools": {
      "command": "npx",
      "args": ["-y", "@mate-tools/mcp-server"]
    }
  }
}
API文档 OpenAPI 3.1 npm 60次/分 · 600次/时 · 主体最大1 MB

常见问题

保留字符如空格、&、=、?、/、@和特殊符号必须进行编码。空格变成%20或+,而像&这样的字符变成%26。字母数字字符(A-Z、a-z、0-9)和一些特殊字符(-、_、.、~)不需要编码。

URL只能包含有限的ASCII字符集。编码将不安全的字符转换为可以在互联网上传输而不会产生混淆的格式。这确保了特殊字符、非ASCII文本和URL保留字符得到正确处理。

编码将可读文本转换为URL安全格式(例如,"你好世界"变成"%E4%BD%A0%E5%A5%BD%E4%B8%96%E7%95%8C")。解码则相反,将编码序列转换回可读文本(例如,"%20"变成空格)。读取URL时使用解码,创建URL时使用编码。