- All image tools
- Image to Base64
Convert an image to Base64
Get a data URL you can paste straight into HTML, CSS or JSON, so a small image needs no separate file.
- Never uploaded
- Works offline once loaded
- Free and open source
or drop it here, or paste. Photos stay on this device.
How to convert an image to Base64
- Choose an image. Small icons and logos work best.
- Select Encode.
- Copy the data URL, the HTML img tag or the CSS background rule.
Questions
Are my photos uploaded anywhere?
No. Everything happens inside this browser tab. Your images are read from your device, processed in memory and saved back to your device. The site has no upload server, and its security policy stops the page from connecting to any other site. Switch off your internet after the page loads and it still works.
When should I use a Base64 image?
For small icons and logos in emails, single-file pages or CSS. Base64 makes files about a third larger and cannot be cached separately, so use normal image files for photos.
Is it free? Are there limits?
Yes, it is free with no sign-up, no watermark and no daily limit. Your own device does the work, so the only limit is its memory. Very large photos (over about 50 megapixels) can be slow or fail on phones.
Related tools
- Favicon generatorICO, PNG and web manifest.
- Compress PNGLossless or colour-reduced PNGs.
- Convert imageAny format to JPG, PNG, WebP or AVIF.
More image tools
- Compress imageMake photos smaller, keep them sharp.
- Compress JPEGShrink JPG photos with MozJPEG.
- Resize imagePixels, percent or social sizes.
- Crop imageSquare, 4:5, 16:9 or free.
- Rotate or flipTurn or mirror photos.
- JPG to PNGSave photos as PNG.
- PNG to JPGSmaller files from PNGs.
- WebP to JPGOpen WebP images anywhere.
- JPG to WebPSmaller photos for websites.
- PNG to WebPSmaller graphics, transparency kept.
- HEIC to JPGiPhone photos to JPG.
- Convert to AVIFThe smallest modern format.
- Remove EXIF dataStrip GPS and camera details.