File Format

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:

  1. Local file headers — metadata and compressed data for each file
  2. Central directory — an index at the end of the file listing all entries
  3. 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

ErrorCauseFix
"Cannot open file: it does not appear to be a valid archive"Interrupted download — missing EOCDRe-download the file
"The compressed file is damaged"Bit-level corruption in compressed dataRe-download; no repair possible
"File is too large to open">4 GB ZIP opened in older softwareUse 7-Zip or WinRAR
"Needs password"Archive is encryptedRequires the correct password

ZIP vs Other Archive Formats

FormatCompressionEncryptionOS Support
ZIPDEFLATE (moderate)AES-256 (Zip 2.0+)All — built into Windows, macOS
7zLZMA (best)AES-256Requires 7-Zip
RARProprietary (good)AES-256Requires WinRAR
TAR.GZDEFLATENone nativelyStandard on Linux/macOS

Tools for ZIP files

Related terms