Skip to content
SimpleTools24

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.

What Each 7-Zip Error Means

7-Zip error messages and their usual causes
MessageWhat 7-Zip is telling youUsual cause
Cannot open file as archiveNo supported format recognisedWrong file type, truncated file, or a split part
Cannot open the file as [7z] archiveIt looks like 7z but the header can't be readTruncated download or damaged header
Headers ErrorThe archive's index is damaged or incompleteTruncation or corruption near the end
Unexpected end of dataData stops before the archive is completeIncomplete download or missing split part
Data ErrorDecompressed data failed its checksCorruption, or a wrong password in encrypted archives
CRC FailedA file's checksum doesn't matchCorruption in that file's data
There are some data after the end of the payload dataExtra bytes follow the archiveUsually 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 .7z when 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.7z to 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.

Sources