Base64 编码/解码器

将文本编码为 Base64 或将 Base64 解码回纯文本。在浏览器中即时处理,数据绝不会离开您的设备。

Base64 编码的工作原理

Base64 编码使用 64 个可打印字符(A–Z, a–z, 0–9, + 和 /)将二进制数据(或文本)转换为 ASCII 字符序列。它常用于在 JSON/XML 中嵌入二进制数据,或在 HTTP 报头中对凭据进行编码。

Frequently Asked Questions

不。Base64 是编码,而不是加密。任何人无需密钥即可对其进行解码。请勿使用 Base64 保护敏感数据。

Yes. The encoder handles UTF-8 text including accented characters, CJK characters and emoji.

No. All encoding and decoding happens entirely in your browser using the native btoa()/atob() JavaScript functions.

There is no explicit limit, but very large inputs (multi-megabyte) may slow down the browser tab.

This tool encodes text. For binary file encoding, use a dedicated file conversion tool.

Related Tools

所有生成的数据均为虚构,不适合作为真实的个人信息使用。