Convert image to Base64
Embed small images directly in HTML or CSS. Get a data URI, an img tag, a CSS background rule or the raw Base64 string.
Don’t take our word for it: prove it yourself →
How to use it
- Drop an image on the box above.
- Choose the output style.
- Click Copy.
Frequently asked questions
Is my file uploaded?
No. Everything is processed on your device by your browser. Nothing is sent to a server.
When should I use Base64 images?
For very small images such as icons, where saving an extra request helps. Base64 makes data about 33% bigger, so large photos are better as normal files.
More free tools
Image Compressor
Shrink JPG, PNG and WebP photos for websites, email and social media. Choose the quality…
Favicon Generator
Create every icon size your website needs from one image. Download a ZIP with…
PNG to WebP
Convert PNG files to WebP in one click, right in your browser. WebP is much smaller than…
Image Resizer
Change the pixel size of many images at once. High-quality downscaling keeps edges…
Need more than a quick fix? Open the Grainroom online photo editor for layers, masks, retouching and film looks, free in your browser.