Image to Base64

Convert an image into a Base64 Data URL for embedding in HTML, CSS or JSON. Nothing is uploaded.

Choose image

not selected
🖼

Click to choose an image

JPG / PNG / WebP, up to 5MB

Data URL

—

How to use

Three steps, no sign-up

Choose an image

JPG, PNG or WebP.

Auto-convert

Data URL generated locally.

Copy the code

Paste into src or CSS.

FAQ

Does Base64 make files bigger?
Yes, about 1.33× the original size. It suits small images embedded in HTML or CSS, not as a replacement for image files.
Is the image uploaded?
No. Conversion happens entirely in your browser.
Can I use it on a website?
Yes. Copy the whole Data URL and paste it into an img src or a CSS background-image.

You may also need