Image to Base64

Turn a small image into a Base64 data URI you can paste straight into HTML, CSS or JSON.

Runs in your browser — nothing is uploaded

How to use Image to Base64

  1. Choose an image (ideally small, like an icon).
  2. Pick the output format.
  3. Copy the code.

Questions

When should I inline images as Base64?

Only for small images like icons (a few KB). Base64 makes files about 33% larger and can’t be cached separately, so large images are better as normal files.