跳过主要内容

Base64 编码

将文本编码为 Base64,支持完整的 Unicode。

这个工具做什么?

直接答案Base64 编码将 UTF-8 文本字节转换为 64 个字符的 Base64 字母表,以便安全传输。
关键事实Base64 (RFC 4648) 将 3 个字节编码为 4 个字符 — 输出始终是 4 的倍数,并带有 = 填充。
处理在您的浏览器中本地运行;不会将数据发送到服务器。

如何使用

  1. 将文本粘贴或输入到输入框中。\n点击编码为 Base64。\n复制编码后的字符串。

示例

输入

你好,世界! 🌍

输出

SGVsbG8sIHdvcmxkISA8J+KfqPCfkYI=

Who is this for?

This tool was built for people who need a fast answer in the browser — no install, no account, no data leaving the device.

Developers verifying file checksums, DevOps engineers generating secrets, and security students learning encoding basics — all without uploading data to a server.

常见问题

Base64 是加密吗?

不是。Base64 是一种编码,不是加密 — 任何人都可以解码它。永远不要用它来保护秘密。

它支持表情符号和中文吗?

是的。输入首先被 UTF-8 编码,因此任何 Unicode 文本都能准确地往返。

为什么输出以 = 结尾?

填充字符使输出长度对齐为 4 的倍数。

此分类中的更多工具