Image to Base64
Encode an image as a data URI.
Source image
Everything runs locally in your browser - images are never uploaded.
About this tool
Load an image to get a Base64 data URI (data:image/...;base64,...) ready to paste into CSS background or an img src.
How to use
- Select or drop an image.
- Copy the generated data URI.
- Paste it into your CSS or HTML.
Examples
Output
data:image/png;base64,iVBORw0KGgo…
Frequently asked questions
For tiny icons to save a request. Large images inflate your CSS/HTML and hurt caching.