Home › Tools › Image to Base64

Convert image to Base64

Embed small images directly in HTML or CSS. Get a data URI, an img tag, a CSS background rule or the raw Base64 string.

✓ Free✓ No upload
PrivateFiles never leave your device
InstantNo queue, no waiting for a server
FreeNo signup, no watermark

How to use it

  1. Drop an image on the box above.
  2. Choose the output style.
  3. Click Copy.

Frequently asked questions

Is my file uploaded?

No. Everything is processed on your device by your browser. Nothing is sent to a server.

When should I use Base64 images?

For very small images such as icons, where saving an extra request helps. Base64 makes data about 33% bigger, so large photos are better as normal files.

More free tools

Need more than a quick fix? Open the Grainroom online photo editor for layers, masks, retouching and film looks, free in your browser.