WebTool

Image to Base64

Free online image to Base64 converter: drop PNG, JPG, SVG or WebP for a Data URL, or preview and restore from Base64.

Privacy: all processing happens locally in your browser. Your input never leaves your device.

What is Image to Base64?

Inlining small icons or placeholders as Base64 Data URLs in HTML/CSS saves an HTTP request. Drop an image into this tool to get a complete data:image/png;base64,... string with one-click copy, or paste Base64 to preview and download the restored image. Everything is local. Note that Base64 is about 33% larger than the original — inlining is not recommended for images over a few dozen KB.

How to Use

  1. Drop in or choose an image
  2. Copy the generated Data URL
  3. (Reverse) paste Base64 to preview and download the image

FAQ

How much bigger does an image get as Base64?
About 33% larger (3 bytes become 4 characters) — only suitable for inlining icons of a few KB.
Which formats are supported?
Anything the browser can decode: PNG, JPG, GIF, SVG, WebP, AVIF and more.

Related Tools

Last updated 2026-09-04