xiukit

Image ↔ Base64 Converter

Instantly convert icons and images into Base64 strings, ready-to-paste HTML <img> tags or CSS background snippets — or paste any Base64 string to preview and download the image.

Private, no uploadFastFree, no sign-up

How to encode or decode Base64 images

  1. 01Choose Encode or DecodeStay on Image to Base64 to encode a file, or switch to Base64 to Image to decode text.
  2. 02Drop an image or paste Base64Open any PNG, JPG, WebP, GIF or SVG — or paste a Data URI / raw Base64 string.
  3. 03Copy snippet or downloadOne-click copy Data URI, HTML or CSS, or download the decoded image file.

Frequently asked questions

When should I embed images as Base64?

Base64 Data URIs are great for small icons, single-file HTML reports and email templates where you want zero external image requests.

Does Base64 increase size?

Yes, Base64 text is roughly 33% larger than the raw binary file, so keep it for small graphics or self-contained documents.

Can I paste raw Base64 without the data:image/... prefix?

Yes! The decoder automatically detects JPG, PNG, WebP, GIF and SVG headers even without the prefix.