Convert
Image to Base64 and Base64 to image
Base64 writes an image as text, so you can embed it directly in HTML, CSS, JSON, or an email template without a separate file. The tool also works the other way: paste Base64 or a data URI, and it checks the content and returns the image to download.
Your files stay on your device.
or drag and drop them here
Your next image starts here.
Choose a file to see a preview and available settings.
Files
Ready to download
How to use: Image to Base64
01
Pick a direction
Image to Base64 or Base64 to image.
02
Add an image or text
Choose an image or paste Base64 text into the box.
03
Copy or download
Copy the data URI or download the resulting image.
Frequently asked questions
Why is Base64 longer than the file?
Base64 text is about a third larger than the original file. Use it for small images, icons, and logos.
How do I use a data URI in HTML?
Paste it into the src attribute of an img element. Turn on the HTML and CSS example and copy the finished code.
Is my image uploaded?
No. The conversion runs in your browser.