Base64 Encoder

Encode text or a file’s original bytes as Base64 text using the selected alphabet.

Input: Text (UTF-8) or original file bytesResult: Base64 text

Text input

Run to see the result

Examples

Represent bitcoin genesis newspaper headline

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

Input

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

Expected answer

VGhlIFRpbWVzIDAzL0phbi8yMDA5IENoYW5jZWxsb3Igb24gYnJpbmsgb2Ygc2Vjb25kIGJhaWxvdXQgZm9yIGJhbmtz
Alphabet
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.

Input

tiger:pass1234

Expected answer

dGlnZXI6cGFzczEyMzQ=
Alphabet
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.

Input

event=deploy status=ready

Expected answer

ZXZlbnQ9ZGVwbG95IHN0YXR1cz1yZWFkeQo=
Alphabet
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.

Input

café

Expected answer

Y2Fmw6k=
Alphabet
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.

Input

café

Expected answer

Y2FmZcyB
Alphabet
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.

Input

你好,世界

Expected answer

5L2g5aW977yM5LiW55WM
Alphabet
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.

Input

release notes+A/B?

Expected answer

cmVsZWFzZSBub3RlcytBL0I/
Alphabet
A-Za-z0-9+/=
All bytes

Input

40aff2e9d2d8922e47afd464.bin

256 bytes

Download

Expected answer

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

Input

Hello, World!

Expected answer

SGVsbG8sIFdvcmxkIQ==
Alphabet
A-Za-z0-9+/=
UTF-8

Input

ნუ პანიკას

Expected answer

4YOc4YOjIOGDnuGDkOGDnOGDmOGDmeGDkOGDoQ==
Alphabet
A-Za-z0-9+/=

This operation encodes raw data into an ASCII Base64 string. e.g. hello becomes aGVsbG8=

Format reference: To Base64 background and specification

Related tools

Browse data format tools