Image Tools

Base64 Image Encoder & Decoder

Encode any image to a Base64 data URL, or decode a Base64 string back to a downloadable image.

Drop file here or click to browse

JPG, PNG, WebP, GIF, SVG, BMP.

How to use Base64 Image Encoder / Decoder

  1. 1Choose Encode or Decode.
  2. 2In Encode mode, drop an image and copy the Base64 or data URL output.
  3. 3In Decode mode, paste a Base64 string or data URL.
  4. 4Preview the decoded image and download it as PNG/JPG/WebP.

Frequently asked questions

What is a Base64 image?

It's a text representation of an image using only ASCII characters. Base64 lets you embed images directly inside CSS, HTML, or JSON without a separate file.

When should I use Base64 images?

For small icons or inline email images. For large images, a normal file/CDN link is faster and smaller than the Base64 string.

Is my image sent to a server?

No. Both encoding and decoding happen inside your browser — nothing is uploaded.

What's a data URL?

A full string like data:image/png;base64,iVBOR... that browsers can render directly. Encode mode outputs the ready-to-paste data URL.

Can it decode without the data URL prefix?

Yes. Paste a raw Base64 string or a full data URL — the tool detects and handles both.

Related tools