Encode text to Base64 or decode Base64 back to plain text instantly in your browser.
What Is Base64 Encoding?
Base64 converts binary data into a set of 64 printable ASCII characters (A-Z, a-z, 0-9, +, /). It increases data size by about 33% but ensures safe transmission through text-based protocols like email (MIME) and URLs.
Common Uses
| Use Case | Example |
|---|
| Email attachments | MIME encoding for binary files |
| Data URIs | Embedding images in CSS/HTML |
| API authentication | HTTP Basic Auth header |
| JWT tokens | Header and payload encoding |
How to Use This Base64 Encoder / Decoder
Paste text or upload a file to encode to Base64. Or paste Base64 to decode back to the original format. Supports text, images, and binary files.
Formula & How It Works
Base64 encodes every 3 bytes (24 bits) into 4 ASCII characters from a 64-character alphabet (A-Z, a-z, 0-9, +, /). Output is ~33% larger than input.
Calculation Example
"Hello World" encodes to "SGVsbG8gV29ybGQ=". The "=" is padding when the input length is not a multiple of 3.
Expert Tips
Base64 is encoding, NOT encryption β anyone can decode it. Use it for embedding images in CSS/HTML (data URIs), email attachments (MIME), and API authentication (HTTP Basic Auth).