Image Tools
  1. All image tools
  2. 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

  1. Choose an image. Small icons and logos work best.
  2. Select Encode.
  3. 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.