Skip to content
Toolzen
  • Image CompressorImage tools
  • Image ResizerImage tools
  • Image ConverterImage tools
  • Favicon GeneratorImage tools
  • Merge PDFPDF tools
  • Split PDFPDF tools
  • Remove PDF PagesPDF tools
  • Images to PDFPDF tools

Image to Base64

Encode an image as a Base64 data URI for HTML or CSS.

Loading tool…

How to use the Image to Base64

  1. 1

    Choose an image.

  2. 2

    Pick the output format: data URI, HTML <img> or CSS background.

  3. 3

    Copy the result.

Frequently asked questions

When should I inline images as Base64?

For very small images such as icons. Base64 is about 33% larger than the original file.

Are my images uploaded?

No. The file is processed by your own browser and never leaves your device. Nothing is uploaded to our servers.