Image to Base64
Turn an image into a Base64 text string for code and CSS.
In plain words: This turns a picture into a long line of text that can be placed directly inside a web page or code. It is mainly for developers.
Choose an image to begin.
About this tool
Developers use Base64 to place a small image directly inside HTML, CSS or JSON instead of linking to a file. The result is a data URL that starts with the image type. It makes the text about a third larger than the image, so use it for small images only.