Use ZIP when the archive must open everywhere, 7z when you want an open format with efficient compression, and RAR when someone has already sent you one. The formats solve the same broad problem but differ in compatibility, metadata and how they handle groups of files.
Three containers, three histories
An archive format is a container: it stores file data plus names, sizes, timestamps and a table of contents. ZIP was specified by PKWARE in the APPNOTE and became the default on personal computers. RAR comes from RARLAB and is widely seen in files shared by people using WinRAR. 7z comes from the 7-Zip project and has published format documentation.
The container is only half the story. Inside it, each entry is compressed with a method: ZIP commonly uses Deflate, 7z often uses LZMA or LZMA2, and RAR uses its own codecs. A reader must understand both the container and the method before it can extract a file.
| Property | ZIP | RAR | 7z |
|---|---|---|---|
| Spec ownership | PKWARE APPNOTE, publicly documented | Proprietary to RARLAB | Documented by the 7-Zip project |
| Native support in Windows | Yes | No | No |
| Native support in macOS | Yes | No | No |
| Typical codec | Deflate | RAR-specific codecs | LZMA / LZMA2 |
| ZIP64-equivalent large archive support | Yes, ZIP64 | Yes | Yes |
| Unicode names | UTF-8 with a flag; legacy encodings still exist | Supported | UTF-16 in the format |
| Solid compression | Not a standard feature | Yes | Yes |
Compression: how much does the format matter?
Format comparisons often quote a single number from one test. That number depends on the files, the level and the implementation. A more useful approach is to look at what each method is good at.
- Compressible data: source code, logs, CSV files and XML respond well to every modern method. LZMA-based formats can exploit longer-distance repeats, which sometimes gives them an edge on large text corpora.
- Already-compressed data: JPEG, PNG, MP4, MP3, PDF and DOCX are poor candidates for further compression. The container choice barely changes the outcome.
- Solid mode: 7z and RAR can compress several files together, exploiting patterns across files. This helps large sets of related text files, but updating or extracting a single entry may require more decoding.
- Per-entry overhead: every format stores a header for each file. Lots of tiny files spend a fixed cost per entry, so the overhead can dominate the archive size.
If your aim is to make a folder smaller, start by looking at the contents. The article on why a ZIP is not getting smaller covers the common causes. Switching containers rarely fixes a folder full of photographs.
Compatibility is the deciding factor
An archive is only useful if the recipient can open it. ZIP wins here by a wide margin: it is understood by Windows Explorer, macOS Archive Utility, most Linux desktops and many phones. 7z and RAR need an application on the receiving machine unless the recipient already has one.
That is why the default advice is simple. Sending a set of documents to a mixed group: ZIP. Archiving a source tree that you will keep for years: 7z is reasonable if you are happy to keep a capable extractor around. Receiving a .rar from a colleague: use an extractor that supports RAR and, if you need to send it onward, repack it as ZIP. You can inspect a ZIP's entries before promising anyone that it will open cleanly.
Aback ZIP does not create or extract RAR or 7z archives. It reports those formats when it detects them rather than misreading them.
Encryption and what remains visible
All three formats have an encryption story, but it is not a uniform one. Traditional ZIP encryption, ZipCrypto, is weak. The WinZip AES extension is the usual choice for modern password-protected ZIPs. 7z uses AES-256, and RAR5 includes AES-256. In every case, the cipher protects contents, not the existence of the archive.
- Entry names and folder structure are generally readable without the password, so do not put secrets in file names.
- Folder-per-archive tricks do not hide names either; they only organise them.
- A password is only as strong as the phrase behind it. Reused or short passwords undermine a strong cipher.
- Compatibility matters: Windows Explorer opens ZipCrypto archives but not WinZip AES ones. Check the recipient's software first.
Aback ZIP can add AES-256 protection and can remove a password when you know it. It cannot guess or crack an unknown password. The AES-256 encryption explainer describes the threat model in more detail.
Large archives, repair and long-term storage
The classic ZIP limit of 4 GB per entry and 65,535 entries is lifted by ZIP64, which uses 64-bit fields. 7z and RAR have their own large-archive mechanisms. Support is not just about writing a large file: the reader must also understand the extended fields, or it will report a corrupt archive.
Repair is another area where formats differ. RAR implementations are known for recovery records. ZIP repair depends on how much of the central directory survived; a truncated file can still be scanned entry by entry. For any archive you care about, keep a separate hash and test it on another machine. Aback ZIP's Test ZIP Integrity checks CRCs and structure and reports what it finds.
Splitting is a separate question from format. Some tools produce numbered byte chunks that only work as a set; others produce smaller archives that each open independently. If the recipient will open parts one at a time, choose independent parts and understand that the distinction is about the archive structure, not the container format.
Choosing by scenario
| Scenario | Sensible choice | Why |
|---|---|---|
| Email a folder to a mixed group | ZIP | Opens almost everywhere without extra software |
| Send a password-protected document | ZIP with WinZip AES, or 7z | Strong encryption, provided the recipient can open it |
| Archive a large source tree for yourself | 7z | Open format with efficient handling of many text files |
| Receive and extract a RAR file | RAR with a capable extractor | That is the format you were sent |
| Store files for years | ZIP or 7z plus a separate checksum | Documented formats and a way to verify them later |
| Work entirely in a browser | ZIP or TAR-based formats | Those are what browser-local tools can handle |
If you want a fuller survey of the ecosystem, Archive formats explained covers TAR and the single-file compressors as well. The 7-Zip, WinRAR, WinZip and Windows comparison approaches the same question from the application side.