🔗 Base64 Encoder & Decoder
Encode and decode Base64 strings instantly
Input Text
0 charactersOutput (Base64)
0 characters💡 Quick Examples
What is Base64 Encoding?
Base64 is an encoding scheme that converts binary data into ASCII text format. It's commonly used for transmitting data over media designed to handle text, such as email or JSON.
Common Use Cases
- Email Attachments: Encoding binary files for email transmission
- Data URLs: Embedding images directly in HTML/CSS
- API Authentication: Encoding credentials for Basic Auth
- JSON Data: Sending binary data in JSON format
- URL Parameters: Safely passing data in URLs
How Base64 Works
Base64 uses 64 characters (A-Z, a-z, 0-9, +, /) to represent binary data. Every 3 bytes of input produces 4 characters of output.
Example
Original: Hello World!
Base64: SGVsbG8gV29ybGQh
Important Notes
- Base64 is encoding, NOT encryption - don't use it for security
- Encoded data is about 33% larger than original
- All processing happens in your browser - no data sent to servers
FAQ
Is Base64 encryption?
No, Base64 is encoding, not encryption. Anyone can decode Base64. Never use it alone for sensitive data.
Why does encoded text look random?
Base64 converts data to a different character set that's safe for text transmission.
Can I encode files?
Yes! Use the "Upload File" button to encode any text file to Base64.
