Repair a corrupted ZIP file
When you see 'archive is broken', split the problem into download corruption, transfer mishap, or missing central directory — and recover accordingly.
First, narrow it down
- Re-download to rule out transient transfer errors.
- Compare the hash with the publisher's value.
- Verify the central directory exists (
unzip -lshould list entries).
7-Zip repair workflow
- Open the archive > right-click > Open (read-only).
- Tools > Test to see which entries are unreadable.
zip -F / -FF (CLI)
zip -F broken.zip --out fixed.zip # light repair
zip -FF broken.zip --out fixed.zip # aggressive repair
When to give up
- If the central directory of an encrypted archive is gone, recovery is effectively impossible.
- For multi-volume archives, any missing volume means you have to re-download the set.