Skip to content

Free online tool

Image to Base64

Encode an image as a data URL you can paste into HTML, CSS, or an email.

Processed in your browser — images are not uploaded to the server for this tool.

Drop an image here

JPG, PNG, WebP, or GIF · up to 10 MB

How to turn an image into Base64

  1. Choose a JPG, PNG, WebP, or GIF.
  2. Click Encode image.
  3. Copy the data URL. The characters after the comma are the raw Base64.

The file is read in your browser and is not uploaded. A GIF stays in its original bytes, including animation.

Frequently asked questions

Is the image uploaded?

No. The data URL is created in your browser from the file you choose.

Where can I use the result?

Paste the data URL into an img src, a CSS url(), or an email template. Use the text after the comma when a field asks for raw Base64.

Keep editing without leaving the site.