To repair a corrupted ZIP file, first try the quick fixes: download or copy it again from the original source, check that the file size matches, and try extracting it with a different tool. If the ZIP is the only copy you have, use a ZIP repair tool that reads the archive entry by entry, rebuilds the missing index and saves every file it can recover into a new, working archive. Because ZIP files store each file separately, a damaged archive usually still holds most of its contents, even when Windows says the whole thing is invalid.
This guide explains why ZIP files break, the built-in things worth trying first, and how to get the most back when they fail.
Signs your ZIP file is corrupted
A damaged ZIP rarely fails quietly. You will usually see one of these:
- Windows says "Windows cannot open the folder. The Compressed (zipped) Folder is invalid." when you double-click it.
- Extraction starts, then stops with an error partway through, leaving only some files behind.
- An archiver reports a CRC error, a checksum failure or "unexpected end of archive".
- The archive opens and lists files, but some of them come out empty, will not open, or are much smaller than they should be.
- The file is far smaller than you expected, which usually means it was never fully downloaded or copied.
If you are seeing a specific CRC or "unexpected end" message, our guide to CRC errors and unexpected end of archive explains exactly what each one means.
Why ZIP files get corrupted
It helps to know how a ZIP is built. Each file inside is stored on its own, compressed, with a small header and a CRC-32 checksum that records what the data should look like. At the very end of the archive sits the central directory, a table of contents that lists every file and where it starts.
That layout explains most failures:
- Incomplete downloads and copies. If a download stops early, or a copy to a USB stick is interrupted, the end of the file is missing. The end is exactly where the central directory lives, so Windows sees no table of contents and refuses to open anything, even though most of the files are actually there.
- Bad sectors and failing drives. A few damaged blocks in the middle of the archive break the files stored there and trigger CRC errors.
- Transfer problems. Old email attachment handling, transferring in the wrong FTP mode, or a flaky network can alter bytes in transit.
- Size limits. Copying an archive larger than 4 GB to a FAT32 drive fails, and very large archives made by older tools can be written incorrectly.
- Data recovery. ZIPs brought back from a failed or formatted drive are often fragmented or partly overwritten. See why recovered files won't open.
For the wider picture, read what causes files to become corrupted.
Quick fixes to try first
- Get a fresh copy. If the ZIP came from a website, email or cloud share, download it again. This fixes most broken downloads instantly. If your browser left a
.crdownloador.partfile behind, the download never finished. - Compare the size. Right-click the ZIP, choose Properties, and compare the size with what the website or sender says. A smaller file is incomplete.
- Check for an earlier version. If the ZIP was on your PC or a network share, right-click it and choose Properties > Previous Versions to see if File History or a restore point kept an older copy. For files in OneDrive, use Version history.
- Copy it locally. If the archive sits on a USB stick, memory card or network drive, copy it to your internal drive first. If the copy itself fails, the source drive may be failing; recover the file with data recovery software before you do anything else.
- Try a different extractor. The built-in Windows extractor is strict and gives up at the first problem. Other archive tools sometimes extract the files that come before the damage. Make sure you work on a copy.
Never try "repairs" on your only copy. Make a duplicate of the damaged ZIP first and work on that, so nothing you do can make things worse.
Where the built-in options fall short
Windows has no ZIP repair feature. File Explorer's Extract All and PowerShell's Expand-Archive both rely on the central directory, so a truncated ZIP fails completely, and an archive with one damaged file can stop the whole extraction. Extracting with another tool may get some files out, but it typically skips or abandons anything that fails its checksum, and it does not give you a clean archive back.
A proper repair takes a different approach. Instead of trusting the table of contents, it scans the archive from the start, finds each file's local header, decompresses as much as it can, checks the result against the stored CRC, and then writes a brand-new archive with a fresh central directory.
How to repair a ZIP file with File Repairer
File Repairer is a Windows 10 and 11 app that repairs ZIP and RAR archives along with documents, PDFs, photos and videos. Everything runs on your PC, so the archive is never uploaded.
- Add the archive. Drag the ZIP into File Repairer. You can also drag in a whole folder, for example everything you recovered from a failed drive, and repair the lot with Repair All.
- Check it if you are not sure. Tools > Check Files for Damage marks each file as Damaged or No damage found without changing anything.
- Repair and preview. File Repairer fixes CRC errors and "unexpected end of archive" problems, then shows the archive's contents with a "what was recovered" panel, so you can see exactly what came back before you save.
- Save the repaired copy. The new archive is saved with " (repaired)" in its name, either to a folder you choose or to a "Repaired" folder next to the original. Your original ZIP is never changed or overwritten.
Files that were intact are kept exactly as they were. Files that were damaged are recovered as far as possible and marked "(partial)" in their names, so you know which ones to check. Checking, repairing and previewing are free; saving repaired copies needs an Installation Key.
What you can expect to get back
| Type of damage | Typical outcome |
|---|---|
| Download or copy cut off near the end | Every complete file before the cut-off comes back; the last file may be partial |
| Missing or damaged central directory | Usually a full or near-full recovery, because the file data itself is fine |
| Bad sectors in the middle | Files outside the damaged area are intact; files inside it are partial |
| Large parts overwritten or never written | Only what is still physically present can be recovered |
| Password-protected (encrypted) ZIP | Passwords are not removed and encryption is not broken |
Be realistic about partial files. A partial text file or spreadsheet may still open with some content missing. A partial photo may show a gray area at the bottom, and a partial video may stop early. If a recovered file inside the archive is itself damaged, you can then repair it separately: for example, add a partial Word document or JPEG back into File Repairer as its own file. The supported file types table lists everything it handles.
Finally, one honest limit: if the ZIP was deleted, or it sits on a drive that Windows can no longer read, repair is the second step, not the first. Use data recovery software to get the file off the drive, then repair what you recovered.
Frequently asked questions
Can a corrupted ZIP file be fixed?
Usually, yes. Because each file in a ZIP is stored separately, damage normally affects only part of the archive, and a repair tool can rebuild the index and save the rest into a new archive.
Why does Windows say my compressed folder is invalid?
Most often the end of the ZIP is missing, typically from an interrupted download or copy. That end holds the archive's table of contents, so Windows cannot list anything even though most of the data is still there.
Can File Repairer open a password-protected ZIP?
No. It does not remove passwords or break encryption. It is designed for archives that are damaged, not locked.
