Image Base64 converter

Turn images into data URIs and decode Base64 back into images. Free, private and offline in your browser — files never leave your device.

Developer & security100% on deviceFree, no accountWorks offline

About this tool

Convert an image to a Base64 data URI for CSS, HTML or JSON — or paste a data URI back and save the image.

How it works

  1. Drop an image to get its data URI, or paste Base64 into the input to decode it.
  2. Check the preview and the character count.
  3. Copy the string, or download the decoded image.

Frequently asked questions

Which formats are supported?

Anything the browser can display: PNG, JPG, GIF, WebP and SVG, plus the matching data URIs on the way back.

Should I inline every image?

No. Base64 is about a third larger than the binary file and cannot be cached separately, so inline only small icons and logos.