Text to Base64 Encoder

Encode any text as Base64. Base64 is widely used to safely transmit binary data as text — in emails, data URLs, JWTs, and HTTP Basic Authentication.

Common Values

InputBase64
HelloSGVsbG8=
WorldV29ybGQ=
hello worldaGVsbG8gd29ybGQ=
testdGVzdA==
adminYWRtaW4=
passwordcGFzc3dvcmQ=
fooZm9v
barYmFy

How It Works

Base64 converts groups of 3 bytes (24 bits) into 4 printable ASCII characters. The 64 characters used are A-Z, a-z, 0-9, +, and /. If the input isn't a multiple of 3 bytes, "=" padding is added. For example, "Hello" in Base64 is "SGVsbG8=" — the "=" indicates one byte of padding.

Worked Examples

TextBase64
HelloSGVsbG8=
WorldV29ybGQ=
fooZm9v
barYmFy
testdGVzdA==
abcYWJj

Related Conversions

Frequently Asked Questions