Base64 Image Encoder

Upload an image and instantly get its Base64-encoded data URI for embedding in HTML or CSS.

Upload Image

Output Format

Upload an image to see the Base64 output

Summary

Upload an image and instantly get its Base64-encoded data URI for embedding in HTML or CSS.

How it works

  1. Click "Choose Image" or drag and drop an image file onto the upload area.
  2. The tool reads the file using the browser FileReader API and encodes it to Base64.
  3. A live preview of the image appears alongside the generated data URI string.
  4. Select the output format you need: full data URI, Base64-only string, or an HTML/CSS snippet.
  5. Click "Copy" to copy the output to your clipboard, ready to paste into your code.

Use cases

Frequently Asked Questions

Related tools

Last updated: 2026-05-23 · Reviewed by Nham Vu