Image to Base64

Convert an image to a Base64 data URL, raw Base64, an HTML img tag or a CSS background.

Free · No sign-up · Your files are processed on your device and never uploaded

How to use Image to Base64

  1. JPGphoto.jpg
    1

    Choose your file

    Drop it on the page or pick it from your phone or computer.

  2. Encode
    2

    Press "Encode"

    Pick the options you want - the defaults suit most files.

  3. TXTdata:image/…
    3

    Download the result

    Ready in seconds. Your file never left your device.

Features

  • Data URL, raw Base64, <img> or CSS.
  • Any image type.
  • Copy in one click.

Free and private

Your picture is edited on your own device with the browser canvas - it is never uploaded.

Questions

Is my photo uploaded?

No. It is edited on your device and the download is created by your browser.

Does it reduce quality?

PNG is lossless; JPG and WebP are saved at high quality (92%).

Is it free?

Yes - free and unlimited, with no sign-up and no watermark.

More image tools

All tools →