Image to Base64

Convert images to Base64 data URIs. Perfect for embedding images directly in HTML or CSS.

Helpful?
Upload Image

Drag & drop an image here

or click to browse

Preview
--
Width
--
Height
--
File Size
--
Type
Options
Base64 Output
0 characters ~0 KB
Usage Examples
<img src="data:image/png;base64,..." alt="Image">
.element {
    background-image: url('data:image/png;base64,...');
}
const img = new Image();
img.src = 'data:image/png;base64,...';
Share this tool