All toolsCategoriesAboutContactPrivacy
Image Tools

Image to Base64 Converter

A data URI embeds an image directly in HTML or CSS, which avoids one request but makes the file larger and uncacheable. This converter produces the exact string and shows the CSS and HTML snippets, all locally. The second panel goes the other way: paste a data URI to preview and save the image.

Updated · Free · No sign-up · Runs on your device

Loading the tool…

How to use it

  1. Choose an image to get its data URI.
  2. Copy the URI, or the ready-made CSS and HTML snippets.
  3. Paste a data URI in the second panel to preview and save it as an image.

Who it helps

Developers embedding a small icon in CSS, email builders inlining a logo, and anyone decoding a data URI from a stylesheet.

Worked example

A 2 KB icon becomes a data URI that can sit directly in a background-image rule.

Limitations

Base64 is about 33% larger than the binary file and cannot be cached separately, so it suits small icons, not photos. The input is limited to 10 MB.

Privacy

Files you open are read by your browser and processed on this device. They are not uploaded to QuickTools or to any third party. Closing the tab discards them.

FAQ

When should I use a data URI?

For small, rarely changed assets such as icons or a logo in an email. Use a normal file for anything large.

Quick facts

Category
Image Tools
Works on
Phone, tablet and desktop
Account
Not required
Price
Free
Data
Stays on your device
Updated