Image to Base64

Convert JPG, PNG, GIF, WebP, and other images to Base64 or data URIs in your browser. Copy the result for HTML, CSS, APIs, or JSON.

Upload or paste an image to preview here

All encoding happens in your browser — your files never leave your device.

How to use

Turn photos and icons into Base64 strings for embedding in code, APIs, or configuration files — all locally in your browser.

  1. Drop an image, click to browse, or paste from clipboard (Ctrl+V / ⌘V).
  2. Check the preview and file details on the left.
  3. Switch to Raw or Data URI format, then copy the encoded output.
Your image never leaves this device. Encoding runs entirely in your browser.

Frequently Asked Questions

Which image formats are supported?

JPG, PNG, GIF, WebP, BMP, ICO, AVIF, and SVG. Max file size is 10 MB per image.

Raw Base64 vs Data URI — which should I use?

Use Raw when an API or JSON field expects only the encoded string. Use Data URI (data:image/png;base64,...) for img src, CSS backgrounds, or inline HTML.

Is my image uploaded?

No. Conversion runs locally in your browser.

What is the file size limit?

Single images up to 10 MB. For batch compression, use our Image Compressor tool.

Related searches

You might also be looking for:

  • convert image to base64 online
  • png to base64 converter free
  • jpg to base64 encoder
  • image to data uri online
  • base64 encode image browser
  • photo to base64 string
  • embed image as base64 html
  • image base64 no upload