Choose an image
Click the drop zone to browse for a file, or drag an image straight from your desktop into the box.
Drop or upload an image to instantly get its base64 data URI, ready to paste into your code.
Click the drop zone to browse for a file, or drag an image straight from your desktop into the box.
Your browser reads the file with the FileReader API and encodes it as a base64 data URI on the spot.
Check the file size and dimensions, then press Copy to grab the full data URI for use in HTML or CSS.
No. The conversion uses the browser's built-in FileReader API entirely on your device. Your image never leaves your computer.
Any image format your browser can read, including PNG, JPEG, GIF, WebP and SVG. The output data URI includes the correct MIME type automatically.
Copy the full data URI and paste it directly as the src of an <img> tag, or inside a CSS url() value, with no separate image file needed.