Convert an image to Base64

Drop an image to get a data URI and ready-to-paste snippets.

Drop image here, click to choose, or paste with Ctrl+V

JPG, PNG, WebP, GIF, BMP, SVG · processed on your device

OriginalResult
OriginalResult

When to use Base64 images

Inlining tiny images (icons, placeholders, email signatures) saves an HTTP request. For anything over a few kilobytes a normal file is better: Base64 is about 33% larger than the binary image and can't be cached separately. Compress the image first for the shortest string.

FAQ

Is there a size limit?

No hard limit, but data URIs over ~2 MB become slow to handle in editors and browsers.

More free image tools