Skip to content
RareExplorerRAR & ZIP knowledge base

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.

RareExplorer Editorial TeamLast updated August 1, 2026

Get an archive tool for your computer

Download the installer and start opening RAR, ZIP and 7z archives in a few minutes.

Download now

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

MethodNotes
Store (no compression)Used for files that are already compressed, like JPEGs, to avoid wasted CPU time
DeflateThe default in almost every ZIP tool; universally supported
LZMABetter 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.

SchemeStrengthCompatibility
ZipCrypto (legacy)Weak; has known cryptographic attacksOpens in almost any unzip tool, including old ones
AES-256 (WinZip/WinRAR-style)Strong, current standardRequires 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.

Download now

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.

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.