Image to Base64

Convert a supported static image file into a data URL for use in HTML or CSS.

How to use Image to Base64

  1. Choose a raster image.
  2. Generate its data URL.
  3. Copy it or download the text.

Inline images work best for small assets. Use a separate file for large images.

Related tools