WinRAR shows “The archive is either in unknown format or damaged” when a ZIP file’s header data doesn’t match what the program expects. A real ZIP starts with the bytes 50 4B, the characters “PK”. If those are missing or the headers can’t be parsed, you get the error. You can often recover the contents with WinRAR’s built-in repair command. It has limits. Here’s what triggers the error, how to run a repair, and when you need a different approach.
What Causes the Error on a ZIP
WinRAR checks the first few bytes of a file to identify its format. A valid ZIP archive starts with “PK”. Missing or replaced bytes mean WinRAR can’t recognise the file and throws the error. The same happens when the file starts correctly but the internal headers, especially the central directory at the end, are corrupted or truncated.
An interrupted transfer causes this. So does a disk error. A file saved with the wrong extension causes it too. A download from the internet might arrive as .crdownload in Chrome or .part in Firefox. Rename that incomplete file to .zip and WinRAR will show this error. The fix is not repair. Download it again.
Use WinRAR’s Repair Command
Running The Built-In Repair
WinRAR includes a repair tool for damaged archives. To use it on a ZIP file:
- Open WinRAR and navigate to the folder containing the damaged ZIP.
- Click once on the file to select it.
- Choose Tools > Repair archive from the menu, or press Alt+R.
- In the dialog, pick a destination folder for the repaired copy. WinRAR writes a new file there and leaves the original untouched.
- Click OK and wait. Check the folder for a file named something like rebuilt.filename.zip.
After the repair, try opening the rebuilt file. If WinRAR still reports the error, the damage is in the compressed data itself. The repair command cannot help further.
What WinRAR Repair Can and Cannot Do
How The Repair Works
For a ZIP archive, WinRAR’s repair command rebuilds the central directory from the local file headers. The central directory is a table at the end of the archive listing all files and their locations. If that table is damaged or missing, WinRAR scans the local headers at the start of each compressed entry and reconstructs a new directory. This recovers the file list and lets you extract.
What Stays Broken
The repair cannot restore damaged compressed data. If a file’s compressed bytes are corrupted, the rebuilt archive still fails when you extract that file. WinRAR’s repair also cannot recover files never written to disk, such as those from an interrupted download saved as .crdownload or .part.
Extract with “Keep Broken Files”
If the repair command rebuilds the archive but some files still fail to extract, tell WinRAR to keep whatever data it can read. In the extraction dialog, look for the Miscellaneous section and check Keep broken files. WinRAR saves files that fail their checksum instead of deleting them. The resulting files may be partially usable. This helps when corruption sits in a non-essential part of the data.
Use this for a large file where only a small portion is damaged. You might get most of the content even if the final bytes are missing. Do not expect a perfect recovery. The checksum exists for a reason, and corrupted bytes stay corrupted.
When Repair is Not the Answer
Files That Were Never ZIPs
Some cases defeat every repair tool. If the file doesn’t start with “PK” because it isn’t a ZIP (a renamed .exe or a text file), WinRAR’s repair command cannot invent a valid archive. If a download was incomplete, the file may be truncated mid-stream. Repairing that is like reconstructing a book from missing pages. You might get fragments, not a working archive.
The Only Fix For A Partial Download
For an incomplete download, the single reliable fix is to get the file again. Check your browser’s download folder for a .crdownload or .part file and restart the transfer. Once it finishes, the new file opens without error.
Try a Different Tool If WinRAR Fails
WinRAR’s repair command is basic. If it cannot rebuild the archive, other options exist. Some dedicated ZIP repair tools use more aggressive algorithms to scan for residual data. You are not limited to paid software; free tools handle simple central-directory corruption.
One practical alternative: use a command-line tool like zip -FF, available in many ZIP utilities, to attempt a fix. The results mirror WinRAR’s repair. It can rebuild the directory, not the compressed data. A backup of the original file is always the best route. If you don’t have one, try the free repair option at zip.repair as a last resort before giving up.
Preventing the Error Next Time
Before You Open Anything
The best way to deal with this error is to avoid it. Let downloads finish completely before opening them. If your browser shows a .crdownload or .part file, do not rename it. Wait. Moving files over a network or USB drive demands caution; a sudden disconnect corrupts the archive.
Test Your Own ZIPs
If you create ZIP files, test them after creation. Open the archive and extract a few files to confirm the structure is intact. For sending important files, consider a format that includes recovery records. For ZIPs, the standard is to keep a backup.