Base64编码/解码
将文本或文件编码为Base64,并将Base64字符串解码为可读文本
Client-side only — uses native browser btoa / atob APIs. Your data never leaves the browser.
Base64 Encoder & Decoder
Encode any text or binary data to Base64, or decode a Base64 string back to plain text. Used in email attachments, data URIs, JWTs, and API authentication headers.
FAQ
What is Base64 encoding?
Base64 converts binary data into 64 printable ASCII characters, making it safe to transmit over text-only systems like email or URLs.
Is Base64 encryption?
No. Base64 is encoding, not encryption. It is easily reversible and provides zero security. Never use it to protect sensitive data.
Why does Base64 end with == ?
Base64 pads output with = characters to ensure the length is a multiple of 4 bytes. One = means one padding byte, == means two.
What is Base64 used for?
Embedding images in CSS/HTML as data URIs, encoding JWT header/payload, passing binary data in JSON, and HTTP Basic Auth headers.
继续探索
您可能喜欢的其他 开发者工具…
JSON格式化工具
使用语法高亮和错误检测格式化、验证和压缩JSON
URL编码/解码
编码和解码URL组件和查询字符串参数
UUID生成器
生成随机UUID(v1、v4)或批量生成多个UUID
哈希生成器
从文本或文件生成MD5、SHA-1、SHA-256、SHA-512哈希
正则表达式测试器
实时匹配高亮测试正则表达式并提取分组
JWT解码器
解码和检查JSON Web Token — 查看header、payload并验证签名
HTML格式化工具
使用正确缩进和语法高亮格式化和美化HTML代码
CSS压缩器
通过删除空白和注释压缩CSS代码以减小文件大小