Home › Image tools › Image to Base64

Image to Base64

Turn an image into a Base64 data URI you can paste into HTML, CSS or JSON.

Runs entirely in your browser. Nothing is uploaded.

How to use Image to Base64

  1. Choose or drop an image.
  2. The Base64 data URI appears instantly.
  3. Copy it as plain text, an HTML <img> tag or a CSS background.

Frequently asked questions

When should I use Base64 images?

For small icons and logos, to save an extra web request. Large photos are better as normal files.