Image to Base64
Encode an image to a Base64 data URI — ready to paste into CSS or HTML. Runs in your browser.
Loading tool…
How to convert an image to Base64
Drop an image and cutbg encodes it to a Base64 data URI you can copy straight into your CSS background-image, an img src, or a JSON payload — no upload, all on your device.
Is my image uploaded?
No — the encoding happens in your browser; the image never leaves your device.
Related tools
Frequently asked questions
- What is a Base64 data URI?
- A text encoding of your image you can paste directly into CSS or HTML, so the image loads with no separate file or request.
- Which formats can I encode?
- Any image the browser can read — PNG, JPG, WebP, GIF, SVG and more. The data URI keeps the original format.
- Is my image uploaded?
- No — the file is read and encoded locally in your browser; it never leaves your device.