Image to Base64 Converter

Convert an image to a Base64 data URL for HTML, CSS or JSON. Free and private: runs in your browser, nothing is uploaded.

FAQ

How do I convert an image to Base64?

Choose an image file and copy the Base64 data URL, the raw Base64, or a ready-made HTML img tag.

Are my files uploaded anywhere?

No. Encoding happens entirely in your browser. Nothing is sent to a server, so your data stays on your device.

When should I use Base64 images?

Embedding small images directly in HTML, CSS or JSON avoids extra requests, but Base64 is about 33% larger than the file, so avoid it for big images.