100% in-browser -- nothing is uploaded

Image to Base64 online — free & private

Encode an image into a Base64 data URI for CSS, HTML, and scripts. Your file never leaves your device.

  • No upload
  • Sign in to download
  • Free

What is image to base64?

Base64 encodes binary data as text. An image encoded as a data URI can be embedded directly in HTML, CSS, or JSON — no separate file request needed. This is handy for prototypes, email signatures, and single-file tools.

The encoding happens entirely in your browser, so sensitive assets never touch a server.

How to image to base64

  1. Drop or click to choose an image.
  2. The full data URI appears with size statistics.
  3. Copy it, or download it as a .txt file.

Frequently asked questions

Why is the encoded text so long?

Base64 adds roughly 33% overhead — that's inherent to the format.

Can I use this for CSS backgrounds?

Yes. Paste the data URI directly into a `url(...)` or an `<img src>`.

Is there a size limit?

We accept files up to 20 MB to keep the browser responsive.

Get the Free Photo Toolkit

Every image spec, size, and preset for Amazon, Etsy, Instagram, and passport photos -- one printable PDF.

No spam, unsubscribe anytime. Your email is only used to deliver the toolkit.