Base64 to Image Decoder

Paste a Base64 encoded string to decode and preview the image. Download as PNG or JPG.

Base64 Input

Auto Format Detection

Automatically detects PNG, JPEG, GIF, WebP, and SVG from Base64 header bytes.

Download Options

Download the decoded image as PNG (lossless) or JPG (compressed) with one click.

Privacy First

All decoding happens in your browser. Your data never leaves your device.

How to Decode Base64 to Image

  1. 1. Paste your Base64 encoded string into the input area. It can include or omit the data:image/...;base64, prefix.
  2. 2. Click Decode Image to convert the Base64 data to an image.
  3. 3. Preview the decoded image and check its dimensions and format in the info panel.
  4. 4. Click Download PNG or Download JPG to save the image to your computer.

Frequently Asked Questions

What is Base64 image encoding?

Base64 image encoding converts binary image data into ASCII text using a 64-character alphabet. This allows images to be embedded directly in HTML, CSS, JSON, or transferred through text-only channels like email or APIs.

How do I decode a Base64 image?

Paste the Base64 string (with or without the data URI prefix) into this tool and click Decode. The tool automatically detects the image format and displays the decoded image. You can then download it as PNG or JPG.

What image formats are supported?

This tool supports all common image formats including PNG, JPEG, GIF, WebP, and SVG. The format is auto-detected from the Base64 header bytes or data URI prefix.

Is my data processed on a server?

No. All decoding happens locally in your browser using JavaScript. Your Base64 data is never sent to any server and never leaves your device.

You Might Also Like