A ZIP can show a filename before it can list the archive
An interactive diagram of a ZIP with two local file headers and a central directory at the end: why names appear early but a full listing waits for the tail.
By the Bytevive team2 min read

A ZIP keeps each file’s name in two places. A local header sits right in front of that file’s bytes and carries the name. A central directory at the end lists every file, how big it is, and where its local header starts. Because a download reads from the front, it meets the local headers first.
Until the central directory arrives, the names you can see are only the local headers already on disk, not a complete archive listing. The sample below uses two placeholder files rather than bytes from a real archive. Drag the download slider to see how names appear before the catalog finishes. This page does not repair a damaged ZIP or upload anything.
A 560-byte ZIP, not a real archive
Two local headers, then the central directory. Drag how far the download got. Names in local headers are not the same as a finished listing.
Local file header for notes.txt. The name is stored here, immediately before that file's bytes. One local header is not the archive's catalog.
From local headers
notes.txt
Complete package
Not yet
Downloaded 48 of 560. Names from local headers so far: notes.txt. The central directory has not arrived, so this is not the complete archive. This page will not reconstruct it.
When Windows or macOS says an archive ended early, the tail holding this central directory often never arrived. See what “unexpected end of archive” is telling you or what Windows and Mac ZIP errors mean.


