Image to Base64 Converter

Convert any image to a Base64 encoded string for embedding in HTML, CSS, or JSON. Your image never leaves your browser.

🖼
Drop image here or click to select

Supports JPG, PNG, GIF, WebP, SVG

Frequently Asked Questions

When should I use Base64 images?
Use Base64 for small icons or images embedded directly in HTML/CSS to reduce HTTP requests. For large images, use regular file URLs — Base64 increases size by ~33%.
Is my image uploaded to a server?
No. Everything runs in your browser using the FileReader API. Your image is never sent anywhere.
How do I use it in CSS?
background-image: url('data:image/png;base64,...');