Command Palette

Search for a command to run...

Base64 to Image Converter

Convert Base64 encoded strings back to images with a simple tool

Paste your Base64 string below (with or without the data URL prefix). The image is previewed automatically.

The preview image will appear here once you paste a Base64 string.

Base64 to Image Converter - Online Decoding Tool

Got a long Base64 string and need to see what image it actually is? This tool decodes Base64 into an image instantly, entirely in your browser — no data is ever sent to a server. Just paste the string (with or without the data URL prefix) and the image appears automatically, along with its real dimensions, format and file size. It supports dropping a .txt file, pasting from the clipboard, a checkerboard backdrop for transparent images, copying the image to your clipboard, and downloading in the original format.

How to Use

1
Paste your Base64 string

Paste it straight into the input box, click 'Paste from Clipboard', or drag and drop a .txt file containing the Base64 string. It works with or without the 'data:image/...' prefix.

2
Automatic preview

No convert button needed — the image is decoded and shown the moment you paste. The format (PNG, JPEG, GIF, WebP, AVIF, SVG) is auto-detected from the string content.

3
Check the details

See the true dimensions (width × height), format and file size computed accurately from the decoded data. Transparent images are shown on a checkerboard so you can clearly see transparent areas.

4
Download or copy

Click 'Download' to save the image in its original format, or 'Copy Image' to place it straight onto your clipboard and paste into Figma, documents, chats and more — no file needed.

Key Features

Instant preview

The image appears automatically the moment you paste a Base64 string, with no extra clicks. Decoding is debounced to stay smooth even with very long strings.

🔍Automatic format detection

Detects PNG, JPEG, GIF, WebP, AVIF and SVG from the string's signature bytes — even when the string has no data URL prefix.

🏁Checkerboard for transparency

Transparent PNG/WebP images are shown over a checkerboard pattern, so you can clearly tell transparent areas apart instead of losing them on a white background.

📐Accurate information

Shows the true image dimensions, the browser-confirmed format and a file size computed from the actual decoded binary data — not a rough estimate.

📄Drop a .txt file

Have your Base64 stored in a text file? Just drag and drop the .txt onto the input or use the upload button, and the content loads automatically.

📋Copy image to clipboard

One click copies the decoded image to your clipboard as a PNG, ready to paste into Figma, Word, email or any chat box.

⬇️Download in original format

The image downloads with the correct extension for its original format (.png, .jpg, .gif, .webp...), preserving the data without any re-compression.

🔒100% private

All decoding happens locally in your browser. No string or image is ever uploaded to a server — your data always stays on your device.

Common Use Cases

👨‍💻Web development

Quickly restore and inspect images embedded as data URIs in CSS, JSON, API responses or databases.

🐞Debugging & testing

Verify whether a Base64 string returned from an API or log is actually a valid image, right during development and debugging.

📧Email & marketing

Extract and view images embedded inline as Base64 inside HTML emails or newsletter templates.

🎨Graphic design

Recover images from data URIs embedded in design files, SVGs or exports to keep editing or reuse in a new project.

🔐Security analysis

Decode and inspect Base64-encoded image data during investigations, payload analysis or security testing.

📦Data migration

Convert Base64-encoded images back into files when moving content between systems, CMSs or platforms.

Frequently Asked Questions

Q

Is my Base64 string sent to a server?

A

Not at all. Decoding happens 100% in your browser using JavaScript. No string or image is uploaded to or stored on any server — your data always stays on your device.

Q

Do I need to add the 'data:image/...' prefix?

A

No, it's optional. You can paste a raw Base64 string and the tool will auto-detect the format from the signature bytes and add the right data URL prefix for you. Of course, pasting a full data URL works fine too.

Q

Which image formats are supported?

A

All the common formats: PNG, JPEG/JPG, GIF (including animated), WebP, AVIF and SVG. The format is auto-detected and shown in the information panel.

Q

How does the 'Copy Image' button work?

A

The decoded image is drawn onto a canvas and copied to your clipboard as a PNG, so you can paste it directly into Figma, Word, email or a chat box. Some older browsers may not support this yet.

Q

How is the file size calculated?

A

Unlike tools that estimate from string length, this one decodes the string into real binary data and reads the exact size from it, so the number matches the actual image file size.

Q

Can I load Base64 from a file?

A

Yes. Drag and drop a .txt file containing the Base64 string onto the input, or use the 'Upload .txt' button. The file content is loaded into the input and the image is previewed automatically.

Our Base64 to Image converter delivers a fast, smooth experience: instant preview, automatic format detection, accurate information, a checkerboard backdrop for transparent images, .txt file drop, image copying and downloads in the original format. All completely free, 100% private and running directly in your browser.