Image to Base64 Converter
Convert an image file into a Base64 data URL.
Drop files here or click to select
- Safe
- Processing runs on your device, so input/output is not sent anywhere.
Explanation
Base64 is an encoding that represents binary data using 64 ASCII characters.
By converting an image to Base64 (a data URL), you can embed it directly into a web page.
Supported image formats
Supports most image formats that browsers can handle.
JPEG / GIF / PNG / APNG / BMP / WebP / SVG ...
Outputs
| # | Item | Description | Format |
|---|---|---|---|
| 1 | Base64 | Data URL scheme | data:MIME;base64,Base64 data |
| 2 | HTML | An img tag for displaying the image | <img src="#1"> |
| 3 | CSS | CSS for a background image | background-image: url("#1"); |