Convert images to Base64 strings. Generate data URLs for embedding in code.
Drag & drop an image here
or click to browse
Drag and drop or click to upload a PNG, JPG, WebP, or SVG image. The tool accepts any common image format.
The tool instantly encodes your image and displays the Base64 string along with the complete data URI including the MIME type prefix.
Click the copy button to grab the Base64 string or full data URI. Paste it directly into your HTML img tags, CSS background properties, or JavaScript code.
Image to Base64 converter online — encode any image as a Base64 string for free. Convert PNG, JPG, WebP, and SVG images to Base64 data URIs for embedding directly in HTML, CSS, JavaScript, or JSON. Eliminates extra HTTP requests by inlining images as text strings. Ideal for email templates, single-file HTML pages, CSS backgrounds, and small icons. See the encoded output size and copy the complete data URI with one click. No software needed — all encoding runs privately in your browser.