ZIP (.zip)
The universal archive format for compressing and bundling multiple files into one.
- Extension
- .zip
- MIME Type
- application/zip
Last updated
What Is a ZIP File?
ZIP is an archive format developed by Phil Katz in 1989. It stores one or more files in a compressed container, making it easy to transfer multiple files as a single attachment or reduce total file size.
How ZIP Works
ZIP uses DEFLATE compression for each file independently. Each entry in a ZIP archive is compressed separately, which means:
- Individual files can be extracted without decompressing the entire archive
- Individual file corruption affects only that entry, not the whole archive
- The same algorithm as PNG compression — lossless, reversible
ZIP File Structure
A ZIP file contains three sections:
- Local file headers — metadata and compressed data for each file
- Central directory — an index at the end of the file listing all entries
- End-of-central-directory (EOCD) record — the pointer that locates the central directory
The central directory is at the end of the file. If a download is interrupted before the end, the central directory is missing and the ZIP cannot be opened — this is the most common cause of "cannot open ZIP" errors.
Common ZIP Errors
| Error | Cause | Fix |
|---|---|---|
| "Cannot open file: it does not appear to be a valid archive" | Interrupted download — missing EOCD | Re-download the file |
| "The compressed file is damaged" | Bit-level corruption in compressed data | Re-download; no repair possible |
| "File is too large to open" | >4 GB ZIP opened in older software | Use 7-Zip or WinRAR |
| "Needs password" | Archive is encrypted | Requires the correct password |
ZIP vs Other Archive Formats
| Format | Compression | Encryption | OS Support |
|---|---|---|---|
| ZIP | DEFLATE (moderate) | AES-256 (Zip 2.0+) | All — built into Windows, macOS |
| 7z | LZMA (best) | AES-256 | Requires 7-Zip |
| RAR | Proprietary (good) | AES-256 | Requires WinRAR |
| TAR.GZ | DEFLATE | None natively | Standard on Linux/macOS |
Tools for ZIP files
- Repair ZIP
Fix corrupt or damaged ZIP files in your browser. Recovers files from ZIPs with CRC errors, truncated archives, or partial downloads — no upload needed.
- ZIP Extractor
Extract files from any ZIP archive instantly in your browser. Browse contents, download individual files, or extract everything at once — no installation needed.
Related terms
Related terms
- Checksum / File Hash
A calculated value derived from a file's contents — used to verify the file has not been corrupted or tampered with during transfer.
- Compression Ratio
The ratio of a file's original size to its compressed size — a measure of how effectively a compression algorithm reduces file size.
- File Corruption
Damage to a file's internal data structure that makes it unreadable or causes it to produce errors when opened.
- File Fragmentation
When a file's data is stored in non-contiguous chunks across a storage device, potentially slowing access and increasing corruption risk.