Cannot detect MIME
Without a data URL prefix, exotic formats (AVIF, TIFF, HEIC) fall through magic-byte detection.
Fix: Add the correct `data:image/…;base64,` prefix before pasting, or use the format-specific decoder.
header • up to 320x100 / 728x90
Paste any Base64 data URL or raw Base64 string, auto-detect the MIME type, and preview plus download the image
content bottom • up to 300x250
sidebar • 160x600
Last reviewed:
Base64 is a binary-to-text encoding that represents arbitrary data using 64 printable ASCII characters, commonly used to embed binary blobs in JSON, URLs, and emails.
A Base64 image is a text-safe encoding of a binary image that can start with a `data:` prefix (e.g. `data:image/png;base64,…`) or be a raw Base64 payload.
Base64 to Image Converter auto-detects the source MIME type from the `data:` prefix or the image's magic bytes, then lets you preview and download the original file unchanged.
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAA…
base64-to-image.png (binary, 4 KB, detected: image/png)
Without a data URL prefix, exotic formats (AVIF, TIFF, HEIC) fall through magic-byte detection.
Fix: Add the correct `data:image/…;base64,` prefix before pasting, or use the format-specific decoder.
Copy-paste from a log file can introduce newlines into the payload.
Fix: Whitespace is stripped automatically — just paste and decode.
PNG, JPEG, GIF, WebP, SVG, BMP, and ICO via both `data:` prefix and magic-byte sniffing.
No. Decoding happens entirely in your browser.
Yes — decoding is byte-for-byte; no canvas re-encoding happens.
Magic-byte detection handles most common formats. If detection fails, try a format-specific decoder.
Related decoders and image tools: You can also browse the full Image Tools category for more options.
Convert local image files into Base64 text ready to paste into email, JSON payloads, or data URLs
Decode Base64 images to PNG with transparency preserved and download the result — all in your browser
Decode a Base64 data URL or string and download it as a JPG image — all client-side
Decode a Base64 string back into a GIF image — keep animation when possible or export the first frame
Re-encode a Base64 image into modern WebP output with quality control and client-side download
Decode a Base64 SVG data URL back into the original XML and preview it safely in the browser
Encode or decode Base64 strings
Convert JPG/JPEG images to PNG format
Convert images to ASCII art
Encode JPEG, PNG, GIF, WebP, or SVG images into Base64 data URLs for inline CSS and HTML
Convert BMP images to JPG/JPEG format
Redact sensitive areas of an image by drawing a rectangle and applying pixelate or blur — everything stays in your browser