Image to Base64

Convert any image to a Base64 data URI ready for inline use in HTML, CSS, or Markdown. Files stay in your browser.

No image yet.
Enter input above to see the result.

What is this for?

A data URI embeds the bytes of a file directly into a URL using Base64 — no separate request, no external file. This converter reads any image you drop on it and produces a data:image/...;base64,... string ready to paste into HTML, CSS, Markdown, or JSON. The file never leaves your browser; conversion happens via FileReader.readAsDataURL.

When to use it

Common gotchas