File Formats
  • Audio
  • Video
  • Images
  • 3D & CAD
  • Documents
  • Data
  • Code
  • System
Data
  • Structured text
  • Binary serialisation
  • Databases
  • Scientific
  • Geospatial
  • Machine learning
  • Messages & calendars
  • Compression
  • Archives
  1. Home
  2. Data
  3. Archives
  4. ZIP
.ZIP
  • Overview

.ZIP

ZIP archive

Introduction

ZIP bundles files and folders into one archive and compresses each file separately. Phil Katz created it for PKZIP in 1989, and PKWARE still publishes the specification, APPNOTE.TXT. Windows and macOS open ZIP files with no extra software, which makes it the most widely used archive format.

Many formats are ZIP files with another extension and a set layout inside: Word documents, Excel workbooks, PowerPoint presentations, EPUB ebooks, Java archives, Android packages and 3MF print models. Any ZIP tool can open them to show the files inside.

Software

  • File Explorer, built into Windows
  • Archive Utility, built into macOS
  • 7-Zip (Windows)
  • WinRAR (Windows)
  • PeaZip (Windows, macOS, Linux)
  • The Unarchiver (macOS)
  • Info-ZIP zip and unzip (macOS, Linux, Windows)

Structure

A ZIP file has two lists of its contents. Each file is stored with a local file header in front of its data, and the central directory near the end lists every file again with the offset of its local header. The end of central directory record comes last, so a reader starts at the end of the file, finds that record, and reads the directory from there. All numbers are little-endian.

  1. 0Local file header PK 03 04, method, time, CRC-32, sizes, name30 bytes + name + extra
  2. …File data stored or compressedvaries
  3. …More files a header and data for eachrepeated
  4. …Central directory one PK 01 02 entry per file46 bytes + name + extra + comment each
  5. …End of central directory PK 05 06, entry count, directory size and offset, comment22 bytes + comment
A ZIP file: each file with its header, then the central directory.

The usual compression method is 8, DEFLATE; method 0 stores a file as it is, and the specification also defines others such as bzip2, LZMA and Zstandard. Archives over 4 GiB, or with more than 65,535 files, use the ZIP64 extensions, which add 64-bit sizes and offsets.

© 2026 fileformats.org About Contact Made by Lewpen