Base64 to Image
Decode a Base64 string into an image file.
About this tool
Paste a data URL or a bare Base64 string and press Process. The image is decoded, previewed and available to download as PNG.
How to use
How it works
A string starting with data: is used as is. A bare string is treated as PNG data, and whitespace is removed. The browser decodes it and the tool saves a PNG. Invalid Base64 gives a clear error.
Worked example
Tiny pixel
- Input
- iVBORw0KGgoAAAANSUhEUg...
- Output
- decoded.png
- Walkthrough
- The PNG prefix is added to the bare string.
Limitations
- Always saved as PNG.
- A bare JPEG string may still decode; the browser sniffs the data.
- Huge strings may be slow.
Questions
Do I need the data:image prefix?
Why did it say a file is required?
Which formats work?
Is it uploaded?
Features
- Bare or data URL
- PNG download
- Preview
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Responsive images and art direction
Chrome for Developers
Crop and art direction before exporting optimized assets.
Watch on YouTubeResponsive images - PWA Training
Chrome for Developers
How image weight affects real-device performance.
Watch on YouTube
- Use image CDNs to optimize images
web.dev
Production optimization context after local browser edits.
- Use WebP images
web.dev
When next-gen formats beat shipping oversized PNGs.