ZIP File Format Explained

ZIP Archive · .zip

Extension.zip
MIME typeapplication/zip
TypeArchives
Developed byPKWARE
First released1989
Royalty-freeYes
CompressionLossless

What is a ZIP file?

ZIP bundles files and folders into one archive and compresses each entry, usually with the Deflate algorithm. Created by Phil Katz in 1989, the format is built into Windows, macOS, Linux, iOS and Android, so a ZIP is the safest way to send several files to someone whose software you do not know. Office documents, Java JARs, Android APKs and EPUB books are all ZIP files with a different extension.

Each entry is compressed on its own and listed in a central directory at the end of the file, which allows a single file to be extracted without reading the rest. The price is compression ratio: solid archives such as 7Z or TAR.XZ compress many similar files together and end up noticeably smaller. Legacy ZIP encryption is weak; only AES-encrypted ZIPs made by modern tools are secure.

When ZIP is the right choice

Strengths

  • Opens without extra software on every operating system
  • Random access: extract one file without unpacking everything
  • Fast to create and to extract

Limitations

  • Weaker compression than 7Z or TAR.XZ, especially on many small files
  • Traditional ZipCrypto password protection is easily broken
  • Old tools mishandle file names with non-Latin characters

How to open a ZIP file

Double-click on Windows or macOS, or use the built-in tools on your phone. When a ZIP refuses to open or shows garbled file names, Extract ZIP unpacks it in the browser and lists the contents.

How to convert a ZIP file

ZIP to 7Z re-compresses an archive into a smaller solid file, ZIP to TAR.GZ or ZIP to TAR.XZ prepare it for Linux servers, and Extract ZIP unpacks it. Archives coming from the Unix world convert back with 7Z to ZIP.

Frequently Asked Questions

What is the difference between ZIP and 7Z?

7Z uses LZMA compression and packs files together, so archives are smaller, and its AES-256 encryption is strong. ZIP compresses less but opens everywhere without installing anything.

Is a password-protected ZIP secure?

Only if it uses AES encryption, an option in 7-Zip, WinZip and WinRAR. The original ZipCrypto method can be cracked quickly, and file names remain visible in either case.

Why are file names inside my ZIP garbled?

The archive stored names in a legacy code page and the extractor expects UTF-8, or the reverse. Extract ZIP handles both, and 7-Zip lets you pick the code page manually.

Can a ZIP file contain a virus?

The archive itself does nothing, but the files inside can be anything. Scan extracted executables and be wary of archives that arrive unexpectedly, especially with a password that hides the contents from mail filters.