Base64 Encoder & Decoder
Encode text to Base64 or decode Base64 strings. All processing happens locally in your browser.
About Base64 Encoding
Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used when you need to transfer binary data over systems designed for text.
Common Use Cases
- Email attachments: MIME uses Base64 to encode binary files
- Data URLs: Embed images directly in HTML/CSS
- API authentication: HTTP Basic Auth uses Base64
- Storing binary in JSON: Since JSON doesn't support binary
How Base64 Works
Base64 encoding converts every 3 bytes of input into 4 ASCII characters. This means encoded data is approximately 33% larger than the original. The character set includes A-Z, a-z, 0-9, +, and /, with = used for padding.
Note on Security
Base64 is an encoding, not encryption. It does not provide security - anyone can decode Base64 data. Never use Base64 alone to protect sensitive information.