Skip to content
SR

Image to Base64

Convert an image to Base64 text, ready for HTML or CSS.

How it works

  1. Drag an image into the box above or click to choose one from your device.
  2. Adjust the options on the right – the preview updates instantly.
  3. Click the download button and save the result.

A small image or icon can be embedded directly in page code. The tool outputs a data URI, a ready HTML tag or a CSS rule, with one-click copy.

Frequently asked questions

Are my images uploaded to a server?

No. Processing happens in your browser, on your device. The images never leave your computer or phone.

Is the tool free?

Yes. There is no sign-up, no limit on the number of images and no watermark on the result. The site is funded by ads.

Which image formats can I use?

JPG, PNG, WebP, GIF, BMP and, in recent browsers, AVIF. Convert iPhone HEIC photos to JPG on the phone first.

Is there a size limit?

We set no limit. Very large images (over 40 megapixels) may be slow or fail on phones with little memory.

More tools