What is Base64?
什么是 Base64?
Base64 is a binary-to-text encoding that represents any data using 64 ASCII characters (A–Z, a–z, 0–9, +, /). It is widely used to embed images in HTML/CSS, send binary over text-based protocols like email, and store credentials in config files.
Base64 是一种将二进制数据用 64 个 ASCII 字符(A–Z, a–z, 0–9, +, /)表示的编码方式。常用于在 HTML/CSS 中嵌入图片、通过电子邮件等文本协议传输二进制数据,以及在配置文件中存储凭据。
Important: Base64 is not encryption. It is trivial to reverse and provides zero confidentiality. Use real encryption (e.g. AES-GCM) for secrets.
重要:Base64 不是 加密。它极易还原,对机密性没有任何保障。涉及机密请使用真正的加密(如 AES-GCM)。
Read more in the Base64 guide.
阅读 Base64 指南 了解更多。