Image Base64
Convert Image to Base64 free. No signup. Files deleted after 1 hour.
Max 50MB5 conversions/hourView Basic and Pro plans →
About Image to Base64
Upload a JPG, PNG, WebP, GIF or SVG and you get a .txt file with the complete data URI, ready to paste into an img src attribute or a CSS background-image. The image is sent to our server for this. Base64 Image does the same job in your browser and has copy buttons for CSS and HTML.
Frequently asked questions
Should I always inline images?
No. Base64 makes the data about a third larger than the image, and a data URI is only cached together with the HTML or CSS file it sits in. Keep it for small icons, where saving a request matters more than the extra bytes.
Does it work for SVG?
Yes. An SVG is encoded like the other images, with image/svg+xml as its type. For SVG a URL-encoded data URI is usually smaller than Base64, but this tool only makes Base64.