Image to Base64
Turn images and SVG icons into Base64 data URIs, CSS backgrounds or HTML tags you can paste straight into code.
Files stay on your device
How it works
- 1Add imagesDrop PNG, JPG, SVG, WebP, GIF or ICO files up to 10 MB each.
- 2Pick the formatA data URI, a CSS background line, an HTML img tag, or plain Base64.
- 3Copy or downloadCopy each snippet with one click, or download them all as text files.
Questions
Are my images uploaded?
No. The tool runs inside your browser, so your files never leave your device and nobody else can see them.
When should I use Base64 images?
For small icons and logos (under about 10 KB) that you want inside your CSS or HTML, saving a separate download. For photos, a normal image file loads faster because Base64 makes the data about a third bigger.
Why is there a 10 MB limit?
Base64 text is about 33 percent larger than the file, and very long text slows down editors and browsers. Big images belong in normal image files.