About the Base64 to Image
Paste a Base64 string or data URI to preview the image and download it. The format is detected automatically.
Key features
- Decodes Base64 strings and data URIs into images
- Detects PNG, JPG, GIF, WebP, SVG and ICO automatically
- Instant preview on a transparency grid
- Download with the correct file extension
- Accepts URL-safe Base64 and line-wrapped input
- Decoded locally in your browser
View and save Base64 images
Base64-encoded images turn up in API responses, HTML emails, CSS files, database records, logs and AI APIs (both vision inputs and generated images). They're just long strings of text, so you can't see what they contain. Base64 to Image decodes the string, shows the image and lets you download it as a proper file.
Accepted input
| Input | Example |
|---|---|
| Data URI | data:image/png;base64,iVBORw0KGgo… |
| Raw Base64 | iVBORw0KGgoAAAANSUhEUgAA… |
| URL-safe Base64 | Uses - and _ instead of + and / |
| Line-wrapped Base64 | Spaces and line breaks are ignored |
How the format is detected
If there's no data: prefix, the format is identified from the file signature:
| Starts with (hex) | Format |
|---|---|
89 50 4E 47 | PNG |
FF D8 FF | JPEG |
47 49 46 | GIF |
52 49 46 46 | WebP (RIFF container) |
<svg text | SVG |
00 00 01 00 | ICO |
Common scenarios
- Debugging APIs that return thumbnails, QR codes or signatures as Base64.
- Extracting images from HTML emails or exported HTML files.
- Checking AI-generated images returned as
b64_json. - Recovering images stored in databases or localStorage.
- Verifying data URIs in CSS before shipping.
Related tools
Encode images with Image to Base64. For Base64 that contains JSON, use Base64 to JSON.
How to use the Base64 to Image
- Drag and drop your files into the upload area, or click Choose files.
- Set any options, such as quality, page size or page ranges.
- Click the convert button. Processing happens right in your browser.
- Download each result individually, or all of them as a ZIP.