Base64 编码 / 解码 在线工具

Free 免费 · 无需注册 · 数据不上传 Used by 200K+ developers
Error
PLAIN TEXT
BASE64
// output

更多开发工具

哈希生成器
MD5/SHA-256
HMAC 生成器
HMAC-SHA256
JWT 解码
查看令牌
URL 编码
百分比编码
AES 加密
AES-256
RSA 加密
RSA-OAEP
JSON 格式化
格式化、验证与压缩
正则表达式
实时测试

为什么这是最好的 Base64 编码/解码工具

将文本编码为 Base64

Convert any plain text string to its Base64 representation instantly. Useful for embedding data in JSON, HTML, or API payloads.

将 Base64 解码为文本

Paste any Base64-encoded string and decode it back to human-readable text with one click.

UTF-8 支持

Correctly handles Unicode and UTF-8 characters including emojis, Chinese, Arabic, and other non-ASCII text.

文件编码

Upload a file and encode it as Base64 — useful for embedding images or documents in data URIs or API calls.

常见问题

什么是 Base64 编码?

Base64 is an encoding scheme that converts binary or text data into a string of ASCII characters. It is commonly used in emails, JWTs, data URIs, and API authentication.

Base64 和加密是一回事吗?

No. Base64 is encoding, not encryption. Anyone can decode a Base64 string without a key. Do not use it to secure sensitive data.

JWT 令牌为什么使用 Base64?

JWTs use Base64url encoding (a URL-safe variant of Base64) to encode the header and payload, making them compact and safe to transmit in URLs and HTTP headers.

深度指南
开发者安全工具指南
哈希、HMAC、AES、RSA 与 JWT
阅读指南