Skip to content
Menu

Free tool

Base64 & Image Converter

Convert an image to a Base64 data URI, or paste one back in to preview and download the image.

Nothing you enter is ever uploaded or stored. Every bit of processing on this page happens locally, in your browser.

Base64 & Image Converter

Preview
Base64 output

How to convert an image to Base64

  1. Choose Image → Base64.
  2. Upload an image.
  3. Copy the output. It is a complete data URI starting with data:image/, ready to paste into HTML or CSS.

How to turn Base64 back into an image

  1. Choose Base64 → Image.
  2. Paste a data URI, or a raw Base64 string without the data:image/ prefix.
  3. Check the preview, then press Download Image.

When to embed an image as Base64

A data URI puts the picture inside the code itself, so the page doesn't need a separate image file. That is useful for small icons and logos in HTML emails, where many email programs block linked images, for single-file HTML pages and prototypes, and for tiny images in CSS.

It is a poor fit for photos and large graphics. Base64 makes the data about a third bigger than the original file, and the browser can't cache the picture separately, so big embedded images slow a page down. As a rule of thumb, keep it to images of a few kilobytes.

The reverse direction is handy when you find a picture embedded in a web page, the source of an email or an API response and want it back as a normal file you can open and edit.

Food, drink and the business behind them

A useful tool.
Or a bigger idea?

Preparing a few photos is one job. Bringing a campaign together—or connecting the work behind it—is another. VSL helps independent cafés, restaurants, bakeries and pubs with both.

Explore the marketing examples ↗See systems & automation ↗Discuss your business ↗