All tools

Image to Base64

Convert an image into a Base64 data URL.

About

Drop an image. The tool returns a data URL you can paste directly into HTML, CSS, or Markdown. Useful for tiny images you want inline, like email signatures or logos. Files never leave your browser.

How to use

  1. Drop an image (PNG, JPG, GIF, WebP, SVG).
  2. Copy the data URL.
  3. Paste into your HTML or CSS.

FAQ

When should I use a data URL?+

For very small images (under 2 KB or so). Data URLs add about 33% to size and don't cache separately, so they hurt for anything bigger. They're a good fit for tiny icons in email or single-file HTML.