Skip to tools

Base64 to Image

Decode Base64 into an image

Paste Base64, a Data URI, HTML, or CSS — preview instantly and download the exact original bytes.

Paste input

Format
0 characters· Decodes on paste · or upload a .txt file

Your Base64 is decoded in your browser and is not uploaded. Exact bytes — no quality loss.

Paste and go

Auto-decode for typical sizes — large inputs ask you to confirm.

Exact restoration

Downloaded files match what was encoded — bit for bit.

Smart extraction

Pulls Data URIs out of HTML and CSS without running them.

Stays in browser

Your Base64 is decoded in your browser and is not uploaded.

At a glance

Built for daily use

0

Images decoded

Success rate

Typical processing

Space saved

How it works

Paste. Decode. Download.

  1. Step 1

    Paste

    Drop in Base64, a Data URI, HTML, or CSS.

  2. Step 2

    Decode

    We validate Base64 and detect the real image format.

  3. Step 3

    Download

    Save the exact decoded file — or copy a Data URI.

Why this decoder

Exact files. Safe parsing.

Auto input detection

Raw, Data URI, HTML, and CSS — no format picker required.

Accurate format

Detects the real image type from the file itself, even if a label is wrong.

Image info

Dimensions, size, and format with links to Dimensions and Metadata.

Large-input safe

Estimates size and requires an explicit Decode for huge strings.

Preview

Constrained preview so you can confirm the image before downloading.

Round-trip ready

Compatible with Image to Base64 for identical results.

Formats & limits

What you can send and get back

Accepted input

Raw Base64, Data URIs, HTML img tags, and CSS url() snippets.

Exact file

Download is the decoded image — quality stays unchanged.

Formats

PNG, JPEG, GIF, WebP, AVIF, SVG (Base64), BMP, TIFF, ICO, and HEIC where the format can be detected.

Privacy

Your Base64 is decoded in your browser and is not uploaded.

Companion

Pair with Image to Base64 for a lossless round trip.

Safety

Pasted HTML/CSS is never executed. SVG previews use a sandboxed image element.

Questions

Before you upload

Base64 turns an image into plain text so it can be pasted into a webpage or document. Decoding restores the original image file.

Raw Base64 is only the encoded characters. A Data URI adds a short header so the text can be used directly as an image source.

No. Decoding runs in your session. Your text is not uploaded for this tool.

No. We save the decoded file exactly as it was encoded - quality stays unchanged.

Yes. We pull out the embedded image text from common snippets. Nothing you paste is run as code.

Learn

How to decode Base64 images

Paste raw Base64 or a full Data URI. We clean up whitespace, check the encoding, decode to an image, then detect the format (PNG, JPEG, WebP, and more).

HTML and CSS snippets are parsed as text only. We extract the data:image… content from src or url() — we never inject or run pasted markup.

Formats

Base64 to PNG / JPG and more

The download filename uses the detected format (decoded-image.png, .jpg, .webp, …). If a Data URI lists the wrong format, we warn you and still save using the detected type.

Pair with Image to Base64 for a lossless round trip: encode a file, paste the result here, and the downloaded file matches the original.