How to Fix “Cannot Open File as Archive” in 7-Zip
By SimpleTools24Published 4 min read
7-Zip shows "Cannot open file as archive" when it can't recognise the file as any format it supports. The usual reasons are that the download is incomplete, the file is one part of a split archive, the file isn't really an archive despite its extension, or the archive's headers are damaged. Related messages such as Headers Error, Data Error and Unexpected end of data point to the same few problems, and most are fixed by getting a complete, correct copy of the file.
In this guide
What Each 7-Zip Error Means
| Message | What 7-Zip is telling you | Usual cause |
|---|---|---|
| Cannot open file as archive | No supported format recognised | Wrong file type, truncated file, or a split part |
| Cannot open the file as [7z] archive | It looks like 7z but the header can't be read | Truncated download or damaged header |
| Headers Error | The archive's index is damaged or incomplete | Truncation or corruption near the end |
| Unexpected end of data | Data stops before the archive is complete | Incomplete download or missing split part |
| Data Error | Decompressed data failed its checks | Corruption, or a wrong password in encrypted archives |
| CRC Failed | A file's checksum doesn't match | Corruption in that file's data |
| There are some data after the end of the payload data | Extra bytes follow the archive | Usually harmless; often a download artefact |
Cause 1: The Download Didn't Finish
7z stores its main header, the list of files, at the end of the archive. When a download is cut short, the beginning is there but the index isn't, so 7-Zip can't even list the contents. That's why truncated 7z files typically fail outright rather than extracting partially.
Check the file size against the source. If it's smaller, download it again, ideally with a download manager or a browser that resumes interrupted downloads.
Cause 2: It's a Split Archive
Files named something.7z.001, something.7z.002 are pieces of one archive. Opening part 2 on its own, or opening part 1 when later parts are missing, produces "Cannot open file as archive" or "Unexpected end of data".
Put all parts in one folder and open the .001 file, or join them into a single .7z. The steps are in how to extract split 7z files.
Cause 3: It Isn't Really a 7z File
Extensions can lie. Common impostors:
- An HTML error page saved as
.7zwhen a download link expired. - A RAR or ZIP archive renamed to
.7z. 7-Zip usually detects these anyway, but some tools don't. - An executable pretending to be an archive. Be careful with these.
The quickest check is the file's first bytes. A real 7z archive always begins with 37 7A BC AF 27 1C (the characters 7z followed by four fixed bytes). Open the file in a binary file viewer to see its signature; the viewer also names the detected format. If the first bytes read <!DOCTYPE or <html, you've got a web page, and you'll need a fresh download link.
Cause 4: Wrong Password
In encrypted 7z archives, a wrong password often appears as Data Error or "Wrong password?" rather than a clear password message. If the archive hides file names, you might even see "Cannot open encrypted archive. Wrong password?" before any list appears.
Retype the password by hand, check Caps Lock and keyboard layout, and watch for trailing spaces in pasted passwords.
Cause 5: Genuine Corruption
If the size is right, the signature is right and the password is right, the data itself may be damaged by a failing drive, a bad USB stick or a faulty transfer. Options:
- Get another copy. The original source is the only reliable fix.
- Extract what's undamaged. In a non-solid archive, or one with several solid blocks, files outside the damaged region often extract fine. 7-Zip may still extract other files after a CRC error.
- Test before you trust. Run
7z t archive.7zto see which files fail.
7z has no recovery record like RAR's, so there's no built-in repair. That's a good reason to keep two copies of important 7z backups.
Cause 6: An Outdated or Limited Extractor
Some old or minimal extractors don't support every 7z feature, such as particular filters, newer methods, or header encryption. If a file opens in current 7-Zip but not in another app, update or switch the app.
Check the File Without Installing Anything
Not sure which problem you have? Upload the archive to the online 7z opener. It reads the file before extracting and tells you whether it's a valid 7z, whether it's encrypted, or whether it appears truncated or is a different format altogether.
Frequently Asked Questions
Can I repair a 7z file?
Not in the RAR sense; 7z has no recovery data. You can often extract the undamaged files, but the damaged parts need a fresh copy.
Is "There are some data after the end of the payload data" a problem?
Usually not. The archive is complete, and 7-Zip is noting extra bytes after it. Files normally extract correctly.
Why does 7-Zip open the file but show it empty?
The archive may hide its file names. Enter the password when prompted and the contents appear.
My .7z file is only a few kilobytes. What happened?
It's almost certainly not the archive you wanted, but an error page or a redirect. Check its first bytes or open it in a text editor.
Summary
Most 7-Zip errors come down to an incomplete file, a missing split part, a mislabelled file or a mistyped password. Check the size, check the parts, check the first bytes, and you'll find the cause in a minute or two.
Related tools
Sources
- 7-Zip frequently asked questions – 7-Zip (opens in a new tab)
- 7z Format – 7-Zip (opens in a new tab)
Related articles
- Extract Split 7z FilesOpen multi-part .7z.001 archives, join the pieces with built-in commands, and handle missing or misnamed parts.
- How to Open 7Z FilesFree ways to extract .7z archives on every major platform, plus an online option when you can't install software.
- RAR File Won't OpenWhat "unexpected end of archive", CRC errors and "not RAR archive" really mean, and how to fix each one.