Image to Base64 Converter

Convert PNG, JPG, GIF, WebP or SVG images to Base64 data URIs for HTML and CSS, and decode Base64 strings back to downloadable images. Nothing is uploaded.

Runs 100% in your browser. Nothing you paste is uploaded.

Drop an image here, paste from the clipboard, or

PNG, JPEG, GIF, WebP, SVG, ICO — processed locally

Details

File—

Base64 → image

About the Image to Base64

Inline small images directly in HTML, CSS or JSON as data: URIs to save HTTP requests — ideal for icons, email templates and single-file demos. Drop, pick or paste (Ctrl+V) an image and copy the ready-made snippet. You can also paste a Base64 string to preview and download the image it contains.

Features

  • PNG, JPEG, GIF, WebP, SVG, ICO
  • Data URI, raw Base64, <img> tag and CSS snippets
  • Paste images from the clipboard
  • Dimensions and size overhead
  • Base64 → image preview and download

How to use it

  1. Drop, choose or paste an image.
  2. Pick the output format tab and copy it.
  3. To reverse, paste Base64 in the lower box.

Frequently asked questions

When should I inline images as Base64?

For small images (under ~5–10 KB). Larger images are better served as files because Base64 is 33% bigger and cannot be cached separately.

Esc