Skip to content

Image to Base64

Turn an image into a Base64 data string.

Drop an image here or choose a file

JPG, PNG, WebP, GIF · best under 100 KB

Add an image to start.

Processed on your device. Nothing is uploaded to a server.

How to convert an image to Base64

  1. Drop your image into the box above.
  2. Copy the format you need: a data URI, a CSS background, an HTML img tag, or Base64 only.

When to use Base64

For small icons and logos inside CSS, HTML emails or JSON. For large photos a normal image file is smaller and faster.

Are my photos uploaded?

No. Everything happens inside your browser, so your photos never leave your phone or computer.