Image to Base64 — data URI encoder
Encode an image as a Base64 data URI you can paste into CSS or HTML. It runs entirely in your browser (0 uploads, works offline).
How to use it
- Choose an image.
- The data URI appears.
- Copy or Download it.
FAQ
How do I convert an image to Base64 for free?
Choose the image and this page reads it in your browser and produces a data: URI you can embed directly in HTML or CSS — with no upload.
Is my image uploaded anywhere?
No. The image is read entirely in your browser with the FileReader API and nothing is transmitted or stored, which you can verify by turning off your Wi-Fi.
When should I inline an image as Base64?
For small images like icons, inlining saves a request. For large images, a normal file is usually better because Base64 adds about a third to the size.
What formats work?
Any image the browser can read — PNG, JPEG, GIF, WebP, SVG — is encoded as-is.
Limits
Encodes the file as text; it does not resize or compress — pair it with an optimiser for large images.
Related
The SVG-to-PNG tool rasterises vectors; the favicon generator resizes icons.
Bookmark this page (Ctrl+D, or ⌘D on Mac) or install the app — it works offline the next time you need it.