ZIP Files
The ZIP File Format Explained
ZIP's internal layout is what makes it possible to read a listing of an archive's contents without decompressing the whole file first.
Get an archive tool for your computer
Download the installer and start opening RAR, ZIP and 7z archives in a few minutes.
Unlike a stream-based format, ZIP stores each file as a self-contained entry plus a separate index at the end. That design, published as an open specification decades ago, is why the ZIP format is readable by so many independent tools without any single vendor controlling it.
The three structural pieces
- Local file header — sits right before each file's compressed data and records its name, size, and compression method.
- Central directory — a single table near the end of the archive listing every file, its offset, and metadata. Tools read this first to show a file listing instantly.
- End of central directory record — the very last bytes of the archive, pointing to where the central directory begins.
Compression methods inside a ZIP
| Method | Notes |
|---|---|
| Store (no compression) | Used for files that are already compressed, like JPEGs, to avoid wasted CPU time |
| Deflate | The default in almost every ZIP tool; universally supported |
| LZMA | Better ratio than Deflate but needs a compatible unzip tool |
| Zstandard (zstd) | Fast modern method supported by newer ZIP implementations, not guaranteed everywhere |
ZIP64: removing the old size limits
The original ZIP format capped archives at 4 GB and 65,535 entries because its header fields were only 32 bits wide. The ZIP64 extension widens those fields to 64 bits, and virtually every current ZIP tool supports it automatically once a file or archive crosses the old limit, with no action needed from the person creating the archive.
Encryption: ZipCrypto vs. AES
ZIP supports two very different encryption schemes, and the difference matters for security, not just compatibility.
| Scheme | Strength | Compatibility |
|---|---|---|
| ZipCrypto (legacy) | Weak; has known cryptographic attacks | Opens in almost any unzip tool, including old ones |
| AES-256 (WinZip/WinRAR-style) | Strong, current standard | Requires a tool that specifically supports AES ZIP encryption |
Why ZIP is universally readable
Because the format has been openly documented since it was created, operating system vendors built native ZIP support directly into Windows and macOS rather than relying on a third-party app, which is not true for RAR. That is covered from the platform side on Windows and Mac, and from the practical, step-by-step side on how to extract a ZIP file.
Download and try it yourself
Install the archive tool and apply the steps from this guide on your own files.
Frequently asked questions
Can I list a ZIP file's contents without extracting it?
Yes — a ZIP reader loads the central directory first to show file names and sizes instantly, without decompressing anything. The [archive inspector](/tools/archive-inspector) does this locally in your browser.
Is ZIP64 something I need to enable?
No. Modern ZIP tools apply ZIP64 automatically once an archive exceeds the old 4 GB / 65,535-file limits.
Does every ZIP tool support AES encryption?
No. AES-256 ZIP encryption requires a tool built to support it. If you or the recipient use an older or minimal unzip tool, an AES-encrypted ZIP may not open.
Why would a file be stored instead of compressed in a ZIP?
Files that are already compressed, like JPEGs or MP3s, gain little or nothing from further compression, so some tools store them as-is to save time.
Related guides
- ZIP Files Explained: The Universal ArchiveZIP is the one archive format that opens on almost any device without installing anything extra. Here is what it actually does and when to reach for it.
- ZIP vs. RAR: A Practical ComparisonZIP and RAR solve the same basic problem — bundling and shrinking files — but they differ enough in compatibility and features that the right pick depends on what you're doing.
- How to Extract a ZIP FileExtracting a ZIP file needs no extra software on Windows or macOS — here is the exact process on each, plus command-line options.
- The RAR File Format ExplainedRAR is a proprietary archive format with its own header structure, versioning, and optional features like solid compression and recovery records.
WinRAR is a trademark of its respective owner. RareExplorer is an independent resource and is not affiliated with or endorsed by RARLAB or win.rar GmbH. Read our editorial policy to see how this page was researched.