Image to Base64 Converter

Turn an image into a Base64 string or data URI you can paste into HTML, CSS or JSON.

Drop your images here

JPG, PNG, WebP, GIF, BMP, AVIF · up to 50 images · never uploaded

All tools

Why use it

Embedding small images as Base64 saves a request and is handy for emails, prototypes and single-file pages. Large images are better kept as normal files.

How it works

Add your images, choose the options on the right, then download each file or everything as a ZIP. Files never leave your device.

Questions

What is a data URI?

A text version of the file that starts with data:image and can be used directly as an image source.

Is there a size limit?

Each file can be up to 5 MB. Base64 text is about one third longer than the file.

Original image
Result image

Crop image

History

Files you downloaded are kept in this browser only, until you clear it or your browser data.