Convert an image file to a Base64 data URI — embed images directly in HTML, CSS or JSON.
| Input | Output |
|---|---|
| small PNG | data:image/png;base64,… |
| icon JPEG | data:image/jpeg;base64,… |
| SVG file | data:image/svg+xml;base64,… |
Paste it into HTML <img src>, CSS background-image: url(…), or JSON — the image then needs no separate file request.
No — the file is read by your browser locally; the data URI never leaves your device.
2 MB per file. Data URIs are about 33% larger than the raw file, so keep embedded images small (icons, logos).