What do you need?

Image to Base64

Processed entirely on your device · your files are never uploaded

Drop an image to convert to Base64

Get a data URI · in your browser · no signup

Stays on your device — we do not upload your images.

  1. 1Drop your image
  2. 2Pick format or quality
  3. 3Download instantly

About this tool

Encode an image as a Base64 string or data URI you can paste straight into HTML, CSS or JSON. ScanText at scantext.net encodes your image as a Base64 data URI you can paste straight into HTML, CSS or JSON — with a ready-made CSS background snippet and a copy button — all in your browser. It's the quick way for developers to inline a small icon or logo without an extra HTTP request. Best for small images, since Base64 strings are larger than the original file. Because the image is processed on your device, nothing is uploaded to our servers. No account and no watermark.

More tools (same language site):

Guides

Frequently asked questions

Upload the image, then copy the data URI or download it as .txt. Runs in your browser.
Image to Base64 — Convert Image to Data URI Free | ScanText