Base64 is a binary-to-text encoding scheme that converts binary data into a string of 64 printable ASCII characters. It was created to safely transmit binary data through text-only systems like email and URLs.
Understanding Base64 is fundamental for web developers, email engineers, and anyone working with APIs. It appears in JWT tokens, data URIs, email attachments, and API authentication.
Try It Now — Free, No Sign-up
Open the tool and get started instantly. No sign-up, no installation needed.
Open Base64 Encoder & Decoder Now100% browser-based • No upload to server • No sign-up required
How to What is Base64 Encoding? — Complete Explanation
- Binary data is split into groups of 3 bytes (24 bits)
- Each 24-bit group is divided into 4 groups of 6 bits
- Each 6-bit value (0-63) maps to a character in the Base64 alphabet
- The alphabet is: A-Z (0-25), a-z (26-51), 0-9 (52-61), + (62), / (63)
- If input is not divisible by 3, = padding is added
- Try encoding "Hello" → "SGVsbG8=" with our tool above
Pro Tips
- "Hello" in Base64 = "SGVsbG8=" — every 3 input chars become 4 output chars
- The = at the end is padding — it means the last group had fewer than 3 bytes
- Base64 is NOT encryption — anyone can decode it. It is just a format conversion.
- The name "Base64" comes from using 64 different characters (2^6 = 64)
Frequently Asked Questions
Related Tools & Guides
Ready to Use Base64 Encoder & Decoder?
Free, instant, and 100% private. No sign-up needed.
Open Base64 Encoder & Decoder