Image to Base64

Encode any image as a Base64 data URI you can paste into CSS or HTML.

Choose an image or drag & drop

How to use Image to Base64

  1. Choose an image file.
  2. The Base64 data URI is generated instantly.
  3. Copy it or use the Download button.

What is a Base64 image?

Base64 encoding turns binary image data into text, letting you embed images directly inside HTML, CSS or JSON without a separate file request. It is handy for small icons and inline assets.

Should I Base64-encode large images?
No. Base64 increases size by about 33%, so it is best for small images and icons.
Are my files uploaded?
No. Everything is processed locally in your browser, so your files never leave your device.

Related tools