Image to Base64 Converter
Turn an image into a Base64 data URI · free, no signup
Drop an image here or click to browse
PNG, JPG, GIF, WebP, SVG · processed in your browser, never uploaded
Base64 to image
Free Image to Base64 Converter
Embedding a small image directly in HTML or CSS as a Base64 data URI saves a network request and works offline. Drop an image to get the data URI, an HTML img tag, a CSS background rule or the raw Base64 string.
You can also paste Base64 to preview and download the image. The conversion happens entirely in your browser, so your files are never uploaded.
Ready-to-paste output
Data URI, HTML img and CSS.
Preview and decode
Turn Base64 back into an image.
Private
Files never leave your device.
All common formats
PNG, JPG, GIF, WebP and SVG.
How to use it
- Drop or choose an image.
- Pick the output format you need.
- Copy the code.
- Paste it into your HTML or CSS.
Frequently asked questions
When should I use Base64 images?
For small icons and logos. Large images become bigger when Base64 encoded.
How much bigger is Base64?
About 33 percent larger than the original file.
Is my image uploaded?
No. The file is read locally by your browser.
Can I decode Base64 to an image?
Yes. Paste the Base64 string and download the image.