Convert images to Base64 encoded strings and data URIs for embedding directly in HTML, CSS, and email templates. Drag and drop or select any image file — PNG, JPG, SVG, GIF, WebP, AVIF. Get ready-to-use HTML <img> tags and CSS background-image code. Reduce HTTP requests by inlining small images. All encoding happens in your browser using the FileReader API — no images are uploaded to a server.
Click to select an image or drag and drop
PNG, JPG, SVG, GIF, WebP · Max 10 MB
data:image/png;base64,iVBOR.... This eliminates the need for a separate HTTP request to load the image file — the image data is inline in the document itself.<img src="data:image/png;base64,iVBOR..." alt="description">. CSS: background-image: url('data:image/png;base64,iVBOR...'). The data URI includes the MIME type prefix so the browser knows how to render the image. Always add meaningful alt text for accessibility and SEO.image/png, image/jpeg, image/svg+xml). Note: SVG files are often more efficient as inline <svg> elements rather than Base64, since SVG is already text-based.