Updated June 2026 · runs 100% in your browser

Image to Base64

Encode an image as a Base64 data URI you can paste straight into HTML or CSS — on your device. No upload, no sign-up.

Drop images here

or click to choose

🔒 Encoded on your device · 0 bytes uploaded

How it works

Your browser reads the image and encodes its bytes as a Base64 string on your device. Nothing is uploaded. The result is a data URI you can drop directly into an img tag or CSS background.

About Base64 images

Embedding small images as Base64 saves an HTTP request, which can be handy for icons or email. Note that Base64 makes the data about a third larger, so it's best for small images.

Frequently asked questions

How do I convert an image to Base64?
Drop an image and a Base64 data URI appears in a box you can copy. It all runs in your browser.
What is a data URI?
The image encoded as text (data:image/...;base64,...) that you can paste into HTML or CSS so the image loads without a separate file.
Is my image uploaded?
No. Encoding happens on your device and your image is never sent anywhere.
What is a BASE64 file?
Base64 encodes binary data (like an image) as plain text so it can be embedded directly in HTML, CSS, or JSON. It makes data about a third larger but lets files travel as text.