Image to Base64 Converter
Convert an image to a Base64 data URL for use in HTML, CSS or JSON. Runs in your browser; the image is never uploaded.
Turn an image into a Base64 data URL
A Base64 data URL embeds an image directly in HTML, CSS or JSON, so no separate file request is needed. It works well for small icons and inline images.
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.