Drop an image here
PNG, JPG, GIF, WebP, SVG, AVIF and more
Frequently Asked Questions
A Base64 data URI embeds binary files directly into text-based formats like HTML or CSS. The format is: data:[mimetype];base64,[base64-data]. This lets you use images inline without a separate file request, useful for icons and small graphics.
No. This tool uses the browser's FileReader API to convert the image to Base64 entirely on your device. Your image never leaves your browser — no upload, no server, complete privacy.
Base64 encoding increases file size by approximately 33% because it converts every 3 bytes of binary data into 4 ASCII characters. This is the trade-off for being able to embed binary data in text formats like HTML and CSS.
Any image format your browser can display is supported — PNG, JPEG, GIF, WebP, SVG, AVIF, ICO, and BMP. The MIME type in the data URI is set automatically from the file's type metadata.