PixSquish

Home › Image to Base64 converter

Image to Base64 converter

Convert images to Base64 data URIs for HTML, CSS and JSON — or decode Base64 back to an image. Runs locally.

🔒 Images never leave your device

Base64 to image

How to use the image to Base64 converter

  1. Drop an image to get its Base64 data URI.
  2. Copy the data URI, CSS or HTML snippet.
  3. Or paste a Base64 string to preview and check it.

About this tool

A data URI embeds an image directly in HTML or CSS, saving an HTTP request for tiny icons. Base64 is about 33% larger than the binary file, so it is best for images under a few kilobytes.

FAQ

Are my images uploaded to a server?

No. Images are processed with the HTML canvas API inside your browser. They never leave your device, which makes PixSquish safe for personal photos and confidential screenshots.

Should I Base64-encode large images?

No. Large Base64 images bloat HTML, cannot be cached separately and slow down rendering. Use normal image files above roughly 5–10 KB.

Related tools