Image Tools
Base64 to Image
Updated
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.
Separate the wrapper, payload and decoded bytes
For canonical Base64, decoded bytes = payload characters ÷ 4 × 3 − trailing padding characters. If a valid PNG payload has 92 characters and ends in one equals sign, it represents 92 ÷ 4 × 3 − 1 = 68 bytes. The 22-character data:image/png;base64, prefix makes the complete Data URL 114 characters, but it is not part of the Base64 payload or decoded file.
In Data URL mode, paste the complete prefix and payload. In Raw Base64 mode, paste only the payload and select its actual format. Do not delete required padding, paste a web address, or include quotation marks or line breaks; this decoder deliberately does not trim or repair the input. Correct byte arithmetic alone does not make the image structure valid.
If the data came from a JSON property, distinguish the JSON string wrapper from its value using the JSON strings and formatting explanation. This image tool does not import JSON objects or interpret escape sequences. Check the decoded MIME, dimensions and byte count before downloading, and treat an untrusted decoded file as untrusted.
Strictly decode canonical Base64 into a validated static JPEG, PNG, or WebP image.
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.
