Skip to main content

Image to Base64

Convert images to Base64 data URIs.

Click or drop an image here

Files never leave your browser — processing is 100% local.

What does this tool do?

Direct answerImage to Base64 produces a data URI you can paste into CSS url() or HTML src attributes.
Key factBase64 inflates size by ~33% — best for small icons, not photos.
ProcessingRuns locally in your browser; no data is sent to a server.

How to use

  1. Drop an image into the box.
  2. Click Convert to Base64.
  3. Copy the data URI.

Example

Input

icon.png (2.1 KB)

Output

data:image/png;base64,iVBORw0… (2.8K characters)

Who is this for?

This tool was built for people who need a fast answer in the browser — no install, no account, no data leaving the device.

Web developers optimizing images for Core Web Vitals, designers preparing assets, and bloggers shrinking photos — files never leave your device.

Frequently asked questions

When should I embed images as Base64?

Small icons and logos — it saves an HTTP request at modest size cost.

How much bigger is Base64?

About 33% larger than the binary original.

Any browser limit?

Data URIs over a few MB may slow parsing; keep them small.

More tools in this category