Skip to content
ToolsOnDuty - free online tools
Image Tools

Base64 to Image

Decode a Base64 string or data URL back into an image you can preview and download.

Free browser toolRuns in your browserNo sign-up

Developer embed decoder

Inspect encoded image data before saving

Paste a full data URL or common raw Base64 payload, verify its format, dimensions and decoded size, then choose a filename.

Local processingReview before export

Bare Base64 input is identified from common PNG, JPG, WebP, GIF and SVG signatures. Include the full data URL when the format is unusual or ambiguous. Animated images remain animated when their original encoded bytes are downloaded.

Delivery: The original decoded image bytes in the detected image format.

About the Base64 to Image

The reverse of encoding an image to Base64: paste a Base64 string or a full data URL and this tool turns it back into a viewable, downloadable image.

It recognizes common PNG, JPG, WebP, GIF and SVG signatures in bare Base64, while a complete data URL remains the most reliable way to declare unusual formats.

Preview the decoded image, verify MIME type, dimensions and byte size, choose a safe filename, then download the original decoded bytes.

Decoding happens in your browser, so nothing you paste is uploaded.

Key features

  • Accepts a Base64 string or a full data URL
  • Preview with MIME type, dimensions and decoded size
  • Custom sanitized download filename
  • Signature detection for common bare Base64 formats
  • Rejects non-image data URLs
  • Private, in-browser processing

How to use

  1. 1Paste your Base64 string or data URL.
  2. 2Check the preview, detected type, dimensions and decoded size.
  3. 3Choose a safe filename and confirm the detected format matches the image you expected.
  4. 4Enter a filename and download the original decoded image bytes.

Examples

Decode a data URL
Input: data:image/png;base64,...
Output: PNG preview and downloadable image

The MIME type in the data URL determines the decoded image format.

Frequently asked questions

Do I need the data URL prefix?
Not for common PNG, JPG, WebP, GIF or SVG payloads, which can be recognized by signature. Include the full data URL for unusual or ambiguous formats.
Why does my string not decode?
It may be truncated or not actually image data. Make sure you copied the whole Base64 value and that it represents an image.
Does decoding change image quality?
No. Download uses the decoded original bytes rather than re-encoding through Canvas. The preview does not alter the saved image.
Is my data uploaded?
No. Decoding happens entirely in your browser.

Open a related tool to prepare your files or refine the finished result.