Base64 编解码
对 UTF-8 文本进行 Base64 编码与解码。
About this tool
在本地即时编码文本为 Base64,或反向解码。Base64 让任意数据能在不支持二进制的通道(如邮件头或 data URL)中传输。
Why use it
- 双向转换,无需往返服务器。
- 支持完整 Unicode 文本,不限于 ASCII。
- 一键复制结果;全程在浏览器中完成,数据不外传。
Common use cases
- 解码 Base64 令牌查看其内容。
- 将小型载荷编码后嵌入 URL 或配置。
- 检查 data URI 中的编码部分。
Tips
- Base64 是编码而非加密:本身不能隐藏内容。
- 编码后体积约为原文的三分之一。
使用方法
- 粘贴文本。
- 选择编码或解码。
- 复制结果。
常见问题
- What does Base64 encoding do?
- It turns binary or text data into a safe ASCII string that can travel through systems that only handle text.
- Can I both encode and decode?
- Yes, paste plain text to encode it, or paste a Base64 string to decode it back.
- Is my data sent to a server?
- No. Encoding and decoding run in your browser, so your text stays private.
- Is Base64 a form of encryption?
- No. It only changes the representation; anyone can decode it, so never use it to protect secrets.
- Why is the encoded text longer?
- Base64 represents every 3 bytes as 4 characters, adding about a third to the size.
- Does it handle Unicode text?
- Yes, text is treated as UTF-8 so emoji and non-Latin characters encode correctly.