AZ Tools

Image to Base64

Image

Turn an image into a Base64 data URL for inline use in HTML, CSS, or JSON — no separate file needed. Drag in an image and copy the result. The image is read locally in your browser and never uploaded.

Drag & drop an image here

or click to browse

How to use

  1. Drag an image onto the drop zone, or click to browse.
  2. A preview and the data URL appear.
  3. Copy the data URL with the Copy button.
  4. Paste it into an img src, CSS background, or JSON field.

Frequently asked questions

Is my image uploaded?
No. The image is read locally with the browser's FileReader; nothing is sent to a server.
Should I inline large images?
Base64 inflates size by ~33% and isn't cached separately, so it's best for small icons and not large photos.
Which formats work?
Any image your browser can read — PNG, JPEG, GIF, WebP, SVG, and more.
Can I use it in CSS?
Yes — paste the data URL into background-image: url(…).

Related tools