Skip to content
Aback ZIP

Troubleshooting · 7 min read · Updated

Check if a ZIP file is corrupted

Find out whether a ZIP is damaged: verify every file's CRC-32, spot structural problems, read common error messages and decide if the archive can be repaired.

A ZIP can look normal and still contain damaged files. Checking it means two things: verifying the structure that holds the archive together, and recomputing each file's checksum after decompressing it. Test ZIP Integrity does both in your browser and reports a pass or fail per file. This guide explains what the checks actually prove, how to run them, and how to interpret the result. If you find damage, Repair ZIP can usually recover the files that arrived intact.

What corruption means in a ZIP

A ZIP stores a small header in front of every file, the file's data, and a central directory at the end that acts as the index. Corruption can affect any of those parts. Damage to the end of the file removes the index, so the whole archive appears unreadable. Damage in the middle may spoil one entry while the rest remain fine. Bits can change during an interrupted download, a failed copy to a USB stick, a power loss while writing, or gradual disk failure.

This is why a ZIP that will not open is not necessarily lost. Because each file has its own header, a repair tool can scan the raw bytes and rebuild an index even when the original one is gone. What no tool can do is invent bytes that were never written.

  • Structural damage: missing end record, broken offsets, overlapping entries, mismatched headers between the local record and the directory.
  • Data damage: the compressed bytes of one or more files no longer match the checksum stored when the archive was created.
  • Incomplete archives: a partial download, or one part of a split set opened on its own.
  • Feature mismatches: not corruption at all, but a tool that cannot handle ZIP64, AES encryption or an unusual compression method.

How CRC-32 detects damaged files

ZIP records a CRC-32 value for each file: a four-byte fingerprint computed from the uncompressed data using the IEEE 802.3 polynomial. The value is stored both in the file's local header and in the central directory. To verify it, a tool decompresses the entry, recomputes the checksum and compares the two. Any change to the data produces a different value with overwhelming probability. The details of how the field is used are in PKWARE's ZIP APPNOTE, and the algorithm itself is described in what is CRC-32.

CRC-32 detects accidental damage, not deliberate tampering. It is a checksum, not a cryptographic hash. Someone who changes the data can recalculate the checksum too. For authenticity, use a signed manifest or a cryptographic checksum from a trusted source.

An integrity check also looks at the archive's structure: whether the end-of-central-directory record is present, whether offsets point to real headers, and whether local headers agree with the directory. A file can pass a CRC check for every entry and still fail because the index is inconsistent.

Check a ZIP in your browser

  1. Open ZIP Viewer first if the archive will not open anywhere. It reads the index and shows entry count, sizes, methods and flags; if even that fails, the archive is structurally broken.
  2. Run Test ZIP Integrity and choose the file. The tool scans the structure, then decompresses every entry and checks its CRC-32, or the authentication code for AES-encrypted entries.
  3. Read the per-file report. It lists which files passed and which failed, so you know whether the whole archive is unusable or only one entry is damaged.
  4. If only a few files fail, extract the good ones with Extract ZIP rather than discarding the archive.
  5. If the index is damaged but the data looks intact, scan and rebuild with Repair ZIP. Download the result and run the integrity test again.
  6. If you were given a checksum for the whole file, compare it with ZIP Checksum. That verifies you received the exact bytes the sender intended.

Verification reads the archive on your device. Nothing about the file is uploaded, and a password-protected archive can be listed without decrypting its contents.

Check from the command line

On Linux and macOS, Info-ZIP can test an archive without writing anything to disk:

unzip -t archive.zip

The output lists each file and ends with a summary. Look for 'OK' after each name and a final line reporting the number of errors. zipinfo -v prints detailed header information if you need to inspect offsets and flags. On Windows, 7-Zip's Test command performs the same check, and PowerShell's Expand-Archive will report failures but is less informative.

Preserve the original while you investigate

Keep the original file untouched while you work out what is wrong. Every tool described here reads the archive and writes new output; none of them should modify the source. If a repair produces a smaller or incomplete result, you still have the original to try again with a different approach. Make a copy first if the file is the only one you have, and compare file sizes after each attempt so you can tell whether a step actually recovered more data.

Read the error messages

MessageMeaningNext step
"End-of-central-directory signature not found"The index at the end is missing or the file is not a ZIP.Re-download, join split parts, or try Repair ZIP.
"Unexpected end of archive"The file is cut short.Get a complete copy; repair can usually recover files before the cut.
"CRC failed" or "Data error"One file's contents do not match its checksum.Identify the file with Test ZIP Integrity and get a fresh copy of it.
"The compressed (zipped) folder is invalid"Windows Explorer's catch-all message: corruption, encryption or an unsupported feature.Inspect methods and flags in ZIP Viewer.
"Unsupported compression method"An entry uses Deflate64, PPMd or another rare method.That is not damage; use 7-Zip. Aback ZIP lists such entries but does not decompress them.

What the result actually tells you

ResultInterpretationAction
All files passStructure is consistent and every entry matches its stored checksum.The archive is sound. Use it as normal.
One file failsThat file changed after the archive was made; the rest are fine.Extract the good files and replace the bad one from the source.
Index missing, data presentThe archive was truncated or badly written at the end.Scan and rebuild with Repair ZIP.
Nothing can be listedSeverely damaged, wrong format, or not a complete download.Re-download. See how to repair a corrupted ZIP file for what can still be salvaged.

A passing result is not a guarantee of authenticity. It says the bytes are internally consistent, not that they came from a trusted sender. For downloads, compare a cryptographic checksum published by the vendor when one is available.

Tools for this

Frequently asked questions

Run Test ZIP Integrity. It checks the archive structure, decompresses every file and compares each CRC-32 with the stored value, then reports which files passed.

More guides