Skip to content
HQ8T

Image to Base64

Images to data URIs, and Base64 back to images.

Direction

How to use

  1. 1Choose Image → Base64 and pick an image.
  2. 2Copy the data URI, plain Base64, HTML img tag or CSS snippet.
  3. 3Or choose Base64 → Image and paste a Base64 string.
  4. 4Preview and download the decoded file.

Frequently asked questions

When should I use Base64 images?

For small icons and images under about 10 KB, to save an HTTP request. Base64 is about 33% larger than the file.

Can it decode Base64 without the data: prefix?

Yes. It detects PNG, JPG, GIF, WebP, SVG, ICO, AVIF and PDF from the first bytes.

What is the size limit?

Images up to 10 MB.

Are my images uploaded?

No. Conversion uses your browser's FileReader; nothing leaves your device.

Why is my CSS slow with Base64?

Large inline images block CSS parsing. Keep big images as separate files.