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 image bytes directly into a URL using Base64 encoding, eliminating the need for a separate HTTP request or external file. This tool converts any image you provide into a data:image/...;base64,... string ready to paste into HTML, CSS, Markdown, or JSON. The conversion happens entirely in your browser using the FileReader API—no file is uploaded or stored server-side.

When to use it

How it works

Common gotchas