Base64 Encoder / Decoder
Encode and decode text using Base64 encoding for safe data transmission and storage
Base64 Encoding
Processing Mode
Base64 Decoding
Processing Mode
Understanding Base64
Learn about Base64 encoding and its applications
What is Base64?
Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format by translating it into a radix-64 representation.
How Base64 Works
AaCharacter Table
A-Z (0-25), a-z (26-51), 0-9 (52-61), + (62), / (63), = (padding)
Example: 'Man' → TWFu
Step 1: Text to Binary
Convert each character to its 8-bit ASCII binary representation
Step 2: Group into 24-bit chunks
Combine three 8-bit bytes into one 24-bit group
Step 3: Split into 6-bit groups
Divide the 24-bit chunk into four 6-bit groups
Step 4: Convert to decimal
Convert each 6-bit binary number to its decimal equivalent
Step 5: Map to Base64 characters
Use the Base64 character table to find the character for each decimal value
Step 6: Final result
Combine the Base64 characters to get the final encoded result
Common Use Cases
Email Attachments
Encode binary files for email transmission
Web Development
Embed images and other assets directly in HTML/CSS
Data URLs
Create inline data representations for web resources
Mobile Apps
Transfer binary data through text-based APIs
Advantages of Base64
Data Integrity
Ensures data remains intact during transmission
Universal Compatibility
Works across different systems and platforms
Text-Based
Can be read and edited in text editors
URL Safe
Can be used in URLs with proper encoding
Base64 FAQ
Frequently asked questions about Base64 encoding and decoding