Image to Base64 Encoder

Encode an image file as a Base64 data URI for use directly in HTML or CSS.

Why use this tool?

Convert an image into a Base64 data URI to embed it directly in HTML, CSS or JSON without a separate file. Best for small icons, since Base64 is about a third larger than the file.

How to use it

  1. Upload an image.
  2. Choose the data URI, raw Base64, HTML or CSS snippet.
  3. Click Copy.