Image to Base64

Convert an image to a Base64 data URL with ready HTML and CSS snippets, or decode Base64 back into an image. Free, private, in your browser.

Image → Base64

Drop an image

PNG, JPG, GIF, WebP, SVG, ICO — up to 10 MB

Base64 → image

How to use Image to Base64

  1. Drop an image (up to 10 MB).
  2. Copy the data URL, the Base64 text, or the ready HTML/CSS snippet.
  3. To decode, paste Base64 or a data URL into the lower box.

Good to know

  • Runs in your browser; nothing is uploaded.
  • SVG data is not previewed when decoding, because SVG can contain scripts.

Privacy

Runs entirely in your browser. Nothing you enter or open here is uploaded.

Questions

When should I use Base64 images?

For tiny icons in emails or CSS. For normal images a separate file is faster, because Base64 is about 33% bigger and can't be cached separately.

Related tools