将文本编码为 Base64 或将 Base64 解码为文本,完整支持 Unicode。
Base64 converts text or binary data into 64 printable ASCII characters, which makes it safe to embed in JSON, URLs, email, and data URIs. The tool encodes plain text to Base64 and decodes it back, with full Unicode support.
Everything runs in your browser: the input is converted locally and nothing is uploaded. Decoding happens the same way, so you can safely inspect tokens and encoded strings you have been given.
Encode a word
输入
Hello输出
SGVsbG8=Decode a string
输入
SGVsbG8gV29ybGQ=输出
Hello WorldEncode text with accents
输入
café输出
Y2Fmw6k=The text is converted to UTF-8 bytes first, so non-ASCII characters survive a round trip.
No. Base64 is encoding, not encryption: anyone can reverse it instantly. Never use it to hide passwords or secrets.
Base64 works in groups of three bytes, so padding characters are added when the input length is not a multiple of three. They can be dropped during decoding.
Yes. Text is encoded as UTF-8, so emoji, accents, and non-Latin scripts decode back to exactly what you entered.
No. Encoding and decoding happen entirely in your browser with nothing stored or transmitted.