Base64 编解码:支持中文的转换工具

Base64 是最常用的文本编码之一:把二进制或文本转成纯 ASCII,用于在 URL、邮件、JSON 里安全地传输。这个工具提供双向转换,重点是完整支持 UTF-8 中文——很多在线工具处理中文会乱码,这里不会。

什么时候用

  • 数据嵌入:把图片或文件内容编码后嵌入 JSON、配置或 URL。
  • 接口调试:有些接口用 Base64 传参,先编码再发请求。
  • 解码查看:从日志或请求里看到一串 Base64,解码看看原本内容。

为什么本地运行很重要

要编码的内容常常是密钥、token、私密报文。本工具全程本地处理,不经过任何服务器,粘贴敏感内容也放心。

Base64 Encoder: text ↔ Base64, UTF-8 ready

Base64 is one of the most common text encodings — turning binary or text into plain ASCII for safe transport in URLs, emails and JSON. This tool offers both directions, with full UTF-8 support — many online tools garble Chinese; this one doesn't.

When to use it

  • Embedding: encode images or file contents into JSON, config or URLs.
  • API debugging: some endpoints accept Base64 parameters — encode before sending.
  • Decoding: see what a Base64 blob in logs or requests actually contains.

Why local matters

What you encode is often a key, token or private message. This tool works entirely locally — nothing passes through any server, so sensitive pastes are safe.