For a 1 GB folder of mixed content (documents, images, code):
| Format | File size | Compression time |
|---|
| Uncompressed | 1.0 GB | Reference |
| ZIP (default) | 720 MB | 30 seconds |
| ZIP (max compression) | 690 MB | 90 seconds |
| RAR (default) | 660 MB | 60 seconds |
| RAR (best) | 640 MB | 180 seconds |
| 7z (default) | 580 MB | 120 seconds |
| 7z (ultra) | 540 MB | 360 seconds |
7z produces the smallest files. ZIP is fastest but largest. RAR is middle on both axes.
For specialized content:
| Content type | Best compressor |
|---|
| Plain text | 7z (text compresses very well) |
| Source code | 7z |
| JPG photos | None (already compressed) |
| Office documents (XLSX, DOCX) | None (already ZIP) |
| Movies/MP3 | None (already compressed) |
| Database files | 7z (high compression) |
| Disk images (raw) | 7z |
For already-compressed content (videos, JPGs, MP3): no archive format adds meaningful compression.
| OS | ZIP | RAR | 7z |
|---|
| Windows | Native (since XP) | Read with WinRAR/7-Zip | 7-Zip (free) |
| macOS | Native (Finder) | Free apps | The Unarchiver, etc. |
| Linux | unzip / zip | unrar (closed) / unrar-free | p7zip |
| iOS | Files app | Documents app | Documents app |
| Android | Default file manager | RAR | ZArchiver |
For broadest compatibility: ZIP. For "everyone has the tool": ZIP.
| Format | Encryption support |
|---|
| ZIP (legacy) | ZipCrypto (weak, broken) |
| ZIP (modern) | AES-256 (strong) |
| RAR | AES-256 (strong) |
| 7z | AES-256 (strong) |
For sensitive content: 7z or RAR with AES-256. ZIP's modern AES-256 is also fine, but legacy ZipCrypto is broken (don't use for security).
For password protection in 7z:
7z a -p"YourPassword" -mhe=on archive.7z files/
-mhe=on encrypts the file headers (filenames hidden). Only with password.
| Algorithm | Status |
|---|
| AES-256 | Strong, current standard |
| AES-192 | Strong |
| AES-128 | Strong |
| ZipCrypto | Broken since 2003 |
| 3DES | Deprecated |
For new encrypted archives: AES-256 in 7z, RAR, or modern ZIP.
For broader archival considerations, see FFV1 Archival Codec.
For splitting large archives:
# Split into 100 MB volumes
7z a -v100m archive.7z files/ # Output: archive.7z.001, .002, etc.
# Reassemble (just reference first volume)
7z x archive.7z.001
For 7z and RAR: built-in. For ZIP: requires specific tools that support split ZIPs.
For email transfer of large content: split into under 25 MB volumes (Gmail attachment limit).
7z and RAR support "solid" archives (compress all files as if they were one big file):
| Mode | Compression | Random access |
|---|
| Non-solid | OK | Fast |
| Solid | Better (10-30%) | Slow |
For backup archives where you'll extract everything: solid. For libraries where you'll extract specific files: non-solid.
ZIP:
- Universal compatibility
- Fastest decompression
- Built into every OS
RAR:
- Recovery records (heal partial corruption)
- Multi-volume archives
- Advanced compression for source code
- Proprietary but well-supported
7z:
- Open source
- Best compression overall
- Strong encryption
- Multiple compression algorithms (LZMA, LZMA2, PPMd, Bzip2)
| Use case | Best format |
|---|
| Email attachment | ZIP (universal) |
| Software distribution | ZIP (Windows), TAR.GZ (Linux) |
| Backup archive | 7z (best compression) |
| Encrypted personal files | 7z or RAR |
| Server logs archive | 7z (text compresses well) |
| Game mod distribution | RAR (community standard) |
| Video file batch | ZIP (compression won't help) |
| Source code | 7z |
| Cross-platform sharing | ZIP |
For most casual use: ZIP. For backup or sensitive content: 7z.
For ZIP (limited):
# WinRAR or 7-Zip can produce split ZIPs
# Command-line:
zip -s 100m archive.zip files/ # Output: archive.zip, archive.z01, archive.z02
For 7z:
7z a -v100m archive.7z files/
For RAR:
rar a -v100m archive.rar files/
For batch processing patterns, see Batch Processing Files Guide.
For backup workflows where speed matters:
# 7z fastest (less compression)
7z a -mx=1 archive.7z files/
# 7z balanced
7z a -mx=5 archive.7z files/ # default
# 7z maximum (slow)
7z a -mx=9 archive.7z files/
Compression levels 0-9. Higher = smaller files, slower encoding. For backups: 5 (default) is the production sweet spot.
| Format | CRC | Recovery |
|---|
| ZIP | CRC-32 (reasonable) | Limited |
| RAR | CRC + Recovery Record | Yes |
| 7z | CRC | Limited |
RAR's recovery records can repair partially corrupted archives. Important for long-term archives where storage may degrade.
For long-term archival, see FFV1 Archival Codec.
Cannot open RAR on Mac: Mac doesn't ship unrar. Install The Unarchiver or 7-Zip Mac.
ZIP password fails: case sensitivity, character encoding. Try variations.
7z files corrupted halfway through: solid archive corruption. Use non-solid mode for resilience.
Cross-platform encoding issues: file names with special characters. Use UTF-8 encoding when creating ZIP.
Multi-volume archive missing parts: all volumes must be present for extraction. Verify completeness.
For batch processing, see Batch Processing Files Guide.
For maximum compression: yes. For broadest compatibility (every OS): ZIP. For RAR ecosystem (gaming, software): RAR.
WinRAR is shareware (free trial, then paid). The unrar tool is free. Creating RAR archives requires WinRAR (paid) on most platforms.
Linux/Unix standard. TAR + gzip compression. Roughly equivalent to ZIP in size. Standard for Linux package distribution.
For TAR.GZ context, see Archive Formats.
Modern AES-256 in 7z, RAR, and modern ZIP is secure. Legacy ZipCrypto is broken. For sensitive content: AES-256.
7-Zip's -sfx flag creates self-extracting EXE. Useful for delivering archives to non-technical users:
7z a -sfx archive.exe files/
Recipient runs the EXE; archive extracts automatically.
ZIP and 7z: yes (add to archive). RAR: yes (with WinRAR). Useful for incremental backups.
For archive format choice in 2026: ZIP for universal compatibility, 7z for best compression, RAR for game mod distribution and recovery records. AES-256 encryption for sensitive content. Multi-volume archives for email-friendly chunks. Our video converter and document converter handle related conversions.