ZIP File Invalid or Corrupted: What It Means and How to Fix It (2026 Updated Guide)
Quick answer
The first useful question isn’t “how do I repair this ZIP?” It’s “is the ZIP actually broken, or did the download fail?” Re-download the file. In most cases the second copy opens fine and you’re done in two minutes. If the second copy also fails, the file is genuinely corrupt — and Windows’ built-in ZIP tool is the worst tool for diagnosing why. Switch to 7-Zip, which will tell you what’s actually wrong and recover what’s recoverable. Paid repair tools are the last resort, not the first.
Before you start
Five steps before reaching for a repair tool:
- Check the file size against the source. If you downloaded a 500MB ZIP and File Explorer shows 287MB, you don’t have a corrupted file — you have an incomplete download.
- Re-download the file. This single step solves the majority of “corrupted ZIP” reports.
- Don’t trust the built-in Windows ZIP tool’s error messages. Windows’ native ZIP support is minimal and shows a single generic error for half a dozen distinct causes.
- Don’t search for “free ZIP repair” tools. Almost everything in that search-result category is low-quality or worse. A handful of legitimate options exist; we cover them below.
- If the ZIP is encrypted and you don’t have the password, no repair tool will help. Get the password from the sender.
What this error actually means
You’ll see one of several variants depending on the tool:
Windows: “The compressed (zipped) folder is invalid.”
Windows: “Windows cannot complete the extraction. The compressed (zipped) folder is invalid or corrupted.”
7-Zip: “Data error in [filename]. File is broken” or “Headers Error” or “Unexpected end of archive.”
WinRAR: “The archive is either in unknown format or damaged.”
These messages aren’t equivalent. They mean different things, and the real cause matters because it determines which fix to try.
The four genuine causes are:
- Incomplete download. The most common cause by a wide margin. The download cut off before the file was complete, often because of a timeout, network drop, or browser closure. The result looks like a complete ZIP but is missing the central directory or trailing data the unzip operation needs.
- In-transit corruption. Network errors flipped bytes in transit. Unusual on modern HTTPS but real on patchy connections, FTP, or older protocols.
- Storage corruption. The file was written to a failing drive sector, or copied while the drive was failing. The file is on disk but parts of it are unreadable.
- Genuine archive damage. The archive itself was created incorrectly, was truncated by the sender, or was tampered with. Less common than the first three.
Re-downloading fixes 1 and 2 immediately. The rest need different approaches.
Where this error appears
ZIP errors show up in multiple contexts:
- Email attachments. Email systems sometimes truncate large attachments or alter ZIP contents during virus scanning. If a ZIP came via email, that’s the most likely culprit.
- File shares (SharePoint, Google Drive, Dropbox). Files synced via these services occasionally fail mid-sync. Re-downloading from the web interface, not the synced folder, often fixes it.
- Direct browser downloads. Browser interruption, network drops, or insufficient disk space mid-download all produce truncated ZIPs.
- GitHub release downloads. Long downloads of large source archives sometimes fail.
- Backup archives. ZIPs created by backup software occasionally fail integrity checks if the backup ran out of disk space.
- External drives and USB sticks. ZIPs copied from failing storage media frequently come across damaged.
Common causes (in order of frequency)
By a wide margin:
- Incomplete download — over half of all “corrupted ZIP” cases. Re-downloading resolves them.
- Antivirus interference — security software occasionally quarantines parts of an archive mid-extraction or alters file headers.
- Bad sectors on the source or destination drive — the file was written across a failing area.
- Unsupported ZIP variant — Windows’ built-in ZIP support handles standard ZIP but not some newer compression formats (ZIPX, encrypted-with-AES-256, certain split archives). 7-Zip handles all of these.
- Truncation during creation — the original ZIP was made incorrectly or was cut off mid-creation.
Fixes to try first
Stop as soon as one works.
1. Re-download the file
If the ZIP came from the internet, this is the first thing to try. Always. Even if the download “completed successfully” — Windows reports completion based on the connection closing, not on file integrity.
When you re-download, watch for:
- Whether the file size matches the source. If you can see the expected size at the source, compare.
- Whether the second download is significantly larger. A 50MB second download where you originally got 28MB tells you the original was truncated.
- Whether the download URL has changed. Some sites issue time-limited download links that produce broken files when the link has expired.
2. Check the file size
Right-click the ZIP → Properties. Compare the size to the source if you can find it. A surprising amount of “corrupted” files are obviously truncated as soon as you check.
3. Try 7-Zip
7-Zip is a free, open-source archive tool that handles ZIP, RAR, 7z, TAR, GZIP, and dozens of other formats. It also tells you what’s actually wrong with a damaged archive instead of Windows’ generic “the compressed folder is invalid.”
Download from the official 7-Zip site (7-zip.org). Don’t use 7-Zip clones from third-party download sites — several have included unwanted software in the past.
To open the ZIP with 7-Zip:
- Right-click the ZIP file.
- 7-Zip → Open archive.
- If it opens, extract the contents normally. Many “Windows says corrupted” cases open fine in 7-Zip because Windows’ built-in ZIP support is more limited.
4. Test the archive integrity
7-Zip can check the archive without extracting:
- Right-click the ZIP → 7-Zip → Test archive.
This reports exactly what’s broken — which file in the archive failed, what kind of error, and whether the central directory is intact. The report is much more informative than Windows’ generic error.
5. Disable antivirus temporarily and try again
Some endpoint security products scan archive contents during extraction and occasionally interfere with large or unusual ZIPs. Disable real-time scanning briefly, retry the extraction, and re-enable scanning afterward. This isn’t a permanent fix — it’s a diagnostic step. If extraction works with AV off and fails with AV on, the AV is the cause and you can either whitelist the file or contact your AV vendor.
6. Extract to a different location
If the destination is a network drive, an external drive that’s failing, or a path with special characters, extraction sometimes fails for reasons unrelated to the ZIP. Extract to a fresh folder on your local C: drive as a test.
Advanced fixes
Reach for these once basic fixes haven’t worked.
Use 7-Zip’s “Keep broken files” option
If 7-Zip’s test archive command shows partial damage, you can sometimes recover the undamaged files:
- Right-click the ZIP → 7-Zip → Open archive.
- Select all files inside.
- Click Extract.
- In the extract dialog, set Overwrite mode appropriately and confirm.
- When extraction encounters errors, 7-Zip will offer to “Keep broken files.” Choose this option.
The result is partial — damaged files come out incomplete, but undamaged files extract cleanly. For a ZIP containing 30 documents where one is broken, this gets you the other 29.
Try WinRAR’s repair function
WinRAR (free trial, technically nag-ware) has a built-in repair function specifically for ZIP and RAR archives:
- Open WinRAR.
- Navigate to the broken ZIP.
- Tools → Repair archive.
- Choose to treat the archive as a ZIP file.
- WinRAR will produce a
_rebuilt_filename.zipthat excludes unrecoverable parts.
This works only when the ZIP has central directory damage but the file data inside is intact — the case where Windows’ tool fails but the underlying data is fine.
Use a paid recovery tool
A handful of specialised tools exist for severely damaged archives — DiskInternals ZIP Repair, Stellar Repair for ZIP, and a few others. We don’t recommend specific products in this guide. The standard rule applies: every reputable paid tool offers a free preview that scans the archive and shows what’s recoverable before you pay. Always preview before paying. If the preview can’t find your files, the paid version probably can’t either.
These are worth trying only when:
- The data inside the ZIP is irreplaceable
- 7-Zip and WinRAR couldn’t recover it
- You’ve already tried re-downloading from the source
- You can’t get a fresh copy from the sender
Ask the sender for a fresh copy
For ZIPs received from another person — colleagues, clients, vendors — this is often faster than recovery. Ask them to re-zip and resend. Specifically request:
- A fresh ZIP, not the same file (in case they have a corrupted local copy too).
- A different transfer method if email was the original — a file share link, OneDrive, Dropbox.
- Splitting the ZIP into smaller archives if the original was very large.
If you are on a work or school device
Some organization-specific notes:
- Email gateway scanning sometimes alters ZIPs in transit. If a ZIP attachment fails consistently from one sender but other ZIPs work, ask your IT team to check the email gateway logs.
- Endpoint protection (CrowdStrike, Defender for Endpoint, SentinelOne, similar) may quarantine archive components or block specific file types inside ZIPs. Files containing executables (
.exe,.dll,.bat,.ps1) are routinely stripped from incoming ZIPs by enterprise email security. - DLP (Data Loss Prevention) policies sometimes alter ZIPs that contain sensitive content. If you’re sending a ZIP and the recipient says it’s corrupted, your organization’s DLP may be re-encoding the file.
If you suspect any of these, contact IT before spending more time on recovery — they can confirm in minutes and either whitelist the file or give you a workaround.
When to stop
Stop and use a different approach if:
- The ZIP is from a sender you can contact. Ask for a fresh copy. This is faster than every other fix combined.
- You’ve tried 7-Zip’s test, WinRAR’s repair, and a re-download. If all three failed, the file is genuinely beyond software recovery.
- The data isn’t critical. ZIP recovery is a time investment. If the contents matter less than your hour, skip it.
- You’re being prompted to download “ZIP repair” tools from search results. Almost all of these are low quality. The list of legitimate tools is short and well-known: 7-Zip, WinRAR, DiskInternals, Stellar. Anything else, be skeptical.
- The ZIP is password-protected and you don’t have the password. No repair tool can help. Get the password.
Related errors
- PDF Won’t Open in Edge, Chrome or Acrobat — similar diagnostic logic for PDFs that won’t open.
Official references
- 7-Zip — Official site — the only trustworthy source for 7-Zip downloads.
- Microsoft: Zip and unzip files — Microsoft’s official guide to Windows’ built-in ZIP support, including known limitations.
- PKWARE: ZIP file format specification — the original ZIP specification, useful if you want to understand what Windows’ built-in tool doesn’t support.
FAQ
Why does Windows say my ZIP is corrupted but 7-Zip opens it fine? Windows’ built-in ZIP support is minimal. It doesn’t handle some newer compression methods, larger-than-4GB ZIP64 files, or AES-256 encrypted archives. 7-Zip handles all of these. The ZIP isn’t corrupt — Windows just can’t read it.
Can I repair a partially downloaded ZIP without re-downloading? Sometimes, if the missing part is just the central directory at the end of the file. Tools like DiskInternals ZIP Repair can occasionally rebuild this. But re-downloading is much faster and more reliable when possible.
Are free ZIP repair tools safe? 7-Zip and WinRAR are safe. Most search-result “ZIP repair” tools that aren’t 7-Zip or WinRAR are low-quality or bundled with unwanted software. If you didn’t get the link from the official project site, treat it skeptically.
Why does the same ZIP work on my colleague’s computer but not mine?
Almost always one of three things: a different ZIP tool installed (they have 7-Zip), antivirus interference on your machine, or path-length issues at the destination. Try extracting to C:\temp\ to rule out the path.
Should I use the built-in Windows ZIP tool or install 7-Zip? For everyday use, the built-in tool is fine. For anything unusual — large archives, RAR files, encrypted archives, anything that’s failed once already — install 7-Zip. It’s free, lightweight, and handles cases the built-in tool cannot.