How to Fix "Archive is Corrupted" Errors in WinRAR & 7-Zip
Few things are more frustrating than downloading a large file — or pulling an old backup from storage — only to see "The archive is corrupted or damaged" when you try to extract it. Whether you're working with ZIP, RAR, or 7z files, archive corruption is a common problem with well-established solutions.
This guide walks you through every practical method for repairing corrupted archives, from WinRAR's built-in recovery to command-line utilities, so you can get your files back.
Understanding Common "Archive is Corrupted" Error Messages
Different tools report corruption in different ways. Here are the most frequent error messages and what they actually mean:
- "The archive is either in unknown format or damaged" (WinRAR) — The file header is corrupted or the file isn't actually an archive.
- "CRC failed in [filename]. The file is corrupt" (WinRAR) — Data inside the archive doesn't match its checksum. The file was altered after compression.
- "Cannot open file as archive" (7-Zip) — The archive header is unreadable. This often happens with truncated downloads.
- "Data error in [filename]. File is broken" (7-Zip) — Similar to a CRC error; the compressed data stream is damaged.
- "Unexpected end of archive" (WinRAR/7-Zip) — The file is incomplete, usually from an interrupted download or transfer.
- "Headers error" (7-Zip) — The archive's internal file index is damaged, but the actual data blocks may still be intact.
In most cases, these errors don't mean total data loss. The severity depends on which part of the archive is damaged — header corruption is often fixable, while damage to the compressed data stream may only allow partial recovery.
Method 1: Repair with WinRAR's Built-in Tool
WinRAR includes a dedicated Repair Archive function that works on both RAR and ZIP files. This should be your first attempt for any corrupted archive.
Steps to Repair
- Open WinRAR (you don't need to open the corrupted file first).
- Use the file browser to navigate to the corrupted archive.
- Select the file, then go to Tools → Repair archive or press Alt+R.
- Choose a destination folder for the repaired file.
- Select the archive type — Treat the corrupt archive as RAR or as ZIP.
- Click OK and wait for the process to complete.
WinRAR creates a new file named rebuilt.archive_name.rar (or .zip) in your chosen folder. If the repair succeeds, you can extract from this rebuilt copy.
When WinRAR Repair Works Best
- Archives with damaged headers but intact data blocks
- RAR files that were created with recovery records (WinRAR adds optional redundancy data during compression)
- ZIP files with corrupted central directory entries
Tip: When creating important RAR archives, always enable "Add recovery record" in the compression options. This adds 1–10% overhead but dramatically improves repairability.
Method 2: Force-Extract with WinRAR's "Keep Broken Files"
If repair doesn't work, you can still extract whatever intact files exist inside the archive:
- Open the corrupted archive in WinRAR.
- Click Extract To (or press Alt+E).
- Choose a destination folder.
- Under the Miscellaneous section, check "Keep broken files".
- Click OK.
WinRAR will extract every file it can read, skipping past errors. Files that span a corrupted region may be incomplete, but you'll often recover the majority of the archive's contents.
Method 3: Repair and Extract with 7-Zip
7-Zip handles corrupted archives differently from WinRAR and is sometimes more tolerant of certain types of damage.
Open and Extract Despite Errors
7-Zip doesn't have a dedicated "repair" button, but its extraction engine is resilient:
- Right-click the corrupted archive.
- Select 7-Zip → Open archive (this forces 7-Zip to parse whatever it can).
- Select all files inside, then click Extract.
- Choose a destination and proceed.
Alternatively, use the 7-Zip command line for more control:
# Extract all recoverable files, ignoring errors
7z x corrupted_archive.zip -oC:\recovered_files
# Extract from a damaged RAR file
7z x damaged_file.rar -oC:\recovered_files
# Test archive integrity without extracting
7z t archive.7zThe -o flag (no space before the path) specifies the output directory. 7-Zip will extract every file it can decode and report errors for the rest.
Rebuild Corrupted 7z Archives
For damaged .7z files specifically, 7-Zip can sometimes recover data by scanning raw compressed blocks:
# Attempt to open a 7z file with a damaged header
7z x damaged.7z -oC:\outputIf the header is destroyed but the data blocks are intact, 7-Zip may still extract files — though filenames and folder structure might be lost.
Method 4: Command-Line Repair Tools
Command-line utilities offer the most powerful repair options, especially on Linux and macOS where GUI archivers may be limited.
Repair ZIP Files with zip -FF
The Info-ZIP utility (pre-installed on most Linux/macOS systems) has two repair modes:
# Light repair — fix minor structural issues
zip -F corrupted.zip --out repaired.zip
# Deep repair — scan for valid entries and rebuild the archive
zip -FF corrupted.zip --out repaired.zipThe -F flag fixes the central directory by reading local file headers. The -FF flag is more aggressive — it scans the entire file byte-by-byte looking for valid compressed entries, which is useful when the archive is severely damaged.
After rebuilding, extract normally:
unzip repaired.zip -d ./output_folderRepair RAR Files with rar r
If you have the rar command-line tool installed (available from RARLAB):
# Repair a corrupted RAR archive
rar r corrupted.rar
# Repair and place the rebuilt file in a specific directory
rar r corrupted.rar /path/to/output/This creates a rebuilt.corrupted.rar file. The command-line version uses the same repair engine as WinRAR's GUI.
Repair with unrar
The free unrar tool can force-extract from damaged RAR files:
# Extract files, keeping broken ones
unrar x -kb corrupted.rar ./output/
# List contents of a damaged archive (to see what's recoverable)
unrar lb corrupted.rarThe -kb flag is the command-line equivalent of WinRAR's "Keep broken files" option.
Extracting Files from Partially Corrupted Archives
When full repair isn't possible, partial extraction lets you salvage whatever data remains intact.
Strategy for Multi-Part Archives
Split archives (.part1.rar, .part2.rar, etc.) are especially recoverable because corruption in one volume doesn't necessarily affect others:
- Try extracting each volume individually with 7-Zip.
- Use WinRAR's "Keep broken files" to extract across all volumes.
- If one part is missing entirely, you may still recover files that are fully contained in the remaining parts.
Prioritize File Recovery by Type
If you're recovering from a large archive with mixed content:
- Documents (PDF, DOCX) — Often fully recoverable even from partial extraction, since they're stored as individual entries.
- Images (JPEG, PNG) — May open with visual artifacts if truncated, but are usually viewable.
- Videos (MP4, MKV) — Partially extracted videos can sometimes be played up to the point of corruption.
- Databases and executables — Typically require complete extraction to be usable.
Preventing Archive Corruption
Most archive corruption is preventable. Follow these practices to protect your compressed files:
- Verify downloads immediately. Compare file sizes and checksums (MD5/SHA-256) against the source. Most download pages provide hash values for verification.
- Use stable connections for transfers. Avoid transferring large archives over unreliable Wi-Fi. Use wired connections or download managers that support resume.
- Enable recovery records in RAR. When creating RAR archives, check "Add recovery record" in WinRAR. A 3–5% recovery record adds minimal size but makes future repairs far more likely to succeed.
- Safely eject removable media. Never unplug USB drives or SD cards during file transfers. Use your OS's "Safely Remove Hardware" function.
- Test archives after creation. Right-click → 7-Zip → Test archive, or use
7z t archive.zipon the command line. Catch corruption before it matters. - Keep multiple backups. Store important archives in at least two locations — local storage plus cloud backup. A single copy on a single drive is a single point of failure.
- Use modern archive formats. RAR5 and 7z offer better error resilience than older formats. If compatibility isn't a concern, prefer these over legacy ZIP.
- Scan for malware regularly. Some malware specifically targets archive files, injecting payloads or corrupting headers.
🙋 Frequently Asked Questions
Q: Why does WinRAR say "The archive is corrupted"?
This error means the archive file's internal structure is damaged. Common causes include incomplete downloads, interrupted file transfers, bad sectors on the storage device, or the archive being modified by malware. WinRAR checks CRC values during extraction — if they don't match, it reports corruption.
Q: Can a corrupted RAR or ZIP file be repaired?
Often yes. WinRAR has a built-in Repair Archive feature (Alt+R) that can fix many issues. For ZIP files, use the zip -FF command or WinZip's repair function. Success depends on the corruption severity — minor header damage is usually fixable, while severe data corruption may result in partial recovery.
Q: How do I extract files from a partially corrupted archive?
In WinRAR, check "Keep broken files" in extraction options. In 7-Zip, use the command: 7z x archive.zip -oC:\output_folder. Both methods will extract whatever intact files exist, skipping corrupted ones. You may recover most files even from a damaged archive.
📚 Related Articles
- Corrupted Archives Recovery Guide - Comprehensive guide to ZIP and RAR data recovery
- File Corruption Causes - Understand why files become corrupted
- Complete File Recovery Guide - End-to-end file recovery strategies
- Best File Repair Tools 2026 - Top software for repairing damaged files
- Storage Repair Center - Fix issues with drives, SD cards, and storage devices
Recovered Photos Need Repair?
Extracted images from a corrupted archive may still be damaged. Magic Leopard™ uses advanced repair to fix broken JPEG, PNG, and RAW photos — even partially recovered ones.