Phil Katz created the ZIP format in 1989 for his PKZIP utility, and its basic layout has changed remarkably little since. Deflate, ZIP64, AES encryption and UTF-8 names were added on top of a structure designed for far smaller files.
The problem ZIP was built to solve
Before ZIP, compressing several files usually meant compressing each one separately into its own small file, then finding a way to keep them together. The ARC format, popular on early bulletin boards, had shown that a single compressed archive was more convenient. Katz first wrote a compatible utility called PKARC. A legal dispute with the makers of ARC over that utility led him to write a new program and a new format from scratch: PKZIP, and the ZIP file that came with it.
The design goal was modest by today's standards: put a handful of DOS files into one file, keep their names and folder paths, and let the recipient put them back. What made ZIP endure was not any single clever trick but the decision to store an index at the end of the archive. That index, the central directory, let a program list an archive without reading every file. The full format is defined in PKWARE's APPNOTE, which is still the authoritative reference.
1989: the first ZIP files
The original layout is the one we use now. Each file is preceded by a local header holding its name, compression method, sizes and checksum, followed by the compressed bytes. After all files comes the central directory, one record per entry, and a short end-of-central-directory record that says where the directory starts and how many entries it contains. Multi-byte numbers are little-endian, reflecting the DOS machines the format was written for.
Early PKZIP versions used compression methods such as Shrink, Reduce and Implode. PKZIP 2.0, released in 1993, introduced Deflate, the method that became the default and remains the common case today. Deflate combines LZ77-style back-references with Huffman coding, and it is specified in RFC 1951. Its appeal was balance: it compressed text and code well, decoded quickly on the hardware of the day, and was simple enough for many independent implementations to reproduce.
ZIP is a container, not a compression algorithm. Deflate is one method inside it, and the same container can carry entries that are stored without compression at all.
Why the structure survived
Formats often disappear when their assumptions break. ZIP's have broken more than once, yet archives from the early 1990s still open. Three properties explain that. First, the central directory is a real index, so a reader can jump to a single entry instead of scanning the whole file. Second, unknown fields can generally be skipped: extra fields carry new features without forcing old readers to understand them. Third, new methods and features were assigned identifiers rather than changing the meaning of existing ones.
That is why an old archive can still be opened by new software, and why a new archive can often be opened by old software as long as it sticks to basic features. It also explains the shape of everyday tools: a ZIP viewer can list a large archive quickly because it reads the index, while a full integrity check has to decompress each entry. The byte-level view in Inside a ZIP file, byte by byte walks through the same structures in detail.
The 1990s: ZIP becomes a default hand-off format
ZIP spread for two reasons. It was built into operating systems and mail clients, and a free, portable implementation existed. The Info-ZIP project produced the zip and unzip commands that shipped on Unix and Linux systems and were ported widely. When a format is both free to implement and already installed on the receiving computer, it becomes the natural way to send a folder.
PKZIP itself was shareware, so the format's early distribution was tied to that era of software. The archive format outlived the business model: supporting ZIP cost nothing, and users already knew what a .zip file meant. Later archive formats would offer stronger compression or encryption, but they had to persuade both sender and recipient to install something new.
The 4 GB wall and ZIP64
Classic ZIP fields are 32 bits. A single entry's compressed and uncompressed sizes, and the offset of the central directory, are stored as 32-bit integers, which puts a ceiling just under 4 GB on a value; the entry count in the end record is limited to 65,535. As disk images and media files grew, those limits became ordinary rather than exotic.
ZIP64 was the answer. It adds 64-bit size and offset fields in an extra field on affected entries, plus a ZIP64 end-of-central-directory record and locator. A reader that does not understand ZIP64 sees placeholder values in the classic fields and will report nonsense sizes or corruption, so support has to be deliberate. The ZIP64 explained guide covers what this means when you create or open a large archive.
Encryption arrived later, twice
The original encryption in ZIP, now called ZipCrypto, was weak and had known weaknesses almost from the start. It survives for one reason: Windows Explorer could open it for years without additional software. The modern choice is WinZip AES, usually written as AES-256 in tool interfaces, which encrypts file data properly and carries an authentication code. The AES versus ZipCrypto guide explains the practical difference, and AES-256 ZIP encryption, explained covers how it is used.
PKWARE also defined a separate strong-encryption scheme. Aback ZIP does not support it, and it does not guess or crack passwords of any kind. If you know a password, the Remove ZIP Password tool can decrypt the archive locally; if you do not, the contents are not recoverable through this tool.
Names beyond ASCII
In the original format, a file name was simply a sequence of bytes. Writers on Japanese, Chinese or Russian Windows systems used the machine's local code page, and readers on another system displayed gibberish. The later convention is to write UTF-8 bytes and set a specific general-purpose flag bit to say so. Readers that honour the flag show résumé.pdf, 文件.pdf and emoji correctly; readers that ignore it fall back to a code page.
This is a compatibility convention rather than a rewrite of the format, which is why ancient archives can still have broken names while their file data is perfectly intact. Unicode file names in ZIP archives goes into the encoding details, and a tool such as Fix ZIP Filenames can rewrite names without changing contents.
What ZIP's age means for you now
| Era | Addition | Practical effect today |
|---|---|---|
| 1989 | Original ZIP layout | Readable by almost every archive application |
| 1993 | Deflate as the default method | Good compression for text and code, fast decoding |
| 1990s | Wide OS and Info-ZIP support | ZIP becomes a safe default for sending a folder |
| 2000s | ZIP64 and UTF-8 names | Large archives and non-Latin file names work properly |
| Later | WinZip AES and extra fields | Strong encryption and metadata without changing the container |
- Most ZIP files open normally, including ones made by much older software.
- Advanced methods exist outside the common set. Aback ZIP lists and copies Deflate64 and PPMd entries as-is but does not decode them.
- RAR and 7z are separate formats with separate specifications; a
.zipextension does not make an archive interchangeable with them. - Damage has a location. A broken end record, a broken local header and a bad checksum fail at different stages, which is why Repair ZIP can often recover entries whose index is missing.
The format's long life is a result of restraint: new features were added as optional fields and named methods rather than by redefining the old ones. That is also why honest limitation notes matter more than broad compatibility claims. Check what an archive actually contains with a viewer before assuming that every tool can process it.