Convert images to Base64 strings for web embedding and data URIs
📁
Drop image here or click to select
Supports JPG, PNG, WebP, GIF, BMP, SVG
Image Preview
Conversion Settings
Data URI
Complete data URI
Base64 Only
Just the string
CSS
CSS background
HTML
HTML img tag
Base64 Output
About Base64 Encoding:Base64 encoding converts binary image data into a text string that can be embedded directly in HTML, CSS, or JavaScript. This is useful for creating data URIs, embedding images in emails, or storing images in databases. Note that Base64 encoded images are about 33% larger than the original binary format.
⚠️ Size Warning:Base64 encoded images are larger than the original files. For large images, consider compressing them first or using external hosting services for better performance.