编码为 Base64

按照 RFC 4648 的 Base64 编码规则,将任意字节数据转换为可打印的 ASCII 文本。

输入: 文本 (UTF-8) / 文件结果: 文本

文本输入

运行后查看结果

案例

Represent bitcoin genesis newspaper headline

Use base64 to represent the exact UTF-8 bytes. Encoding does not make public text confidential.

输入

The Times 03/Jan/2009 Chancellor on brink of second bailout for banks

Expected answer

VGhlIFRpbWVzIDAzL0phbi8yMDA5IENoYW5jZWxsb3Igb24gYnJpbmsgb2Ygc2Vjb25kIGJhaWxvdXQgZm9yIGJhbmtz
字母表
A-Za-z0-9+/=
Represent a registry credential from kubernetes documentation

Use base64 to represent the exact UTF-8 bytes. Encoding does not make public text confidential.

输入

tiger:pass1234

Expected answer

dGlnZXI6cGFzczEyMzQ=
字母表
A-Za-z0-9+/=
Represent a checksum-sensitive log line with a final newline

Use base64 to represent the exact UTF-8 bytes. Encoding does not make public text confidential.

输入

event=deploy status=ready

Expected answer

ZXZlbnQ9ZGVwbG95IHN0YXR1cz1yZWFkeQo=
字母表
A-Za-z0-9+/=
Represent a french café in precomposed unicode

Use base64 to represent the exact UTF-8 bytes. Encoding does not make public text confidential.

输入

café

Expected answer

Y2Fmw6k=
字母表
A-Za-z0-9+/=
Represent a french café with a separate combining accent

Use base64 to represent the exact UTF-8 bytes. Encoding does not make public text confidential.

输入

café

Expected answer

Y2FmZcyB
字母表
A-Za-z0-9+/=
Represent chinese text in a utf-8 request body

Use base64 to represent the exact UTF-8 bytes. Encoding does not make public text confidential.

输入

你好,世界

Expected answer

5L2g5aW977yM5LiW55WM
字母表
A-Za-z0-9+/=
Represent a literal plus and space inside a url parameter

Use base64 to represent the exact UTF-8 bytes. Encoding does not make public text confidential.

输入

release notes+A/B?

Expected answer

cmVsZWFzZSBub3RlcytBL0I/
字母表
A-Za-z0-9+/=
All bytes

输入

40aff2e9d2d8922e47afd464.bin

256 bytes

下载

Expected answer

AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AgYKDhIWGh4iJiouMjY6PkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/w==
字母表
A-Za-z0-9+/=
Hello, World!

输入

Hello, World!

Expected answer

SGVsbG8sIFdvcmxkIQ==
字母表
A-Za-z0-9+/=
UTF-8

输入

ნუ პანიკას

Expected answer

4YOc4YOjIOGDnuGDkOGDnOGDmOGDmeGDkOGDoQ==
字母表
A-Za-z0-9+/=

相关工具

数据格式

操作参考

查看原始技术文档 (English)