Files & Cloud / Article
How to Fix a ZIP File That Won't Open or Is Corrupted
Photo by Nong on Unsplash

How to Fix a ZIP File That Won't Open or Is Corrupted

If a ZIP file refuses to open or shows errors such as “invalid archive,” “unexpected end of archive,” or “CRC failed,” the problem may be an incomplete download, damaged data, a password, or an extraction tool that does not support the archive. The error message is a useful clue: a password prompt does not automatically mean the file is corrupted, and renaming a file will not repair damaged data. Work through the checks below in order, keeping the original file unchanged until you know what happened.

1. Start with the simplest checks

  1. Check the download. If the file came from a website or email, confirm the download finished. Compare its size with the size shown by the sender or website, if available. If it is much smaller than expected, download it again using a stable connection.
  2. Move it to a local folder. Copy the ZIP from a USB drive, network location, or cloud-synced folder to a folder on your computer. On Windows, a short path such as C:\Temp can also help if the destination path is very long.
  3. Check available storage. Extracting files can require substantially more free space than the compressed ZIP. Make sure the destination drive has room for the extracted contents.
  4. Try again after closing the app using the file. If the error appeared unexpectedly, close the extraction program and try once more. Restarting the computer is reasonable if the problem persists, but it will not fix an archive that is genuinely incomplete.

If you received the ZIP from another person, asking them to create and send a fresh archive is often safer and faster than trying multiple repair utilities.

2. Identify the kind of error

The exact message can help distinguish a damaged archive from a password or compatibility problem:

  • “Unexpected end of archive” or a file that is much too small: the download may have stopped before it finished.
  • “CRC failed” or a data error: some archived data does not match its integrity check, which often indicates damage.
  • “Cannot open file as archive” or “invalid archive”: the file may be incomplete, may not really be a ZIP, or may use a format the tool cannot read.
  • A password prompt: the archive may be encrypted rather than corrupted. Get the password from the creator and enter it carefully, including capital letters and spaces.
  • Only one extraction app fails: another tool may support the archive format or compression method better.

A different extraction program can help confirm the cause, but repeatedly extracting the same damaged file will not recreate missing data.

3. Try a built-in or alternative extraction tool

First try the extraction option built into your device. If it fails, use a reputable desktop archiver rather than downloading an unfamiliar “ZIP fixer.”

  • Windows: Try File Explorer first. If it fails, install 7-Zip from its official website, right-click the ZIP, and choose 7-Zip → Open archive or Extract Here. Its error messages may identify a damaged file, and it may still extract healthy files.
  • Mac: Try Archive Utility. If that fails, a reputable tool such as The Unarchiver or Keka may handle the archive differently.
  • iPhone: Tap the ZIP in the Files app. If extraction fails, try downloading it again or transferring it to a computer for further testing.
  • Android: Try Files by Google or another trusted file manager. If it cannot extract the archive, test a fresh download or use a computer.

If the tool recognizes the file as RAR or 7z rather than ZIP, the extension may be incorrect. Enable file extensions in File Explorer if needed, then correct the name only when you have confirmed the actual format. Changing a filename to .zip does not convert another file type into a ZIP archive.

4. Test the archive before attempting repair

A test checks the archive's integrity without requiring you to extract every file first.

  • Windows with 7-Zip: Right-click the archive, choose 7-Zip, then Test archive.
  • Mac or Linux with Terminal: Run unzip -t yourfile.zip, replacing yourfile.zip with the actual file name. A successful test reports that no errors were detected.

If the test identifies only a few damaged files, try extracting the unaffected files separately. You may be able to recover most of the archive even if one item cannot be read. If the ZIP contains important documents, keep the original file and work from a copy.

5. Try repair only if a fresh copy is unavailable

Repair tools sometimes reconstruct damaged archive information or recover files around a damaged section. They cannot reliably recreate bytes that were never downloaded or have been permanently lost. Make a copy first, and save the repaired result under a new name.

  1. On Mac or Linux: If the zip command-line utility is installed, try zip -FF broken.zip --out fixed.zip. Replace the example names with your file names, then test and open fixed.zip. This is an attempt, not a guarantee of recovery.
  2. On Windows: WinRAR has a repair option for some damaged archives. Open the archive in WinRAR and look for Repair under the Tools menu. It is separate software, so check its current licensing before relying on it.
  3. Extract what remains readable: Open the archive in 7-Zip and try extracting individual files or the files that appear healthy. Some data may be recoverable even when the complete archive fails.

Avoid uploading private or confidential archives to online repair services unless you have reviewed how the service handles uploaded files. For sensitive documents, prefer local tools or ask the sender for a replacement. You can also read our guide to removing malware from your computer if you have a separate reason to suspect an infection, but archive errors alone do not prove malware is involved.

6. Check multi-part archives, passwords, and storage devices

  • Multi-part archives: Names such as file.zip.001, file.zip.002, or file.z01 may be parts of one archive. Keep all parts together in the same folder and open the first part with a compatible archiver. If a part is missing, ask for it rather than trying to repair the incomplete set.
  • Password-protected ZIPs: Ask the creator for the correct password. Check for typing mistakes and capitalization. Some older extraction tools may not support newer encryption, so trying a current version of 7-Zip may help.
  • USB drive or SD card: Copy the archive to the computer's internal drive. If copying repeatedly fails or other files on the device are also affected, back up accessible files and check the storage device for errors before continuing.
  • Antivirus blocking: Check your security software's protection history or quarantine. Do not turn off protection just to force extraction, and restore a quarantined file only when you trust its source.

7. Protect yourself when the ZIP comes from an unknown source

ZIP files can contain executable or script files, and an unexpected attachment deserves caution whether or not it opens successfully. Use tools from their official websites, scan suspicious downloads, and do not run extracted programs unless you trust the publisher and expected the file. Do not treat an archive-repair download from an unfamiliar site as safe simply because it promises to recover everything.

8. If the ZIP still will not open

When the archive cannot be recovered, focus on getting a clean copy rather than repeating the same failed repair attempt:

If only a particular file inside the archive is damaged, ask for that file separately instead of requesting the entire package again. If the archive is irreplaceable, stop experimenting on the only copy and preserve it for a more careful recovery attempt.

The safest order to follow

Check the download and available space first, then try a built-in extractor and a reputable alternative such as 7-Zip. Test the archive to learn whether data is damaged, and attempt repair only on a copy when obtaining a fresh archive is not possible. If the file remains unreadable, request a replacement. This order avoids unnecessary tools and gives you the best chance of recovering readable files without risking the original.