Base64解码器 | 快速解码Base64字符串

使用Base64解码器快速转换Base64字符串为原始文本或二进制数据,支持多种格式,适合开发者和数据处理人员。

在浏览器中 已更新 05/2026

如何使用 Base64 解码器

  • 1. 在输入字段中粘贴您的 Base64 编码字符串
  • 2. 点击“解码 Base64”转换字符串
  • 3. 选择复制解码后的文本或下载为文件
  • 4. 对于文件,下载前输入可选的文件名

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

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

curl -X POST https://mate.tools/api/v1/base64-decode.php \
  -H "Content-Type: application/json" \
  -d '{"encoded":"aGVsbG8gd29ybGQ="}'
import urllib.request, json

req = urllib.request.Request(
    "https://mate.tools/api/v1/base64-decode.php",
    data=json.dumps({"encoded":"aGVsbG8gd29ybGQ="}).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/base64-decode.php", {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({"encoded":"aGVsbG8gd29ybGQ="}),
});
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

常见问题解答

Base64 是一种将二进制数据转换为 ASCII 文本格式的编码方法。它常用于通过电子邮件发送附件、在网页中嵌入图像以及以文本格式存储复杂数据。

您可以解码任何有效的 Base64 字符串,包括文本、图像、文档和其他文件类型。该工具会自动检测解码内容是文本还是二进制数据。

请确保您的 Base64 字符串完整且有效。常见问题包括缺少填充字符 (=)、换行符或在复制过程中可能已更改的特殊字符。