Image to Base64
Embed an image directly in your CSS, HTML or JSON.
Drop your file here
or
JPG, PNG, WebP, GIF, BMP, SVG · Upload a file up to 10 MB
Your files are secure and private. Everything is processed on your device.
How it works
- Upload a small imageIcons and logos are the right use for this.
- Choose the outputA bare data URI, or ready-made CSS or HTML.
- Copy or downloadPaste it straight into your code.
What this tool does
- Output as a data URI, a CSS rule, an HTML tag, or raw Base64
- Correct MIME type detected from the file itself
- Reports the encoded size so you can judge whether it is worth inlining
- Runs locally, so unreleased assets stay private
Supported formats
- JPG
- PNG
- WebP
- GIF
- BMP
- SVG
Maximum file size: 10 MB.
Frequently Asked Questions
Privacy and security
Your file is read directly from your device and processed in your browser. It is never uploaded to a server, so there is no copy for us to keep, share or lose. Closing the tab discards everything. If you want to check this yourself: open your browser’s developer tools, switch to the Network tab, and use the tool — you will see no request carrying your file or input leave the page.