Convert Images to Base64 Encoded String in Online

Image to Base64 Converter is used for converting images to base64 encoded string. We can use the base64 encoded string in '<img>' tag and CSS.

How to use base64 string in <img> tag?

<img src="data:image/jpeg;base64,/9j/4AAQSkZJ..."/>

How to use base64 string in css?

background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJ...")

No comments:

Post a Comment