Image to Base64

Convert an image to Base64 and copy a ready data URI, HTML img tag or CSS background. Works with PNG, JPG, WebP, GIF and SVG.

Free · No upload · 100% on your device

Image to Base64

Choose an image, or drop it here.

PNG, JPG, JPEG, JFIF, WEBP, AVIF, GIF, BMP, SVG · No size limit. Nothing is uploaded. You can also paste an image.

100% on your device

How to use Image to Base64

  1. Choose your image, or drop it on the page.
  2. Adjust the settings in the side panel. The preview updates as you go.
  3. Select “Convert to Base64”.
  4. Download the result. Your original file is left unchanged.

Private by design. Your files are processed in this browser tab and are never uploaded to KittySuite.

About Image to Base64

The file is encoded exactly as it is, without re-compression. Base64 text is about a third larger than the file, so inline only small images such as icons and logos; link larger images as files so browsers can cache them.

Processing happens in this browser tab: your images are never uploaded, and the result is ready as soon as you download it. Large photos take a moment longer on phones; nothing is limited by size.

Image to Base64: frequently asked questions

How do I convert an image to Base64?

Choose the image and copy the ready data URI, an HTML img tag or a CSS background snippet. PNG, JPG, WebP, GIF and SVG are supported.

Is the image re-compressed?

No. The file is encoded exactly as it is, so decoding the Base64 gives back the identical file.

Why is the Base64 text larger than the image?

Base64 text is about a third larger than the original bytes. Inline only small images such as icons; link larger ones as files so browsers can cache them.

Can I turn Base64 back into an image?

Use the Base64 Encoder and Decoder, which can decode data URLs and save the result as a file.