Your files

Each file stays available at its link for 48 hours and is then deleted from our server automatically. You can delete it earlier at any time.

No files yet. Files you convert appear here and stay available for 48 hours.

Image Base64 Encoder

Upload an image and instantly get its Base64-encoded string or data URI, ready to embed in HTML, CSS, or JSON.

Need to go the other way? Try the Image Base 64 Decoder

Base64 result (0 characters):

What Is Image Base64 Encoding?

Base64 encoding turns the binary data of an image into a string of printable ASCII characters. Wrapped in a data URI (data:image/png;base64,...), that string can be embedded directly inside HTML, CSS, or JSON instead of linking to a separate image file.

This tool reads the image you upload and converts it to Base64 entirely inside your browser — the file is never sent to a server.

How to Use the Image Base64 Encoder

  1. Click the upload area (or drag and drop) to select an image file.
  2. The Base64-encoded result, including the data URI prefix, appears automatically below.
  3. Click "Copy" to copy it, or toggle off the prefix if you only need the raw Base64 string.

Frequently Asked Questions

Is it safe to encode private images here?

Yes. The image is read and encoded entirely in your browser using JavaScript — it is never uploaded or stored on a server.

Which image formats are supported?

Any image format your browser can read, including PNG, JPG/JPEG, GIF, WebP, BMP, and SVG.

What is the data URI prefix for?

The prefix (e.g. data:image/png;base64,) tells browsers and applications how to interpret the Base64 string as an image, so it can be used directly as an <img> src or CSS background-image.

TOP