Skip to content
Torola

Image to Base64

Turn an image into a Base64 data URI for HTML or CSS — or decode Base64 back into an image.

  • Processed locally — your files never leave your device
  • Free, no sign-up
  • No file limits

How to use Image to Base64

  1. 1

    Choose Image → Base64 and drop an image — or Base64 → Image and paste a string.

  2. 2

    Pick the output: data URI, plain Base64, HTML <img> or CSS.

  3. 3

    Copy the code or download the decoded image.

Features

  • Both directionsEncode images and decode Base64 strings back into files.
  • Ready-made snippetsGet an <img> tag or CSS background-image in one click.
  • PrivateNothing is uploaded — conversion happens in your browser.

Frequently asked questions

When should I inline images as Base64?

For small icons and sprites, to save an HTTP request. Large photos are better as normal files.

What if my Base64 has no data: header?

The image type is detected automatically from the file's first bytes.

Is it free?

Yes.

Related tools