Image to Data URI converter Image to Data URI converter

Image to Data URI converter

Upload an image and convert it to a Data URI/Base64 string for use in HTML, CSS or JSON. The output is useful for small icons, email templates, CSS backgrounds, demos and test layouts where a separate image file would be inconvenient.

The tool helps you copy a ready-to-use snippet, check the encoded size and decide whether inline embedding is reasonable for the image you selected.

Do you have an image and want to map it to a Data URI?
Our service will help you with this. It is completely free and online.
No need to install additional software on a computer. Just upload the image to our server and click one button.
The service is available for any platforms and OS. As a regular desktop PC, and from a laptop, tablet and smartphone.
Enough browser and Internet access.
Your data is protected. After the operation, the files are deleted from the server.

Supported formats

This tool accepts these formats. Uncommon containers and modern web formats may be normalized or converted on the server before processing.

Images
APNG AVIF BMP DDS DPX EXR FITS FTS GIF HDR HEIC HEIF ICO J2C J2K JPC JPE JPEG JPG JP2 JPF JPS JXL PAM PBM PCX PGM PNG PNM PPM PSD TGA TIF TIFF WBMP WEBP SVG

A damaged file or a non-standard codec can still fail even when the extension is supported.