UtilixWebConvert → Image to Base64

Image to Base64

Convert images to Base64 string or data URI — drag, drop, or click to upload

🖼️

Drag & drop an image here, or browse

Supports PNG, JPG, GIF, WebP, SVG, BMP, ICO

What is Base64 Image Encoding?

Base64 encoding converts binary image data into a string of ASCII characters. This allows images to be embedded directly into HTML, CSS, or JSON without a separate file request.

Data URI Format

A data URI looks like: data:image/png;base64,iVBORw0KGgo...

You can use it directly in HTML: <img src="data:image/png;base64,...">

When to Use

  • Embedding small icons or logos in HTML emails
  • Inlining images in CSS (background-image)
  • Passing images via JSON APIs
  • Creating self-contained HTML files

Base64 encoding increases file size by approximately 33%. For large images, linking to the file is more efficient.