Image Tools
Base64 to Image
Strictly decode canonical Base64 into a validated static JPEG, PNG, or WebP image.

Enter the values and review the result.
Canonical Base64 input
Input is processed locally and is not placed in a URL, browser storage, or conversion request.
No whitespace or URL-safe alphabet. Maximum 11184835 Data URL characters, 8 MiB decoded bytes, 8192 px per side, and 16000000 pixels.
Enter exact supported Base64, then validate and decode it.
Strict decoding sequence
The route rejects oversized and noncanonical text before byte allocation. It then checks JPEG, PNG, or WebP signature and static structure, requires MIME agreement, validates stored geometry, creates a local Blob, and requires successful browser decoding with bounded decoded geometry.
Data URL mode accepts only exact lowercase data:image/jpeg;base64,, data:image/png;base64,, or data:image/webp;base64, prefixes. Raw mode never guesses the MIME.
Worked example and limitations
A canonical PNG Data URL starts with data:image/png;base64,iVBORw0KGgo. A valid complete payload produces decoded-image.png; a mismatched JPEG signature is rejected.
Base64 is not encryption, and decoding does not repair corrupt input. Embedded metadata may remain. Generated output stays on this device unless downloaded, but validation is not malware scanning, guaranteed privacy, or guaranteed deletion.
Quick answers
What this calculator answers
- Purpose: Strictly decodes canonical Base64 into one validated static JPEG, PNG, or WebP image.
- Validation: Checks Base64 grammar, decoded size, MIME/signature agreement, static structure, geometry, and browser decode.
- Boundary: Decoding does not repair corrupt images, remove metadata, scan for malware, or provide encryption.
Transparency note
Accuracy and limitations
Calzivo tools are built for practical estimates, conversions, and checks. Some tools use standard formulas or simplified assumptions, and results can be affected by input accuracy, rounding, units, local rules, or changing official requirements.
File and image results can vary by file structure, browser support, size, fonts, compression, and format limits. Review downloaded files before using or sharing them, and avoid sensitive files unless you understand how the tool handles them.
Reference check
Sources and references
These references provide background context for the topic. They do not replace official advice or documents for personal decisions.
- RFC 4648: Base64 Data Encoding
RFC Editor
- File API
World Wide Web Consortium
- ImageBitmap and image decoding
WHATWG
- Image media types
Internet Assigned Numbers Authority
How to Use This Tool
Use these steps to enter the right inputs and interpret the result correctly.
Choose Data URL or Raw Base64 input.
For raw input, explicitly select JPEG, PNG, or WebP.
Paste the exact canonical text, choose Decode Image, then preview and download or Reset.
Related Tools
Other helpful tools in the Image Tools category.
Image to Base64
Encode validated original JPEG, PNG, or WebP bytes as a Data URL or raw Base64.
Base64 Converter
Encode UTF-8 text as standard Base64 or strictly decode Base64 back to valid UTF-8 text.
Image Compressor
Re-encode one static raster as JPEG or WebP without guaranteeing a smaller file.
Image Resizer
Change bounded static raster pixel dimensions with an optional aspect-ratio lock.
PDF to JPG
Convert every PDF page to a JPG image and download the ordered pages as a ZIP.
Related Guides
Background reading and explanations related to Base64 to Image.
Frequently Asked Questions
Common questions about Base64 to Image and how to read the result.
Can I paste raw Base64?
Yes. Select Raw Base64 and explicitly identify JPEG, PNG, or WebP. The decoded signature must match.
Is whitespace accepted?
No. Input is not trimmed or normalized. Canonical Base64 must contain no spaces, tabs, or line breaks.
Are SVG or animated images accepted?
No. SVG, HTML, XML, GIF, animated PNG, animated WebP, and unsupported formats are rejected.
Does validation make the file safe?
No. Format and size validation is not malware scanning. Treat decoded files like other untrusted files.
