Compressed (zipped) folder is invalid

By Filewhisk Team Published

We fed sixteen test ZIPs to the ZIP folder built into Windows 11: four came up completely empty, and three more opened but quietly left files out.

“Windows cannot open the folder. The Compressed (zipped) Folder is invalid.” Most advice for this message treats it as a Windows fault: restart File Explorer, run sfc /scannow, change a folder setting. In our tests the problem was almost always the file itself. Windows’ built-in ZIP folder gives up on anything that is not a complete, ordinary ZIP, and it says the same thing whatever the reason. Once you know which reason it is, the fix usually takes a minute.

What we found

We took sixteen test ZIP files, fifteen of them with a known problem, and opened every one through the same ZIP handler File Explorer uses, on Windows 11 (build 26300). For each we counted the files Windows could list and the files it actually extracted:

The fileWindows listedWindows extracted
A normal ZIP (for comparison)7 files7
A ZIP cut off before the end, like a download that stopped earlynothing0
A ZIP missing its table of contents at the endnothing0
A RAR archive renamed to .zipnothing0
A web page saved as .zip (a login or error page instead of the file)nothing0
The last part of a ZIP split into pieces7 files0
A ZIP using newer compression (bzip2, LZMA) for two of its three files3 files1
A ZIP with one damaged file inside7 files6

The first four are the ones that bring up “invalid”: Windows finds no ZIP it understands and shows an empty or broken folder. The last three are worse in a way, because the folder opens and looks fine, but some files never arrive. A ZIP64 file (the format used for archives over 4 GB) extracted normally, and password-protected ZIPs listed their contents normally (we did not extract those, to avoid a password prompt).

Step 1: check the size

Right-click the ZIP, choose Properties, and compare Size with what the website, email or sender said. A ZIP that is noticeably smaller than it should be did not finish downloading. A file of a few kilobytes when you expected megabytes is almost certainly not the ZIP at all (see step 2).

If you can, download it again. Use a different browser, or a wired connection if the file is large, and wait for the download to finish completely. If the source is gone, the part you already have can often still be saved: our Unzip Files tool reads a cut-off ZIP from the front and recovers every file that arrived whole. On our cut-off test file, Windows showed nothing; the tool recovered three of the four files byte for byte and marked the fourth as incomplete.

Step 2: check what the file really is

A file name ending in .zip proves nothing. Right-click it, choose Open with → Notepad, and look at the first characters (ignore the rest of the jumble):

The file starts withIt isWhat to do
PKA real ZIPGo on to step 3
Rar!A RAR archiveRename it to .rar and open it with 7-Zip or WinRAR
7z followed by odd symbolsA 7-Zip archiveRename it to .7z and open it with 7-Zip
<!DOCTYPE html or <htmlA web pageThe site sent a login, expired-link or error page instead of the file. Sign in and download again, or ask for a new link
MZA program (.exe)Be careful: a self-extracting archive starts this way, but so does malware. Only run it if you trust the sender

If you would rather not open it in Notepad, drop it on Unzip Files: it checks the first bytes and tells you which of these it is, and it never uploads the file anywhere.

Step 3: a real ZIP that still won’t open

What about sfc, restarting Explorer and folder settings?

Those steps fix Windows itself, and they are worth trying only when every ZIP fails, including ones that opened before. A quick test: make a new ZIP yourself (right-click any file, Send to → Compressed (zipped) folder, or use Create ZIP File) and open it. If your own ZIP opens, Windows is fine and the problem is the file you received.

On a phone

iPhones open ZIPs in the Files app (tap the file and it extracts into a folder), and Android’s Files by Google does the same. A half-downloaded ZIP, a renamed RAR or a saved web page is just as broken there, so the checks above apply, and Unzip Files works in the phone’s browser too.

How we tested

The sixteen test ZIPs were built for our Unzip Files tool, all but one with a known problem, and their contents checked with Python’s zipfile module. Each was opened in its own PowerShell process through Shell.Application, the same ZIP folder handler File Explorer uses, with error dialogs switched off; we counted the items Windows listed and the files that appeared after copying them out. Password-protected files were only listed, not extracted, so no password prompt would open. Our tool’s results come from the same files, compared byte for byte with the originals. We did not test the phone apps or the split-archive programs; those sections describe how they handle ZIPs.

Tools used in this guide