How to Convert an Image to Base64

A Base64 string lets you embed a small image directly in HTML, CSS or JSON without a separate file.

Open the free Image to Base64

Step by step

  1. Open Image to Base64 and select your image.
  2. Wait for the string to be created.
  3. Copy the result.
  4. Paste it into your code as a data URI.

Tips

Frequently asked questions

What is a data URI?

A way to put file data directly inside a web page or stylesheet.

Is the image uploaded?

No.

Is it free?

Yes.

Related

Advertisement