Image to Base64

Upload a small image or icon (ideally under 100 KB) to get an inline Base64 snippet you can paste straight into your code — one less HTTP request.

Click or drag an image here

JPG, PNG or WebP, up to 20 MB

What this tool does

Turn a small image into Base64 and copy HTML img, CSS background-image, or React snippets. Best for tiny icons you don’t want as separate requests.

How to use

  1. Upload (ideally under 100KB).
  2. Pick HTML, CSS, or React.
  3. Copy the snippet.

FAQ

Why keep images small?

Base64 grows ~33% and can’t be cached separately — large inlines hurt pages.

Is the file uploaded?

No — Base64 is built locally from the file.

More tools in thedeveloper toolbox. For store preview shots, try theApp Store screenshot maker.