Base64 Converter
Encode text to Base64 or decode Base64 to text with this simple converter.
File to Base64
Upload a file to convert it to a Base64 string. Useful for embedding images or other files in code.
or drag and drop
PNG, JPG, PDF, TXT up to 5MB
File Base64
About Base64 Encoding
Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used for:
- Encoding email attachments
- Embedding images directly in HTML or CSS using data URLs
- Storing complex data in JSON
- Sending binary data in XML documents
- Avoiding problems with binary data in text-based protocols
Base64 uses a set of 64 printable ASCII characters to represent binary data. Every 3 bytes of binary data are represented as 4 Base64 characters.