7-Zip “Can not open the file as archive”, Headers Error, and CRC Failed explained
What 7-Zip's archive errors mean, how to tell damage from a missing part or wrong password, and how to recover intact files from a broken ZIP.
By the Bytevive team9 min read

You double-click an archive in 7-Zip and get Can not open the file as archive. Or it opens, you click Extract, and the progress window fills up with Headers Error, Unexpected end of data, Data Error, or CRC Failed.
These messages sound alike but they point at different problems, and some of them aren’t damage at all. A missing part of a split archive, a wrong password, or a web page saved with a .zip name all produce errors that look like corruption. This guide explains what each message means, how to test which one you have, and what you can still get back.
What each message means
| Message | What 7-Zip is telling you | Most common cause |
|---|---|---|
| Can not open the file as archive | It can’t read a header at the start or the end of the file | Cut-off download, wrong format behind the name, or one split part on its own |
| Headers Error | It found the archive, but the information about the files inside is damaged or inconsistent | Damage near the end of the file; in 7z archives with encrypted names, a wrong password |
| Unexpected end of data | The file stops before the archive does | Incomplete download or copy, or a missing split part |
| Data Error | A file’s compressed data couldn’t be decompressed | Damaged bytes inside that file’s data |
| CRC Failed | A file decompressed, but its checksum doesn’t match the one stored when it was archived | Damaged bytes in that file |
| CRC Failed in encrypted file. Wrong password? | Same check, in an encrypted archive | Usually just the wrong password |
| Unsupported compression method | The archive uses a method this version can’t decode | An old 7-Zip, or a ZIP made with a rare method |
Why the end of the file matters so much
Both ZIP and 7z keep their table of contents at the end. A ZIP stores each file with a small local header in front of it, then finishes with a central directory that lists every file, as the ZIP specification describes. A 7z archive starts with a 32-byte header that points to an end header and a metadata block holding names, sizes, and checksums, according to 7-Zip’s own recovery guide.
Inside a ZIP archive
Each file carries its own small header, so files can be found even when the central directory at the end is gone.
- Header + file 1Name, size, CRC, data
- Header + file 2Name, size, CRC, data
- Header + file 3Name, size, CRC, data
- Central directoryList of every file
- End recordWhere the list starts
Downloads and copies are written front to back, so an interrupted one loses the end first. That’s why “Can not open” and “Unexpected end of data” are so common: the files may be sitting in the archive, but the list that 7-Zip reads first is gone. The difference between the formats matters for recovery. A ZIP repeats each file’s name and size in its local header, so the files can be found again without the central directory. A 7z archive keeps that information only in the metadata block at the end, and most 7z archives are solid, with all files compressed as one stream, so a cut-off 7z is much harder to recover.
Step 1: rule out the things that aren’t damage
- Split archives. Names like
backup.7z.001,backup.zip.001, orbackup.z01mean a multi-part set. Put every part in the same folder and open the first one. A missing middle part gives “Unexpected end of data” or “Can not open”. - The wrong password. If 7-Zip asked for a password, or says “Wrong password?”, type it again carefully, watching for keyboard layout and Caps Lock. With encrypted file names, a wrong password can even show up as a Headers Error.
- It isn’t an archive. Open the file in Notepad and look at the first characters. A ZIP starts with
PK, a 7z with7zfollowed by odd symbols, a RAR withRar!. If you see<html>, you downloaded a web page, often a login or error page, and need to download it again. - An old 7-Zip. The 7-Zip FAQ notes that 7-Zip 9.20 can’t open RAR5 archives, while current versions can. Update before assuming the archive is broken.
Step 2: test the archive and check the size
Compare the file size with what the website or sender says it should be. A shortfall means the copy is incomplete, and downloading it again is the only way to get the missing part. If the publisher lists a checksum such as SHA-256, compare it too.
Then use 7-Zip’s Test button (or 7z t archive.zip on the command line). Testing decompresses everything without writing files, and the report tells you whether the problem is the structure (the archive won’t open) or particular files (CRC or data errors on some names). That’s the split the 7-Zip FAQ uses when it describes corrupted archives.
Step 3: get out whatever you can
If the archive opens but some files fail, extract anyway. 7-Zip carries on past errors, so the good files land in the folder and the damaged ones are listed at the end. Check the files it flagged before trusting them.
If 7-Zip won’t open the archive at all, try another tool before you give up. The 7-Zip FAQ says that when it can’t open a ZIP, the archive usually has incorrect headers, and that some other programs open such archives because they ignore errors. Windows File Explorer and WinRAR are worth a try. Whatever opens it, copy everything out right away.
Repairing a damaged ZIP with Bytevive
When no tool will open a ZIP, the files can still be found by reading the archive from the front, one local header at a time, instead of relying on the missing central directory (see our interactive ZIP walkthrough for how that catalog works). That’s what Bytevive’s ZIP repair does, in your browser:
- Open ZIP Repair and sign in with a free account.
- Drop the ZIP on the page. Archives up to 1 GB work, and nothing is uploaded.
- Bytevive walks through every file entry, decompresses each one, and checks it against its stored checksum, so you see which files read back perfectly and which are damaged.
- It builds a new ZIP containing only the files that passed, which you can download and open with any unzip tool.
It’s honest about the rest. Damaged files are left out rather than handed back broken. Files that are password-protected can’t be checked, and files using compression methods other than the standard Deflate and Store are flagged instead of guessed at. If the archive turns out to be healthy, it says so, which points back to the tool you were using. For more on ZIP damage, see fixing “unexpected end of archive” and Windows’ “compressed folder is invalid” error.
7z and RAR archives
Bytevive doesn’t repair these formats yet; it recognizes them and tells you so. Here’s what does work:
- RAR: WinRAR’s Repair archive command (Tools → Repair, or Alt+R) writes a new
fixed.orrebuilt.copy and leaves the original alone. Its chances are much better if the archive was made with a recovery record. Without one, WinRAR’s documentation says it can only rebuild the structure, files that fail their checksum can’t be recovered, and solid archives often yield only the first file. - 7z: First try the newest 7-Zip, including beta versions, as 7-Zip’s recovery guide suggests. The same page walks through a manual hex-editor recovery for archives whose end is missing. It’s technical, and at best it recovers raw data without the original file names.
When it can’t be recovered
- The data was never written. If a download stopped at 60%, the last 40% isn’t in the file.
- Solid archives with early damage. When every file shares one compressed stream, damage near the start can make everything after it unreadable.
- Encrypted archives without the password. No repair tool can or should get around encryption.
- Files that fail their checksum. A CRC mismatch means that file’s bytes changed. Some file types tolerate it, but there’s no way to restore the original bytes from the archive alone.
How to avoid it next time
- Check the size, or a published checksum, after big downloads before deleting the source.
- Run Test on important archives right after you create them.
- For RAR backups, add a recovery record; WinRAR’s documentation calls 3 to 10% of the archive size a reasonable choice.
- For important backups, consider non-solid archives, so damage costs you one file instead of everything after it.
The bottom line
“Can not open the file as archive” and “Unexpected end of data” usually mean the end of the file is missing; CRC Failed and Data Error point to specific damaged files. Rule out split parts, passwords, and non-archives, then test and extract what you can. For a ZIP that nothing will open, Bytevive can rebuild it from the intact files, free and without uploading. For RAR use WinRAR’s Repair, and for 7z start with the newest 7-Zip.
Frequently asked questions
What does “Can not open the file as archive” mean in 7-Zip?
Does “CRC Failed” mean the whole archive is lost?
Why does Windows or WinRAR open a ZIP that 7-Zip won't?
Can Bytevive repair 7z or RAR archives?
Is my archive uploaded when I use Bytevive?
Sources
Every claim, error message, price, and limit cited above comes from these pages, checked on November 27, 2026. If one has changed, tell us at support@bytevive.com and we’ll update the article.
- 7-Zip FAQ (why some ZIP archives won't open, recovering 7z archives)
- 7-Zip: How to recover corrupted 7z archive
- PKWARE: ZIP File Format Specification (APPNOTE.TXT)
- WinRAR documentation: “Repair archive” command
- WinRAR documentation: Command R, repair a damaged archive
- WinRAR documentation: Protecting archives from damage (recovery record)
- files.wiki: 7Z file extension, common problems and fixes


