Image to Base64 Converter

Convert an image file into a Base64 data URL.
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

#ItemDescriptionFormat
1Base64Data URL schemedata:MIME;base64,Base64 data
2HTMLAn img tag for displaying the image<img src="#1">
3CSSCSS for a background imagebackground-image: url("#1");