Base64 Image Encoder / Decoder

Encode images to Base64 strings or decode Base64 back to an image preview.
Preview No uploads
Encode image to Base64
Use PNG or JPG for best results.
Decode Base64 to image
Preview
Paste Base64 to preview.
Privacy note: encoding happens locally in your browser.

What this tool does

It converts images to Base64 strings and decodes Base64 strings back to an image preview.

Common use cases

Use it for embedding images in HTML/CSS, testing data URIs, or debugging API payloads.

Privacy note

All processing happens locally in your browser; nothing is uploaded.

How to encode or decode Base64 images

Upload an image or paste Base64 to convert.

  1. Upload an image to generate Base64.
  2. Paste Base64 to preview the image.
  3. Copy the result when needed.

FAQ

Does this tool upload my images?
No. Everything runs locally in your browser.
What formats are supported?
Common web image formats like PNG and JPEG.
Can I decode a data URL?
Yes, paste either a data URL or raw Base64.