Encode any image file to a Base64 data URL string for embedding in HTML, CSS, JavaScript, or JSON.
Drag & drop images here
or browse files
.JPG, .JPEG, .PNG, .WEBP, .GIF, .BMP, .SVG · Max 10 MB per file · Up to 5 files
Select the image file to encode.
Copy the full data URL or raw Base64 string.
Paste into HTML, CSS, or JSON directly.
A data URL encodes binary image data as a text string, allowing images to be embedded directly in HTML/CSS without external file references.
For images under 10KB, inline Base64 is efficient. Larger images are better served as external files.