Drop your image here
Upload an image to convert it to Base64
Choose Image
Supports: JPG, PNG, WebP, GIF • Max 10MB
Preview appears here
Convert any image to a Base64 encoded string or data URI. Ideal for embedding images directly in HTML, CSS, or JavaScript without external file requests.
Upload an image to convert it to Base64
Supports: JPG, PNG, WebP, GIF • Max 10MB
Preview appears here
Select any image file — JPG, PNG, WebP, GIF, SVG, or other format.
Select "Data URI" to get the full string including the mime type prefix, or "Base64 Only" for the raw encoded string.
Click "Convert to Base64" and the encoded string appears instantly.
Click "Copy" to copy the string to your clipboard, then paste it into your HTML, CSS, or JavaScript code.
data:image/png;base64,iVBORw0KGgo... This full string can be used directly as an image src attribute in HTML or as a URL in CSS.