Online Image to Data URI Conversion Tool

Image and SVG to base64 data-URI converter. Data URI is a method of embedding images directly into HTML or CSS code using small image base 64 encodings. It is useful for reducing the number of HTTP requests and it is only useful for small-size images.

Upload Image

You can convert this URI code into an image tag and a CSS background image code.
Select output code type.

<img src="data:image/jpeg;base64,/9j/4AAQS...">
width: height:
.image{
    background-image: url('data:image/jpeg;base64,/9j/4AAQS...);
}
width:
height:
class name:
data:image/jpeg;base64,/9j/4AAQS...

Copy the converted URI code and embed it in your web pages.

Code data URI