Skip to main content

Base64 Image Viewer

New

Paste a base64 string or data URL to preview, inspect, and download the decoded image.

base64imagedecodepreview
Read the guide
Shortcuts:⌘ KSearch
Detected format
Decoded size
Dimensions
Input kind
Image preview
No image loaded

Paste an image data URL or raw base64 string to preview it.

Frequently Asked Questions

Do I need to paste a full data:image URL, or will raw base64 work?

Both work. If you paste raw base64, the MIME dropdown tells the tool what image type to assign to the decoded blob.

Why does a valid-looking string still fail to preview?

Base64 can decode successfully even when the bytes are not a real image. The preview only works if the decoded blob can actually be rendered by the browser as an image.

Can it handle line breaks or spaced-out base64?

Yes. The decoder removes whitespace before calling `atob`, so wrapped base64 strings usually work without cleanup.

What about data URLs that are not base64-encoded?

Those work too. If the data URL has no `;base64` flag, the tool URL-decodes the payload first, which is especially useful for inline SVG data URLs.

Why is the downloaded file name always generic?

The viewer has no way to know the original file name from raw base64 alone. It downloads as `decoded-image` with an extension chosen from the decoded MIME type.

Related Tools