Base64 Encoder/Decoder
Encode and decode Base64 data with text or file support
Click to upload file
Any file type supported (Max 5MB)
File Name
--
File Size
--
Base64 Length
--
What is Base64 Encoding?
Base64 is a binary-to-text encoding scheme that represents binary data in ASCII format. It's commonly used to encode binary data for transmission over text-based protocols like email or JSON APIs.
Common Use Cases
- Embedding Images: Include small images directly in HTML/CSS using data URIs
- API Data Transfer: Send binary files through JSON APIs
- Email Attachments: Encode files for MIME email transmission
- Authentication: Encode credentials for HTTP Basic Auth
- Data Storage: Store binary data in text-only databases
How Base64 Works
Base64 converts every 3 bytes (24 bits) of binary data into 4 ASCII characters (6 bits each). This increases data size by approximately 33% but ensures compatibility with text-based systems.
Security Note
Base64 is encoding, NOT encryption. It provides no security - encoded data can be easily decoded. Never use Base64 alone to protect sensitive information.