7-Zip
By Igor Pavlov
7-Zip is a free, open-source file archiver for Windows best known for its native 7z format, which typically achieves higher compression ratios than older formats like ZIP through its LZMA and LZMA2 algorithms. It also reads and writes many…
Definition
7-Zip is a free, open-source file archiver for Windows best known for its native 7z format, which typically achieves higher compression ratios than older formats like ZIP through its LZMA and LZMA2 algorithms. It also reads and writes many other archive formats, supports strong AES-256 encryption for password-protected archives, and is distributed under a permissive license that allows free use, modification, and redistribution.
Overview
7-Zip was created to address a specific gap: Windows had no built-in archiver that matched the compression efficiency researchers and power users could get from newer algorithms, and existing commercial tools like WinZip and WinRAR were not free or open source. Igor Pavlov released it in 1999 built around a custom compression method, LZMA, designed specifically to trade additional CPU time and memory for meaningfully smaller output files compared to the DEFLATE algorithm used by classic ZIP. Mechanically, 7-Zip's core is the 7z container format combined with the LZMA or newer LZMA2 codec, which uses a large dictionary size and a range coder to model byte sequences more precisely than DEFLATE's smaller window. The dictionary size and compression level are user-tunable, trading memory and speed for ratio, and LZMA2 splits data into chunks that can be compressed in parallel across multiple CPU cores, something the original LZMA could not do. The Windows client wraps this in a shell extension that integrates directly into Windows Explorer's right-click menu, alongside a standalone GUI and a command-line interface, `7z.exe`, usable in scripts and automation. Among file archivers, 7-Zip sits between the simplicity of built-in OS zip support and the commercial feature depth of WinRAR: it compresses more tightly than standard ZIP tools in most benchmarks and supports more formats for extraction than either, including RAR, ISO, and TAR, but its interface is plainer and it lacks some of WinRAR's polish, like built-in archive repair heuristics. Its AES-256 encryption with per-file or per-archive passwords also puts it ahead of plain ZIP's traditionally weaker default encryption. In practice, 7-Zip is used to compress backups and large file transfers where storage or bandwidth matters, to extract archives from many different sources since its format support is unusually broad, and to create password-protected archives for sharing sensitive files. Its command-line interface is commonly scripted into backup jobs, CI pipelines, and installer build processes on Windows, and the open-source LZMA SDK it publishes has been adopted by other tools and libraries far beyond 7-Zip itself. Limitations include that the official builds and full shell integration are Windows-first, though community ports like p7zip bring the format to Linux and macOS with less polish; compression at high levels can be noticeably slower and more memory-hungry than DEFLATE-based tools, which matters on constrained hardware; and while 7z archives support strong encryption for file contents, older versions did not encrypt file names by default unless that option was explicitly enabled, a detail worth checking when sharing sensitive archives.
Key Features
- Native 7z format using the high-ratio LZMA and LZMA2 algorithms
- Reads and writes ZIP, TAR, GZIP, and many other archive formats
- AES-256 encryption available for both file contents and file names
- Multi-core compression support through LZMA2's chunked design
- Windows Explorer shell integration for right-click archive operations
- Standalone command-line interface for scripting and automation
- Free and open source under a permissive license
- Adjustable dictionary size and compression level for speed-versus-ratio tuning