Image to Base64 String Converter

Use this tool to quickly upload an image and convert it into base64 string. The result can be used in place of an actual image inside your HTML, such as the value inside an IMG's src property. For small images such as an icon or button, the benefit of this is one less http request and increased portability.

* image files accepted (.png/.jpg/.gif). Max size: 5MB

Raw Base 64 String:
Full Image HTML:

Tip: The raw base64 string can basically be used anywhere where an image file is expected in your HTML, such as inside CSS's background: url(base64string)property.

Demo Image
Image Output Attributes
  • Width:48
  • Height:48
  • Size (bytes):2.7 KB

Web Tools