Convert files, images, and binary data to Base64 encoding online. Upload any file and instantly get its Base64 string for embedding in HTML, CSS, JSON APIs, or email attachments.
Base64 encoding converts binary file data into a text string using 64 printable ASCII characters. Used to embed files in HTML, CSS, JSON, or APIs.
Base64 increases the file size by approximately 33%.
Common uses: embedding small images in HTML/CSS as data URIs, transmitting files in JSON APIs and email (MIME), embedding certificates in PEM config files, encoding binary assets in environment variables or database fields.
Base64 encoding increases the original data size by approximately 33% (3 bytes become 4 characters). For example, a 1 MB image becomes about 1.37 MB after encoding. When embedding in CSS or HTML, weigh the trade-off: fewer HTTP requests but larger page size. It is best to use Base64 only for small files (under 10 KB).