Utill.net

Image to Base64

Data URI Encoder

Convert an image file up to 10 MB into a Base64 data URI with preview and copy-ready output.

What is this tool?

This image to Base64 tool reads an image file with the browser FileReader API and converts it into a Base64 data URI. A data URI embeds the media type and encoded bytes directly in a string, such as data:image/png;base64,....

Inlining an image can be convenient for tiny icons, self-contained demos, fixtures, and documentation snippets, but it is usually inefficient for large assets. Base64 increases payload size and prevents normal browser image caching by URL.

The current tool is intended for images up to the UI's file-size limit. For production assets, prefer optimized image files served with proper caching unless there is a specific reason to inline the data.

How to use

  1. Drag an image into the upload area or choose one from your device.
  2. Confirm the preview is the intended file.
  3. Copy the generated data: URI from the output area.
  4. Use inline images sparingly because Base64 data URIs are larger than the original binary file.

Related tools & concepts

Last reviewed: 2026-05-08