Image to Base64
Convert an image into a Base64 data URL.
Drop an image, or click to choose
PNG, JPG, GIF, WebP, SVG
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
- Drop an image (PNG, JPG, GIF, WebP, SVG).
- Copy the data URL.
- 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.