Image to Base64 – Convert Images to Base64 / Data URI

Drop an image here or click to browse

JPEG, PNG or WebP · up to 50 MB

About this tool

Upload or drop an image and instantly get it as a Base64 string or a fully-formed data URI (data:image/png;base64,...). Paste the result into CSS, HTML, JSON, emails or anywhere that needs an inlined image. Optionally toggle the data: prefix for just the raw Base64. You can also paste a Base64 string or data URI and convert it back into a downloadable image. The image is processed locally and never leaves your browser.

How to use
  1. Drop an image or click to choose one.
  2. Preview the image and read its Base64 / data URI output.
  3. Toggle the data: prefix, then copy the result.
Is the image uploaded to a server?

No. The image is converted to Base64 entirely in your browser and never uploaded.

Which formats are supported?

Any image your browser can read — PNG, JPEG, WebP, GIF, SVG and more.