🔓

Base64 to Image

Paste a Base64-encoded image string or a full data URI to instantly preview the image and download it as a file. Everything runs in your browser —nothing is sent anywhere.

Image Tools Runs locally No data sent
Base64decodedata URIimage
Input

What is Base64 to Image?

Base64 to Image decodes a Base64-encoded string or data URI back into a viewable image. It renders the image directly in the browser using an img element, displays dimensions and size, and provides download buttons for the original format and as PNG. Everything runs locally —no string or image is sent to a server.

How to Use Base64 to Image

  1. Paste a Base64 string or data URI into the input box.
  2. Click "Decode & Preview" (or press Ctrl+Enter).
  3. The image renders in the preview area with dimensions and size info.
  4. Click a download button to save the image file.
Understand Base64 Decoding ▾
Example
Input data:image/png;base64,iVBORw0KGgo...
Output Live image preview + download buttons (PNG, 45x45px, 2.1 KB)
Common Use Cases
  • Preview a data URI to check it is correct
  • Recover an image from a Base64 string in code
  • Download an image embedded in an HTML or CSS file
  • Verify a Base64 image before deploying
Why Use This Tool
  • Auto-detects whether input is a data URI or raw Base64.
  • Detects MIME type from magic bytes —no manual format selection needed.
  • Provides both original-format and PNG download options.
  • 100% local —your data never leaves your browser.
Frequently Asked Questions
What is a Base64 image string?

A Base64 image is a binary image file encoded as ASCII characters. A data URI wraps it as data:image/png;base64,... so a browser can render it directly from the string without loading an external file.

How do I get the correct Base64 string?

Paste either a full data URI (starting with "data:image/...") or a raw Base64 string (the characters after the comma in a data URI). The tool auto-detects the format and renders the image.

What image formats are supported?

Any image format your browser can render: JPEG, PNG, WebP, GIF, SVG, BMP, and ICO. The tool detects the format from the Base64 magic bytes.

Can I download the decoded image?

Yes. Click "Download original format" to save the file in its native format. For raster images, "Download as PNG" converts via a canvas element.