Image to Base64 Converter
Convert images to Base64 data URIs for embedding in HTML and CSS. Drag and drop or paste Base64 to decode.
🖼️
Drop an image here or click to upload
Max file size: 10 MB
How to Use
Convert images to Base64 data URIs for embedding in HTML and CSS. Drag and drop or paste Base64 to decode.
- 1Upload an image by clicking the drop zone or dragging a file onto it.
- 2The tool converts the image to a Base64-encoded data URI instantly.
- 3Copy the full data URI string or just the raw Base64 portion.
- 4Use the data URI directly in HTML `<img src>`, CSS `background-image`, or JSON payloads.
- 5Optionally paste an existing Base64 string to preview and verify the decoded image.
Key Features
- Converts any image (PNG, JPEG, GIF, WebP, SVG) to Base64 instantly
- Outputs both the full data URI and the raw Base64 string separately
- Preview the image alongside the encoded output for verification
- Runs entirely in the browser — your images are never uploaded to a server
- Supports drag-and-drop upload for a fast, seamless workflow