Image to Base64 Encoder

Convert any image (PNG, JPG, WebP, GIF, SVG, BMP, AVIF) to Base64 online for free. Get a ready-to-use Data URL, raw Base64, CSS background-image or HTML img tag with one click. Processed 100% locally in your browser — no upload, no sign-up.

Drop an image here, or click to choose

PNG / JPG / WebP / GIF / SVG / BMP / AVIF · You can also paste (Ctrl+V) from the clipboard

Tip: press Ctrl+V anywhere on this page to encode a screenshot directly.

Everything runs locally in your browser — your image is never uploaded. Base64 encoding inflates file size by roughly 33%; it is best suited for small icons, sprites and inline graphics. Large images should stay as separate files and be loaded over HTTP with caching.

🔗 Related Tools