Image to Base64 Converter

Turn any PNG, JPG, GIF, WebP or SVG file into a Base64 data URI string you can paste straight into HTML, CSS, JSON or Markdown. Embedding images this way removes one HTTP request, which is great for tiny icons, email templates, or assets bundled with self-contained pages. The conversion runs entirely in your browser.

Frequently Asked Questions

What is a data URI?

A data URI is a string that embeds the image's bytes directly into HTML or CSS, so no separate file request is needed. It looks like: data:image/png;base64,iVBOR…

When should I embed images this way?

Small icons, decorative shapes, or images you don't want as a separate HTTP request. Avoid embedding large photos — they bloat HTML/CSS files and can't be cached separately.

Does it support SVG?

Yes — SVG, PNG, JPG, GIF and WebP files are all supported.

Are my images uploaded?

No. The conversion uses the browser's FileReader API, so your image stays on your device.