Skip to content
QuicklyTools

Image to Base64 Converter

Convert images to Base64 data URIs, CSS backgrounds, HTML img tags or Markdown. Shows size overhead. No upload.

Runs in your browser
Loading tool…

About the Image to Base64 Converter

Embedding small icons and placeholders directly into HTML, CSS or JSON avoids extra HTTP requests and is handy for email templates and single-file demos. This converter encodes any image as Base64 and formats it the way you need.

How to use it

  1. Drop an image (up to 10 MB).
  2. Choose data URI, raw Base64, <img>, CSS or Markdown.
  3. Copy the output.

Good to know

  • Base64 adds about 33% to the file size and the result cannot be cached separately, so inline only small images (under ~10–20 KB).
  • Some email clients block data-URI images; test before sending.

Frequently asked questions

How do I convert Base64 back to an image?

Paste the data URI into the Base64 Decoder and use “Download file”.

Should I inline SVG as Base64?

SVG can usually be inlined as URL-encoded text instead, which is smaller than Base64.

More image tools →