← HomeImage to Base64

Image to Base64

Get the Data URL or raw Base64 of any image for HTML, CSS or JSON.

⇪

Drop an image to encode

PNG, JPG, WebP, BMP, GIF, SVG

How it works

  1. Drop a file into the upload area, or paste your content into the input box.
  2. Choose the output format and options, then start the conversion.
  3. Download the result — everything runs in your browser and nothing is uploaded.

Frequently asked questions

How long is the generated Base64?

About 1.33 times the image size, which suits icons and small images. Data URL includes the MIME prefix for img src; plain Base64 fits API fields.

Do my files get uploaded to a server?

No. All 12 tools run inside your browser, so files never leave your device. Closing the tab ends the session.

More general questions →