Skip to content
Aback ZIP

Formats · 4 min read · Updated

ZIP vs 7Z: which archive format should you use?

A factual comparison of ZIP and 7z: compression, encryption, ZIP64, compatibility and when each format is the better choice for sharing archives.

ZIP and 7Z both bundle and compress files, but they make different trade-offs. ZIP is the universal format that opens almost anywhere without extra software. 7Z, the native format of 7-Zip, usually produces smaller files and has stronger encryption options, but the person receiving it may need to install something.

The short answer

  • Sending files to other people: ZIP. It opens on every computer and phone without anyone installing anything.
  • Archiving your own text-heavy data where every megabyte counts: 7Z is worth considering.
  • Hiding file names as well as contents: 7Z with header encryption, because ZIP encryption leaves names visible.
  • Photos, videos, music and PDFs: size barely differs, so pick ZIP for compatibility.

Side-by-side comparison

FeatureZIP7Z
Origin1989, PKWARE; public specification1999, Igor Pavlov for 7-Zip; open format
Default compressionDeflateLZMA2
Typical ratioGoodOften noticeably better on text, code and similar data
Solid compressionNo; each file is compressed separatelyYes by default; similar files are compressed together
Extracting one fileFast; jumps straight to itMay need to decompress earlier files in the same solid block
Damage toleranceA bad file usually affects only that fileDamage can affect the rest of a solid block
EncryptionAES-256, or weak ZipCrypto; names visibleAES-256; optional encryption of file names
Built-in OS supportWindows, macOS, Linux desktops, iOS, AndroidRecent Windows 11 versions; elsewhere usually an app
Aback ZIPCreate, extract, edit, inspect and moreNot supported; detected and reported

Compression: why 7Z is usually smaller

Two things give 7Z its edge. LZMA2 looks for repeated data across a dictionary that can be many megabytes, compared with Deflate's 32 KB window. And solid mode compresses many files as one stream, so a pattern learned in the first file helps compress the hundredth.

On a folder of source code, logs or documents, a 7Z is commonly 10-30% smaller than a ZIP of the same files. On JPEGs, videos or other already-compressed files, the difference is close to zero. The cost is time and memory: high 7Z levels are much slower to create than ZIP and need far more RAM, although extraction is reasonably quick.

Compatibility

ZIP's biggest advantage is that nobody needs to install anything. Windows File Explorer, macOS Finder, Linux file managers, the iOS Files app and Android file managers all open ZIP files.

7Z support is narrower. Recent Windows 11 versions open 7Z files in File Explorer, but Windows 10 cannot, and Mac users typically rely on apps such as Keka or The Unarchiver. If you do not know what your recipient uses, ZIP is the safe choice.

Encryption

Both formats use AES-256 when you choose strong encryption, but they differ in the details. 7Z derives its key with 2^19 rounds of SHA-256, while ZIP AES uses 1,000 rounds of PBKDF2-HMAC-SHA1, so guessing passwords against a 7Z is much slower. 7Z can also encrypt the file list so that names are hidden; ZIP always leaves names, sizes and dates readable.

ZIP's older ZipCrypto scheme is weak and should not be used for anything sensitive. See ZIP encryption: AES vs ZipCrypto.

Converting between them

There is no shortcut: converting 7Z to ZIP means extracting and compressing again. Aback ZIP does not read or write 7Z, so use 7-Zip, PeaZip or Keka for that step, then use the Aback ZIP tools on the resulting ZIP.

What is inside each format

A ZIP is a list of entries. Each entry begins with a local file header (signature 0x04034b50), followed by optional encryption bytes and the stored or compressed data. The central directory at the end of the file is the index: it records every path, size and offset, so a reader can list thousands of files without decompressing any of them. The layout is specified in PKWARE's APPNOTE.TXT.

A 7z archive is built from packed streams. Its header says which streams hold file data and which hold metadata, and the header itself can be compressed. Files may be grouped into a solid block, so pulling out one small file can require decoding earlier data in that block. That is why 7z is compact but less convenient for picking out a single file.

Structural detailZIP7Z
Where the index livesCentral directory at the end of the fileHeader at the start, often compressed
List contents without decompressingYes; read the directoryUsually read and decode the header first
Unit of compressionOne file at a timeA solid block of many files
Random access to one fileDirect, using stored offsetsMay need to decode earlier data in the block
Adding one file laterAppend data and rewrite the directoryUsually rewrite the archive

Compression methods each format can carry

ZIP is a container, not a single algorithm. A method number in each entry's header says how that entry was encoded, and one archive can mix methods. 7z is also an open architecture, but in practice 7-Zip uses LZMA or LZMA2 by default and offers PPMd, BZip2 and filters such as BCJ for executables; its own site documents the 7z format.

MethodWhere you see itAback ZIP
Store (0)Both formats; no compressionRead and write
Deflate (8)The ZIP defaultRead and write
BZIP2 (12)ZIP and 7zDecoded inside ZIP entries
LZMA (14)ZIP (often seen as .zipx) and 7zDecoded inside ZIP entries
XZ (95) and Zstandard (93)Modern ZIP writersDecoded inside ZIP entries
Deflate64 (9) and PPMd (98)Older or specialised archivesDetected; copied unchanged by split, merge, edit and clean, but not decompressed
Native 7z streams.7z filesNot supported; detected and reported

Aback ZIP never uploads a file to decode a method it does not support. An unsupported entry is reported plainly instead of being silently skipped.

Names, timestamps and metadata

Both formats store more than file bytes. ZIP names are bytes plus a flag: bit 11 of the general-purpose flags marks UTF-8, and without it readers fall back to a legacy code page. That is one reason a ZIP made on one system can show garbled names on another; see Why ZIP file names are garbled. The built-in date and time fields use MS-DOS format with two-second precision.

7z stores Unicode names natively and keeps timestamps with higher precision. For Unix backups the bigger difference is permissions and symbolic links: TAR is usually the better carrier for those, and a ZIP to TAR converter carries permissions across where the formats allow it.

  • If file names matter to the recipient, open the archive before sending and check that they read correctly.
  • If names are sensitive, remember that neither ZIP AES nor ZipCrypto hides them; encrypting file names needs 7z header encryption or a different tool.
  • Do not rely on an archive's stored timestamp as evidence of when a file was created; it is metadata supplied by the writer and can be changed.

Checking what you have before you choose

If you already hold an archive, ZIP Viewer lists entries, methods, sizes and encryption without extracting them, so you can tell an ordinary Deflate ZIP from an unusual .zipx. For the format's hard size ceilings, see ZIP file size limits.

  1. Open the archive in a viewer and read the method column rather than trusting the extension.
  2. Look for an encryption marker: contents may be protected while the names stay readable.
  3. Note the entry count and largest file; these decide whether a 4 GB classic ZIP is even an option.
  4. Decide whether the recipient needs single-file access; if so, prefer ZIP's per-file structure.
  5. Only then choose the format and the compression level.

A short decision checklist

  1. Sending to someone you cannot advise? Use ZIP.
  2. Archiving text, code or logs for yourself and every megabyte matters? 7z is worth the extra step.
  3. Archiving photos, video or music? Use ZIP; the ratio difference is small.
  4. Need to hide the file list as well as the contents? 7z with header encryption.
  5. Need to recover one file from a damaged archive later? ZIP's per-file layout is safer.
  6. Need a browser tool to do the work? Aback ZIP handles ZIP, so convert a 7z first with a desktop app.

Once you have a ZIP, Create ZIP and Compress ZIP can build or rework it locally, with before-and-after sizes reported honestly.

Tools for this

Frequently asked questions

Usually, but not always. For already-compressed data such as JPEG, MP4 or PDF, both formats save very little and the sizes end up nearly identical.

More guides