Image to BASE64 encoding

Drag the image here to convert it to base64 format.
Single image upload is only supported.

    Overview

    Base64 is a method of representing binary data using 64 printable characters.

    Base64 is commonly used to represent, transmit, and store binary data, including MIME emails and complex XML data, in situations where text data is typically processed.

    Image BASE64 encoding encodes image data into a string, which is then used to replace the image address, thus eliminating the need to use the image's URL.

    This image to Base64 encoding tool offers various image format conversions, including PNG to Base64 , GIF to Base64 , and JPEG to Base64 . Simply drag the image to the desired area to complete the operation!

    Base64 format

    data:[][;charset=][;base64],
    

    Base64 usage in CSS

    .demoImg{ background-image: url("data:image/jpg;base64,/9j/4QMZRXhpZgAASUkqAAgAAAAL...."); }
    

    Base64 usage in HTML

    <img width="40" height="30" src="data:image/jpg;base64,/9j/4QMZRXhpZgAASUkqAAgAAAAL...." />