Archive File Formats

Archive formats bundle files together and compress them — ZIP won for consumers, TAR.GZ won for developers, and RAR persists through sheer stubbornness.

Formats 16
Most common .7z, .arj, .bz2
About archive files

Archive formats do two things: bundle multiple files into one, and compress them to save space. Some do both (ZIP), some just bundle (TAR), and some just compress (GZIP). The format wars are largely over — ZIP won for consumers, TAR.GZ won for developers — but you'll still encounter RAR files from people who downloaded WinRAR in 2004 and never looked back.

The main differences are compression ratio and compatibility. 7Z compresses tightest but requires third-party software. RAR compresses well and adds recovery records. ZIP compresses least efficiently but opens natively on every operating system. For most people, that universal compatibility trumps a 15% size difference.

Security note: archive files from unknown sources are a common malware delivery method. The archive itself isn't dangerous — it's what's inside. Always scan extracted contents before running any executables, and be suspicious of password-protected archives from unknown senders (the password prevents your antivirus from scanning the contents).

All archive formats
Safety notes
.7z Use caution

Archive files from unknown sources may contain malware. Scan contents before extracting.

.cab Use caution

Archive format. Contents could include drivers or system files — only extract CAB files from trusted sources.

.jar Use caution

JAR files contain executable Java code. Only run JARs from trusted sources. Verify digital signatures when available.

.rar Use caution

RAR files from unknown sources may contain malware. Scan contents before extracting.

.tgz Use caution

Archive that may contain any files. Extract and inspect contents before running anything.

.war Use caution

Contains executable Java web application code. Only deploy WARs from trusted sources.

.zip Use caution

ZIP files from unknown sources may contain malware. Scan contents before extracting.

FAQ
What's the difference between ZIP and RAR?
ZIP opens natively on Windows, macOS, and Linux. RAR requires WinRAR, 7-Zip, or The Unarchiver. RAR typically compresses 10-30% better and supports recovery records. For sharing files, ZIP is more polite. For personal archiving, either works.
How do I open a 7Z file?
7-Zip (free, Windows) is the definitive tool. PeaZip (free, all platforms) also handles them. The Unarchiver (free, macOS) opens 7Z for extraction. Neither Windows nor macOS includes native 7Z support.
Which archive format has the best compression?
7Z (LZMA2) typically achieves the best compression ratios, followed by RAR, then ZIP. The difference matters most for large files or collections. For small files, the difference is negligible and ZIP's universal compatibility is more valuable.
Related categories