Base64 Encoder/Decoder
Encode text to Base64 or decode Base64 to text. Perfect for data URLs, APIs, and data transmission.
Conversion Guide
Conversion
Encode
Text → Binary → Base64
Convert text to binary, then encode to Base64 using 64-character alphabet
Decode
Base64 → Binary → Text
Decode Base64 to binary, then convert back to original text
Step-by-Step Scenario
Example Scenario
Input
Hello
Convert to Binary
- H=72, e=101, l=108, l=108, o=111 (ASCII values)
Convert each character to ASCII values
Encode to Base64
- Group bits into 6-bit chunks
Additional Examples
Simple Text
Text: Hello
Base64
SGVsbG8=
With Spaces
Text: Hello World
Base64
SGVsbG8gV29ybGQ=
Characteristics of Base64
Text Compatibility
Base64 converts binary data to ASCII text, making it safe for text-based protocols like email and JSON.
Size Increase
Base64 increases data size by approximately 33% (4 characters per 3 bytes). This is the trade-off for text compatibility.
Bidirectional
Encode text to Base64 or decode Base64 to text instantly. Perfect for data transmission and storage.
Widely Used
Used in data URLs, email attachments, API responses, and anywhere binary data needs to be transmitted as text.
Important Notes
- Base64 is encoding, NOT encryption. Anyone can decode Base64 easily. Never use it for security or sensitive data protection.
- Base64 increases data size by approximately 33%. 3 bytes become 4 characters. This is the trade-off for text compatibility.
- Base64 uses 64 characters: A-Z, a-z, 0-9, +, and /. The = character is used for padding when needed.
- Common uses: data URLs (embedding images in HTML/CSS), email attachments, API data transmission, storing binary in JSON/XML.
- The calculator handles UTF-8 encoding correctly, supporting international characters and emojis in Base64 encoding/decoding.
Frequently Asked Questions
Find answers to common questions about Base64 encoding and decoding.