Image to Base64
Convert images to Base64 data URIs for embedding in HTML or CSS.
Drop an image or click to browse
Supports JPEG, PNG, WebP, GIF, SVG, BMP
Convert any image file into a Base64-encoded string directly in your browser. Use the result as a Data URI in CSS backgrounds, HTML img tags, or JSON payloads — no server upload required.
Key Features
Instant encoding
Drag and drop any JPEG, PNG, WebP or GIF and get the Base64 string in milliseconds.
Multiple output modes
Switch between a full Data URI (with MIME type prefix) and a raw Base64-only string.
HTML snippet
Copy a ready-to-paste <img> tag with the embedded Base64 src attribute.
File info
See original dimensions, file size, MIME type, and estimated encoded size at a glance.
How to Use
- 1Drag and drop your image onto the drop zone or click to browse.
- 2Wait for the instant encoding - no upload needed.
- 3Select "Data URI" mode for a full data:image/…;base64,… string, or "HTML img tag" for a ready-to-use snippet.
- 4Click Copy to send the result to your clipboard.