Convert any image to a Base64 encoded data URI. Embed images directly in HTML, CSS, or JSON without external hosting.
Drag & drop an image here or click to browse
Supports JPG, PNG, WebP, GIF, SVG
A Base64 encoded image (also called a data URI) is a text representation of an image file. Instead of referencing an external image file, you embed the image data directly in your HTML, CSS, or JavaScript. This eliminates an HTTP request and can improve page load performance for small images.
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...">
.logo {
background-image: url("data:image/png;base64,iVBORw0KGgo...");
}
Base64 encoding increases file size by approximately 33%. Large images encoded as Base64 can bloat HTML files and should be avoided — use external URLs for images over 5–10 KB.