Image to Base64 Converter

Upload Image

Drop image here

or click to select
Output
0 chars
Base64 to Image

Image will appear here

Images as Base64 Data URIs

Drop an image and get a data URI, raw Base64, an <img> tag or a CSS background rule - or paste Base64 back to preview and download the image. Conversion runs locally; the image is never uploaded anywhere.

A Base64-encoded image is about 33% larger than the binary file and skips HTTP caching, so the technique only pays off for small assets: icons of a few kilobytes, email templates, single-file HTML documents. Where the break-even actually sits is measured in images and Base64 data URIs. For encoding text rather than files, use the Base64 encoder.

Image to Base64 Questions

Embed images directly in HTML/CSS without separate HTTP requests. Useful for small icons, email templates, or when you can't serve static files.

Yes, about 33% larger. The trade-off is fewer HTTP requests. Worth it for small images (under 10KB), not worth it for large photos.

PNG, JPG, GIF, SVG, WebP - anything your browser can display. The output format matches the input.

Yes, paste a Base64 string or data URL in the decoder section. The tool will show the image and let you download it.