Base64 Encoder & Decoder

Encode text to Base64.

Base64 SGVsbG8=

Formula: Groups of 3 bytes become 4 Base64 characters

Step-by-step with your numbers:
1. Values used:
2.
3. Base64 = SGVsbG8=
Did we solve your problem today?

Base64 encodes binary or text data using 64 safe characters.

The math behind it

Every 3 bytes (24 bits) split into four 6-bit groups, each mapped to a Base64 character.

Worked example

Hello becomes SGVsbG8=.

FAQ

Why use Base64?

To send binary data safely through text-only channels like email or URLs.