Convert images to Base64 encoded strings for embedding in code or data URIs.
or drop Image here
Upload an image and click 'Convert' to generate Base64 output.
Base64 encoding turns your image into a text string that you can embed directly in your code. This eliminates the need for separate image files and extra HTTP requests, making your pages load faster for small images like icons, logos and UI elements.
Choose based on where you'll use it:
<img> tags and CSS background-image. It includes the MIME type so browsers know how to
display it.This tool supports PNG, JPEG/JPG, GIF, WebP, AVIF, BMP, ICO, and SVG files.
Yes, files up to 5MB are supported. Keep in mind that Base64 encoding increases the data size by about 33%. For images larger than 10–20 KB, consider using regular image files instead for better performance.
Your image never leaves your browser. All conversion happens locally on your device using JavaScript — nothing is uploaded to any server.