No image selected 0 B Β· β€”

Drop an image here

PNG, JPEG, WebP, GIF, SVG, BMP, AVIF, and ICO stay inside this browser.

Encoding is local; your image never leaves the browser.

Large inputs use a Web Worker above 500 KB.

Image size
0 B
browser-only input
Base64 length
β€”
characters without prefix
Payload growth
β€”
expected Base64 overhead
0 Base64 chars Β· 0 data URI chars
Base64 output
Data URI output

Image to Base64

Convert PNG, JPEG, WebP, GIF, SVG, BMP, AVIF, and ICO images into Base64 strings or full data URIs in your browser. Copy either output, download text files, and keep large files responsive with Web Worker offloading.

Image to Base64 Use Cases

  • Embed icons and small assets inline in HTML, CSS, or JSON payloads
  • Prepare Base64 image payloads for APIs, CMS forms, and test fixtures
  • Generate ready-to-paste data URIs for email templates and prototypes
  • Inspect how much a file grows before embedding it inline

Image to Base64 FAQ

Does my image leave the browser?

No. The image is read, encoded, and displayed entirely in your browser. Nothing is uploaded to a server.

What is the difference between Base64 output and a data URI?

Base64 output is only the encoded payload. A data URI adds the MIME prefix, such as data:image/png;base64,..., so you can paste it directly into HTML or CSS.

Which image formats are supported?

You can load PNG, JPEG, WebP, GIF, SVG, BMP, AVIF, and ICO images. The original MIME type is preserved in the generated data URI whenever it is available.

How are large images handled?

Images larger than 500KB are encoded in a Web Worker so the UI stays responsive during conversion.