Encoding tool
Image to Base64 Converter / Base64 to Image Converter
Encode a PNG, JPG, GIF, or WebP as Base64, CSS background-image, or an HTML data URI. Decode Base64 to a live preview and download PNG, JPG, or WebP. Conversion stays on your device.
Like the tool? Find a bug?Share with usConverter
Convert an image to Base64, CSS, or HTML, or paste a data URI to preview and download. FileReader and canvas stay on your device.
Drop a PNG or JPG file here (.png, .jpg, .jpeg, .jfif, .gif, .webp, .bmp, .ico)
A data URI will appear here.Preview