Image to Base64

Convert Image to Base64

Share

File type: .jpg, .jpeg, .png, .gif, .bmp

Result

How to use?

In HTML file

If you are going to use base64 in HTML then your code will look like the following.

<img src="data:image/jpeg;base64,..." alt="base64 image">

In CSS file

If you are going to use base64 in CSS then your code will look something like the following.

.class {
    background: url('data:image/jpeg;base64,...');
}

#id {
    background: url('data:image/jpeg;base64,...');
}