Archive & Compression — Complete Guide
Last updated: · Artur Aleksander Kozak
Compressed archives reduce file sizes for transfer and storage, and bundle multiple files into a single distributable package. ZIP is the universal standard natively supported by all operating systems; 7z offers the best compression; TAR.GZ is the Unix/Linux standard; RAR is widespread on Windows. Choosing the right format depends on the use case: maximum compatibility, maximum compression, or preservation of Unix metadata.
History & Background
ZIP was created by Phil Katz and Gary Conway in 1989 with PKZIP, using the DEFLATE algorithm — a combination of LZ77 and Huffman coding. Katz released the specifications as public domain, enabling wide adoption. The .gz format (gzip, 1992) brought DEFLATE to the Unix world. RAR (Roshal ARchive) was developed by Eugene Roshal in 1993 — more efficient than ZIP but proprietary.
7-Zip and the 7z format were created by Igor Pavlov in 1999 using the LZMA algorithm (Lempel-Ziv-Markov chain Algorithm) — 30–70% superior compression compared to ZIP for text files. TAR (Tape Archive, 1979) does not compress by itself but packages files preserving Unix metadata (permissions, owner, symlinks); compression is added by gzip (.tar.gz), bzip2 (.tar.bz2) or xz (.tar.xz).
Units & Reference Values
| Unit | Equivalent | Common use |
|---|---|---|
| .zip | DEFLATE, 1989 | Universal, native OS support |
| .tar.gz (.tgz) | TAR + gzip/DEFLATE | Linux/Unix standard, open source software |
| .tar.bz2 | TAR + bzip2/BWT | Better compression than gzip, slower |
| .tar.xz | TAR + xz/LZMA2 | Best Linux compression, kernel/distros |
| .7z | LZMA2, open-source | Best compression ratio, 7-Zip only |
| .rar | RAR4/RAR5, proprietary | Widespread on Windows, recovery record |
Did you know?
- 7z with LZMA2 typically achieves 30–70% better compression than ZIP for text files — the difference depends heavily on data type.
- DEFLATE (used in ZIP, gzip, PNG) is ubiquitous: every time you open a gzip-compressed web page or view a PNG you're using DEFLATE.
- TAR does not compress by itself — the name "tape archive" recalls its origins in Unix magnetic tapes of the 1970s. Compression is optional and separate.
- RAR files with "recovery record" can repair corrupted data — useful for archives distributed over unreliable channels like Usenet or interrupted downloads.
Other Guides
eBook Converter HEIC Converter GIF Maker Online Image Editor Length & Distance Converter Area Converter
Home · All Guides · About Us · What's new · Contact · Privacy Policy
Language: Italiano · English · Español · Français · Deutsch · Português · 中文 · 日本語