Skip to content
TabKiwiTabKiwi

Image to Base64

Encode an image as a Base64 data URI, ready to paste into HTML, CSS, Markdown or JSON.

ImagesRuns in your browser. Your files never leave this device.
Loading tool…

About this tool

Turn a small image such as an icon or logo into text you can embed directly in a web page, stylesheet or email template. You get the full data URI, the raw Base64 string and ready-made CSS, HTML and Markdown snippets. You can shrink or convert the image first to keep the string short, and the encoding is done locally in your browser.

How to use Image to Base64

  1. Drop an image.
  2. Optionally pick a smaller size or another format.
  3. Switch between Data URI, Base64, CSS, HTML and Markdown.
  4. Copy the snippet or download it as a text file.

Frequently asked questions

When should I inline images as Base64?

For tiny images like icons, where saving an extra request matters more than size. Base64 is about a third larger than the binary file and can't be cached separately.

Is there a size limit?

No hard limit, but strings over about 100 KB make pages and stylesheets heavy. The tool warns you when the result is large.

More Images tools

View all 86 →