Encode any image to a Base64 string โ output as HTML img tag, CSS background, or raw Base64. Free and browser-based.
Upload any image โ JPG, PNG, WebP, GIF, or SVG.
Choose HTML img tag, CSS, data URI, raw Base64, or Markdown.
Copy the output to clipboard or download as a .txt file.
Embed images directly in HTML or CSS without an external file โ great for email templates and single-file pages.
Pass images as strings in JSON API requests or responses, without file uploads.
Embed logos and images inline in HTML emails so they display even when images are blocked.
Your image is encoded entirely in your browser using the FileReader API. Nothing is ever uploaded to any server.
The Base64 string is generated the moment you upload โ no processing delay, works offline after page load.
Get the Base64 ready-formatted as Data URI, HTML img tag, CSS background-image, raw string, or Markdown โ no manual editing needed.
Yes โ 100% free with no sign-up and no limits.
JPG, PNG, WebP, GIF, BMP, SVG โ any image format supported by modern browsers.
No hard limit, but very large images (5MB+) will produce very long Base64 strings. For web use, keep images under 1MB for best results.
Base64 encoding increases file size by approximately 33% because it converts binary data to text. This is expected and normal โ the tradeoff is that the image can be embedded directly in code without a separate file.
Yes! Fully responsive and tested on iOS and Android browsers.