Features
- Type detectionPNG, JPEG, GIF, WebP and SVG are recognized from the data.
- DetailsShows dimensions and size.
- Runs on your deviceYour data is processed in the browser and is never uploaded.
How to use the Base64 to image
- Paste Base64 or a data URL.
- Check the preview.
- Download the image.
Truncated strings
A string cut off by a log or spreadsheet cell limit shows as incomplete or damaged.
Decode in Node.js
import { writeFileSync } from 'node:fs';
writeFileSync('image.png', Buffer.from(base64, 'base64'));
Frequently asked questions
Do I need the data: prefix?
No.
Why does it not recognize my data?
It may not be an image, or may be encoded twice.
Do SVG scripts run?
No. SVG is displayed as an image.