Hubbry Logo
7-Zip7-ZipMain
Open search
7-Zip
Community hub
7-Zip
logo
8 pages, 0 posts
0 subscribers
Be the first to start a discussion here.
Be the first to start a discussion here.
7-Zip
7-Zip
from Wikipedia

7-Zip
DeveloperIgor Pavlov[1]
Initial release2 January 1999; 26 years ago (1999-01-02)[2]
Stable release25.01 Edit this on Wikidata (3 August 2025; 2 months ago (3 August 2025))
Preview release24.09 (29 November 2024; 10 months ago (2024-11-29)) [±][3]
Repository
Written inAssembly, C and C++[4]
Operating systemWindows/ReactOS,[5] BSD, macOS, Linux,[6]
Size1.1–1.7 MB[7]
Available in89 languages[8]
List of languages

Afrikaans, Albanian, Arabic, Aragonese, Armenian, Asturian, Azerbaijani, Bangla, Bashkir, Basque, Belarusian, Breton, Bulgarian, Catalan, Chinese Simplified, Chinese Traditional, Corsican, Croatian, Czech, Danish, Dutch, English, Esperanto, Estonian, Extremaduran, Farsi, Finnish, French, Frisian, Friulian, Galician, Georgian, German, Greek, Gujarati, Indian, Hebrew, Hindi, Indian, Hungarian, Icelandic, Ido, Indonesian, Irish, Italian, Japanese, Kabyle, Karakalpak - Latin, Kazakh, Korean, Kurdish - Sorani, Kurdish, Kyrgyz, Latvian, Ligurian, Lithuanian, Macedonian, Malay, Marathi, Mongolian (MenkCode), Mongolian (Unicode), Mongolian, Nepali, Norwegian Bokmal, Norwegian Nynorsk, Pashto, Polish, Portuguese Brazilian, Portuguese Portugal, Punjabi, Indian, Romanian, Russian, Sanskrit, Indian, Serbian - Cyrillic, Serbian - Latin, Sinhala, Vietnam, Slovak, Slovenian, Spanish, Swedish, Tamil, Tatar, Thai, Turkish, Ukrainian, Uyghur, Uzbek, Valencian, Vietnamese, Welsh, Yoruba

These translations are partial and for the user interface only. Help and documentations are in English.

TypeFile archiver
LicenseLGPL-2.1-or-later with unRAR restriction[9] / LZMA SDK in the public domain[10]
Website7-zip.org Edit this on Wikidata

7-Zip is a free and open-source file archiver, a utility used to place groups of files within compressed containers known as "archives". It is developed by Igor Pavlov and was first released in 1999.[2] 7-Zip has its own archive format called 7z introduced in 2001,[11] but can read and write several others.

The program can be used from a Windows graphical user interface that also features shell integration, or from a command-line interface as the command 7z that offers cross-platform support (see versions for details). An obsolete port of 7-Zip to POSIX systems was called p7zip.[12] Most of the 7-Zip source code is under the LGPL-2.1-or-later license; the unRAR code, however, is under the LGPL-2.1-or-later license with an "unRAR restriction", which states that developers are not permitted to use the code to reverse-engineer the RAR compression algorithm.[13][14]

Since version 21.01 alpha, Linux support has been added to the 7zip project.[6]

Archive formats

[edit]

7z

[edit]

By default, 7-Zip creates 7z-format archives with a .7z file extension. Each archive can contain multiple directories and files. As a container format, security or size reduction are achieved by looking for similarities throughout the data using a stacked combination of filters. These can consist of pre-processors, compression algorithms, and encryption filters.

The core 7z compression uses a variety of algorithms, the most common of which are bzip2, PPMd, LZMA2, and LZMA. Developed by Pavlov, LZMA is a relatively new system, making its debut as part of the 7z format. LZMA uses an LZ-based sliding dictionary of up to 3840 MB in size, backed by a range coder.[15]

The native 7z file format is open and modular. File names are stored as Unicode.[16]

In 2011, TopTenReviews found that the 7z compression was at least 17% better than ZIP,[17] and 7-Zip's own site has since 2002 reported that while compression ratio results are very dependent upon the data used for the tests, "Usually, 7-Zip compresses to 7z format 30–70% better than to zip format, and 7-Zip compresses to zip format 2–10% better than most other zip-compatible programs."[18]

The 7z file format specification is distributed with the program's source code, in the "doc" sub-directory.

Others

[edit]

7-Zip supports a number of other compression and non-compression archive formats (both for packing and unpacking), including ZIP, gzip, bzip2, xz, tar, and WIM. The utility also supports unpacking APM, ar, ARJ, chm, cpio, deb, FLV, JAR, LHA/LZH, LZMA, MSLZ, Office Open XML, onepkg, RAR, RPM, smzip, SWF, XAR, and Z archives and cramfs, DMG, FAT, HFS, ISO, MBR, NTFS, SquashFS, UDF, and VHD disk images. 7-Zip supports the ZIPX format for unpacking only. It has had this support since at least version 9.20, which was released in late 2010. 7-Zip added support for RAR5 in 2015.[19]

7-Zip can open some MSI files, allowing access to the meta-files within along with the main contents. Some Microsoft CAB (LZX compression) and NSIS (LZMA) installer formats can be opened. Similarly, some Microsoft executable programs (.EXEs) that are self-extracting archives or otherwise contain archived content (e.g., some setup files) may be opened as archives.

When compressing ZIP or gzip files, 7-Zip uses its own DEFLATE encoder, which may achieve higher compression, but at lower speed, than the more common zlib DEFLATE implementation. The 7-Zip deflate encoder implementation is available separately as part of the AdvanceCOMP suite of tools.

The decompression engine for RAR archives was developed using freely available source code of the unRAR program, which has a licensing restriction against creation of a RAR compressor. 7-Zip v15.06 and later support extraction of files in the RAR5 format.[20] Some backup systems use formats supported by archiving programs such as 7-Zip; e.g., some Android backups are in tar format, and can be extracted by archivers such as 7-Zip.[21]

Some forks add more formats.

File manager

[edit]

7-Zip comes with a file manager along with the standard archiver tools. The file manager has a toolbar with options to create an archive, extract an archive, test an archive to detect errors, copy, move, and delete files, and open a file properties menu exclusive to 7-Zip. The file manager, by default, displays hidden files because it does not follow Windows Explorer's policies. The tabs show name, modification time, original and compressed sizes, attributes, and comments (4DOS descript.ion format).

When going up one directory on the root, all drives, removable or internal appear. Going up again shows a list with four options:

  • Computer: loads the drives list
  • Documents: loads user's documents, usually at %UserProfile%\My Documents
  • Network: loads a list of all network clients connected
  • \\.: Same as "Computer" except loads the drives in low-level filesystem access. This results in critical drive files and deleted files still existing on the drive to appear. (NOTE: As of November 2020, access to the active partition in low-level mode is not allowed for currently unknown reasons.)

Features

[edit]

7-Zip supports:

  • 32- and 64-bit x86, ARM64 architecture
  • File Manager
  • Encryption via the 256-bit AES cipher, which can be enabled for both files and the 7z hierarchy. When the hierarchy is encrypted, users are required to supply a password to see the filenames contained within the archive. WinZip-developed Zip file AES encryption standard is also available in 7-Zip to encrypt ZIP archives with AES 256-bit, but it does not offer filename encryption as in 7z archives.[22]
  • Volumes of dynamically variable sizes, allowing use for backups on removable media such as writable CDs and DVDs
  • Usability as a basic orthodox file manager when used in dual panel mode
  • Multiple-core CPU threading[23]
  • Opening EXE files as archives, allowing the decompression of data from inside many "Setup" or "Installer" or "Extract" type programs without having to launch them
  • Unpacking archives with corrupted filenames, renaming the files as required
  • Create self-extracting single-volume archives
  • Command-line interface[24]
  • Graphical user interface. The Windows version comes with its own GUI. For various Unix-like systems, several GUIs, e.g. PeaZip, can handle the 7z file format based on the Unix binaries.[25]
  • Calculating checksums in the formats CRC-32, CRC-64, SHA-1, or SHA-256 for files on disk, available either via command line or Explorer's context menu[2]
  • Available in 89 languages
  • Ability to optionally record creation dates (tc) and last access dates (ta) in archives (in addition to modification dates).[26]

Versions

[edit]

Three command-line versions are provided: 7z (7z.exe), using external libraries to support a large number of different formats and the ability to support even more formats via plug-ins; 7za (7za.exe), which is a standalone executable containing built-in modules, but with compression/decompression support limited to 7z, ZIP, gzip, bzip2, Z and tar formats; and 7zr (7zr.exe), which is a minimized standalone executable with compression/decompression support limited to just the 7z format. A 64-bit version is available, with support for large memory maps, leading to faster compression. All versions support multi-threading.

Forks

[edit]
  • p7zip is a deprecated port of 7-Zip to Unix-like operating systems (including Linux, FreeBSD, and macOS), FreeDOS, OpenVMS, AmigaOS 4, and MorphOS. Since support for Unix-like operating systems has officially been added to upstream 7-Zip in version 21.01, the p7zip fork has become obsolete and is no longer updated; the last available version of p7zip is 16.02.[12]
    • In most Linux distributions, the command p7zip is now merely a wrapper that calls the standard 7za or 7zr program.[27]
  • 7-zip ZS is a fork with Zstandard and various other compression algorithms added to the file format.[28]
    • p7zip-zstd (p7zip with zstd) is p7zip with ZS additions.[29]
  • NanaZip is a fork integrating changes from many sources, modernized for the Microsoft Store.[30]

Plugins

[edit]

7-zip comes with a plug-in system for expansion. The official "Links" page points to many plugins written by TC4Shell, providing extra file support.[31]

Software development kit

[edit]

7-Zip has a LZMA SDK which was originally dual-licensed under both the GNU LGPL and Common Public License,[32] with an additional special exception for linked binaries. On 2 December 2008, the SDK was placed by Igor Pavlov in the public domain.[10]

Security

[edit]

On older versions, self-extracting archives were vulnerable to arbitrary code execution through DLL hijacking: they load and run a DLL named UXTheme.dll, if it is in the same folder as the executable file.[33][34][35] 7-Zip 16.03 Release notes say that the installer and SFX modules have added protection against DLL preloading attack.[2]

Versions of 7-Zip prior to 18.05 contain an arbitrary code execution vulnerability in the module for extracting files from RAR archives (CVE-2018-10115), a vulnerability that was fixed on 30 April 2018.[36]

Versions prior to 23.0 also contained an arbitrary code execution vulnerability, fixed on 7 May 2023.[37] A year later, a severe remote code execution vulnerability was found on versions prior to 24.07 (CVE-2024-11477), it was fixed on 20 November 2024.[38]

Reception and usage

[edit]

Snapfiles.com in 2012 rated 7-Zip 4.5 stars out of 5, noting, "[its] interface and additional features are fairly basic, but the compression ratio is outstanding".[39]

On TechRepublic in 2009, Justin James found the detailed settings for Windows File Manager integration were "appreciated" and called the compression-decompression benchmark utility "neat". And though the archive dialog has settings that "will confound most users", he concluded: "7-Zip fits a nice niche in between the built-in Windows capabilities and the features of the paid products, and it is able to handle a large variety of file formats in the process."[40]

Between 2002 and 2024, 7-Zip was downloaded 428 million times from SourceForge alone.[41]

The software has received awards, In 2007, SourceForge granted it community choice awards for "Technical Design" and for "Best Project".[42] In 2013, Tom's Hardware conducted a compression speed test comparing 7-ZIP, MagicRAR, WinRAR, WinZip; they concluded that 7-ZIP beat out all the others with regards to compression speed, ratio, and size and awarded the software the 2013 Tom's Hardware Elite award.[43]

See also

[edit]

References

[edit]
[edit]
Revisions and contributorsEdit on WikipediaRead on Wikipedia
from Grokipedia
7-Zip is a free and open-source software program designed for creating and extracting compressed archives, renowned for its high compression ratios, especially in its native format which employs LZMA and LZMA2 algorithms. Developed by Russian programmer Igor Pavlov and first released in 1999, 7-Zip operates primarily on Microsoft Windows but officially supports and macOS (console versions) since 2021, alongside ports like p7zip. The software supports packing and unpacking numerous formats, including , XZ, , , , and ZIP for full operations, while offering extraction-only support for over 20 additional formats such as RAR, CAB, ISO, and images. Key features include AES-256 encryption for secure archiving, integration with the for seamless file management, a built-in , , and multilingual support in 87 languages, making it a versatile tool for data compression and tasks. Licensed under the GNU Lesser General Public License (LGPL) for most components, with some parts under BSD and unRAR restrictions, 7-Zip remains actively maintained, with the latest stable version 25.01 released on August 3, 2025.

Development and History

Origins and Creator

7-Zip was created by Igor Pavlov, a freelance software developer known for his work on compression technologies. The project began as an open-source initiative to develop a with superior compression performance compared to existing tools. Pavlov designed and implemented the core components, including early support for multiple archive formats such as and . Development of 7-Zip commenced in late 1998, with the initial beta version, labeled 2.00 Beta 1, released on January 2, 1999. This early release focused on basic archiving functions, including compression and extraction for formats like and , with the stable version fixing bugs related to file path handling. The software was hosted on starting in November 2000, facilitating community access and contributions under the GNU Lesser General Public License (LGPL) for most code, with some parts under the BSD 3-Clause License. The first stable release, version 2.00, arrived on July 18, 1999, introducing improvements such as enhanced compression and decompression speeds and the addition of command-line options like -mx for compression level control. Pavlov's solo development effort emphasized efficiency and openness, positioning 7-Zip as a free alternative to archivers. Over the years, he has continued to update the software, incorporating new features while maintaining its lightweight footprint. The archive format, featuring LZMA compression, was introduced in version 3.00 in 2001.

Release Timeline

7-Zip's development has seen steady releases since its inception, with updates focusing on enhanced compression algorithms, broader format support, improvements, and platform compatibility. The project maintains a on its official website detailing changes across versions. The following table outlines key stable releases, highlighting major milestones in the timeline:
VersionRelease DateKey Changes and Features
2.00July 18, 1999First stable release with improved compression/decompression speed for and , fixed direct path compression bug, and added -mx switch for compression level.
4.20May 30, 2005Minor release with no major changes noted.
4.65February 3, 2009Added SHA-256 checksum calculation in the File Manager.
9.20November 18, 2010Support for TAR files larger than 8 GB, improved NSIS and WIM support, partial parsing for EXE resources, and bug fixes.
15.14December 31, 2015File Manager improvements and added Yoruba localization.
18.06December 30, 2018LZMA/LZMA2 compression speed increased by 3-10%.
19.00February 21, 2019Enhanced 7z encryption with 128-bit initialization vectors and improved pseudo-random number generation.
21.07December 26, 2021Support for VHDX extraction and new command-line switches.
23.01June 20, 2023ARM64 filter for improved compression on ARM processors, better UDF and cpio support.
24.09November 29, 2024Added SHA-512, SHA-384, SHA3-256, and MD5 hash support.
25.01August 3, 2025Improved symbolic link handling for (addressing CVE-2025-55188) and support for over 64 CPU threads.
Between major versions, numerous beta releases addressed bugs, added format compatibilities (e.g., RAR 5.0 in 2015), and refined multi-threading, but stable updates have prioritized impactful enhancements like and performance.

Supported Archive Formats

The 7z Format

The format is an openly documented archive file format developed by Igor Pavlov for use with the 7-Zip archiver, introduced in 1999 to achieve high compression ratios while supporting flexible compression algorithms and strong features. It employs an that allows integration of various compression methods, making it extensible for future enhancements without altering the core structure. Unlike traditional formats like ZIP, prioritizes efficiency for large datasets, supporting individual files up to 16 exabytes (16,000,000,000 GB) and file names for international compatibility. Key features of the 7z format include , where multiple files are treated as a single continuous to improve overall ratios, and compressed headers to reduce metadata overhead. It also incorporates AES-256 encryption for securing contents and passwords, derived using a SHA-256-based with multiple iterations to enhance resistance against brute-force attacks. The format's design emphasizes little-endian byte order and variable-length integer encoding for compact representation of sizes and offsets, enabling efficient handling of massive archives.

Compression Methods and Filters

The 7z format supports multiple compression algorithms, selected via codec IDs in the archive structure, with LZMA serving as the default for its balance of ratio and speed. LZMA (Lempel–Ziv–Markov chain algorithm) uses an optimized LZ77 variant with a dictionary size up to 4 GB, achieving compression speeds of 2–8 MB/s and decompression speeds of 30–100 MB/s on a 4 GHz CPU, while requiring minimal decompression code (~5 KB). LZMA2 extends this with multithreading support and better handling of incompressible data. Other methods include PPMd (prediction by partial matching with Dmitry Shkarutski's PPMdH variant), BZip2 (Burrows–Wheeler transform), and a copy method for uncompressed storage. Pre-processing filters enhance compression for specific data types by rearranging or transforming streams before the main :
Filter IDDescriptionTarget Data Type
BCJ (0x03030103)Converts 32-bit x86 calls/jumps to relative offsetsx86 executables
BCJ2 (0x0303011B)Branch-call-jump filter for improved x86 handlingx86 executables
(0x03030105)ARM Thumb decompressorARM executables
ARM64 (0x03030107)ARM64 filterARM64 executables
PPC (0x03030201)PowerPC filterPowerPC executables
(0x03030104) filterIA64 executables
(0x03030106)SPARC filterSPARC executables
(0x03030108)RISC-V filterRISC-V executables
Delta (0x03)Byte-level Audio/WAV files
Swap2/Swap4 (0x04/0x05) swapping for 16/32-bit valuesMulti-byte data
These filters are applied in a chain defined by the archive's folder structure, where each folder specifies up to five coders with input/output stream bindings.

File Structure

A 7z archive begins with a fixed 32-byte Signature Header for identification and integrity: the magic bytes {'7', 'z', 0xBC, 0xAF, 0x27, 0x1C} (version 0.04), followed by CRC-32 of the Start Header, offset to the next header (UINT64), its size (UINT64), and CRC-32. After the Start Header, the main body consists of the packed data streams (compressed file contents), followed by the End Header, which contains the (possibly encoded) main Header describing the archive contents and using a stream of Property IDs (e.g., 0x01 for Header, 0x06 for PackInfo). The Header organizes data into PackInfo (packed stream sizes and CRCs), CodersInfo (compression folders with codec IDs, properties, and stream bindings), and SubStreamsInfo (unpacked sizes and folder CRCs). FilesInfo details the unpacked files, including counts, empty file flags, and properties like names (0x01 ID, UTF-16LE encoded), timestamps (CTime/ATime/MTime as 64-bit Windows FILETIME), and attributes (Win32 flags). Packed streams are divided into folders, each processing input via specified coders (e.g., LZMA ID 0x030101) with properties like dictionary size, and bind pairs to link output to input of subsequent coders. For encrypted archives, the header itself may be packed and encoded, using the same AES-256 mechanism with a header-specific key derived from the password. This modular structure allows 7z archives to remain compact and verifiable, with CRC-32 checksums ensuring across streams and the entire archive.

Additional Formats

7-Zip provides extensive support for numerous archive formats beyond its native 7z format, enabling users to create, extract, and manage files across various compression standards commonly used in computing. This versatility stems from the software's design as a free, open-source utility that integrates with established file archiving protocols, allowing seamless with other tools and systems. For formats that support both packing (creation) and unpacking (extraction), 7-Zip handles XZ, , , , ZIP, and WIM archives. These include widely adopted standards like ZIP, which is ubiquitous in cross-platform due to its balance of compression efficiency and compatibility, and , often used for and Unix-based data streams. serves as a foundational container for bundling files, frequently combined with compression methods like or in these implementations. WIM, specific to Windows imaging, facilitates deployment and backup operations in environments. This dual support ensures 7-Zip can serve as both a and decompressor in workflows involving these formats. In addition to creation capabilities, 7-Zip offers read-only unpacking for an even broader array of formats, including , AR (Debian package archives), ARJ (an older compression format), CAB (Microsoft Cabinet files), CHM (Compiled HTML Help files), CPIO (Unix tape archives), CramFS (compressed read-only file systems), DMG (macOS disk images), EXT (Linux file systems), FAT (File Allocation Table), GPT (GUID Partition Table), HFS (Hierarchical File System for macOS), , , LZH (Lempel-Ziv-Huffman compression), LZMA (Lempel-Ziv-Markov chain algorithm streams), , MSI (Windows Installer packages), NSIS (Nullsoft Scriptable Install System), , QCOW2 (QEMU Copy-On-Write version 2 images), RAR (Roshal Archive, a proprietary format), RPM (Red Hat Package Manager), , , , VDI (VirtualBox disk images), VHD (Virtual Hard Disk), VHDX (enhanced Virtual Hard Disk), , XAR (eXtensible ARchive for macOS), , and ZSTD (Zstandard archives). This read-only access is particularly valuable for extracting legacy or specialized files without needing proprietary software, such as unpacking RAR archives—a format dominant in multimedia distribution—or images for software installation media. By supporting these, 7-Zip acts as a universal extractor, reducing dependency on multiple specialized tools. The inclusion of and formats like , , EXT, APFS, HFS, and various virtual disk types (VDI, VHD, VMDK) extends 7-Zip's utility to mounting and browsing virtual environments or forensic analysis scenarios, though limited to extraction rather than full manipulation. Similarly, support for package formats such as RPM, DEB-related AR, and MSI aids in and installation verification. Overall, this comprehensive format compatibility, updated across versions to maintain , underscores 7-Zip's role as a robust, no-cost alternative in file management ecosystems.

User Interface and Tools

Graphical File Manager

The 7-Zip File Manager serves as the primary (GUI) for the 7-Zip archiver, providing a dual-panel windowed application for file and archive management on Windows systems. It enables users to browse local and network folders, manipulate files, and perform compression and extraction tasks without relying on the command line. The interface integrates seamlessly with the , allowing context menu access from Explorer, and supports keyboard shortcuts for efficient navigation. As of version 25.01, it includes localizations for 87 languages. The main window features two side-by-side panels, switchable via the Tab key, displaying file lists in formats such as large icons, small icons, list, or details view (toggleable with Ctrl+1 through Ctrl+4). Navigation includes access to root-level items like Computer (for drives), (user's My Documents), Network, and low-level disk access via \. for viewing partitions or copying ISO files (requiring administrator rights for certain operations). Users can refresh views (Ctrl+R), sort by name, type, date, or (Ctrl+F3 for name), and manage selections with options like select all (Shift+Grey+), deselect all (Shift+Grey-), or invert (Grey*). The toolbar provides quick buttons for common actions, including opening files (Enter), renaming (F2), creating folders (F7), and viewing properties (Alt+Enter). Recent updates include improved drag-and-drop support (added in version 23.00). Archive operations are central to the File Manager's functionality, with dedicated tools for creating, extracting, and editing directly in the GUI. To create an archive, users select files or folders and click the "Add" , opening a dialog to specify format (e.g., , ZIP), compression level, method (LZMA, LZMA2), dictionary size, and options like AES-256 passwords. Extraction uses the "Extract" or drag-and-drop, supporting formats such as , ZIP, RAR, , , and many others for unpacking, with prompts for large-memory RAR files. Additional features include splitting files into volumes, combining split archives, creation, and benchmarking compression/decompression speeds via the Tools menu to assess hardware . In version 24.04, a new "Tools / Delete Temporary Files..." menu item was added for managing temporary files. Drag-and-drop within panels avoids temporary files for extractions, enhancing efficiency. Customization options are accessible through the Tools > Options dialog, allowing users to integrate 7-Zip into shell menus (with cascading or support), associate file extensions (e.g., .7z, .zip) for current or all users, and set temporary folder paths for . The interface supports real file icons, full row selection, grid lines, and single-click opening, with toggles for system menu integration and large memory pages on compatible systems (1 GB+ RAM, x64 or later). Language selection from 87 available localizations is also configurable, ensuring across regions. In version 22.00, the "Options" window in "Add to " added metadata selection and an option to not change source files' last access time. Plugins for extended functionality, such as additional format support, can be loaded via the options.

Command-Line Interface

The command-line interface (CLI) of 7-Zip is provided by the executable 7z.exe, which serves as a powerful tool for archiving and compression tasks directly from or scripts. It leverages the core 7z.dll library from the 7-Zip package, enabling operations on a wide range of archive formats including , ZIP, , , and others. Unlike the , the CLI emphasizes automation, scripting, and integration into batch processes, supporting features like , password protection, and multi-volume archives. As of version 25.01, it supports absolute pathnames and simplified syntax for adding folders. The general syntax for 7z.exe follows the structure 7z <command> [<switches>] <archive_name> [<files>], where the command specifies the operation, switches modify behavior, and arguments include wildcards, filenames, or list files (denoted as @filename). Commands are case-insensitive, and wildcards such as * (for any characters) and ? (for single characters) allow flexible file selection; if no files are specified, all files in the current directory are processed by default. This syntax supports via -si (standard input) and -so (standard output) for advanced scripting. Key commands include:
  • a (Add): Adds files or folders to a new or existing , supporting with the -r switch. For example, 7z a -t7z archive.7z *.doc -mx9 creates a highly compressed of all .doc files using maximum compression level. It can also generate self-extracting archives with -sfx.
  • d (Delete): Removes specified files from an without altering others, useful for maintenance. Syntax: 7z d archive.7z unwanted.txt.
  • e (Extract): Extracts files from an to the current directory, ignoring full paths (use x for path preservation). Example: 7z e archive.7z -oC:\output extracts to a specified folder.
  • l (List): Displays the contents of an , including sizes, dates, and attributes. 7z l archive.7z provides a detailed verbose listing.
  • t (Test): Verifies the integrity of an by checking for corruption or errors. 7z t archive.7z reports any issues found.
  • u (Update): Adds, replaces, or deletes files in an existing based on timestamps or criteria. Example: 7z u archive.7z newfile.txt updates if newer.
Additional commands like b (Benchmark) test compression/decompression speeds on the system, and h (Hash) computes checksums for files. Essential switches enhance functionality across commands. The -mx[<value>] switch sets compression level (0 for store only, 9 for ultra), balancing speed and ratio—e.g., -mx9 achieves the highest compression but is CPU-intensive. The -p<password> switch enables AES-256 encryption for secure archives. Output directory is controlled via -o<directory>, recursion with -r, and exclusions with -x!<pattern> (e.g., -x!.git skips Git folders). Archive type is specified by -t{type} (default 7z), and volumes with -v<size> for splitting large files. The -y switch assumes "yes" to all prompts for non-interactive use, ideal for scripts. Recent additions include switches like -myv, -myfa, -myfd for 7z archive compatibility and filter control (version 24.05). Exit codes (0 for success, 1 for warning, 2+ for errors) allow error handling in automation. A standalone variant, 7za.exe, operates independently without external DLLs, supporting only core formats like 7z, ZIP, , , , and CAB, making it suitable for minimal environments or portable use. While primarily designed for Windows, the CLI is adaptable via ports like p7zip for systems, maintaining similar syntax.

Core Features

Compression Algorithms

7-Zip incorporates multiple compression algorithms to support efficient data reduction across various archive formats, with a focus on achieving high ratios while balancing speed and resource usage. The software's core strength lies in its implementation of advanced methods like LZMA and LZMA2 for the proprietary 7z format, alongside support for established algorithms such as PPMd, , and for compatibility with other formats. These algorithms are selected based on the target archive type, file characteristics, and user-specified options, allowing flexibility in compression levels from store (no compression) to ultra. The default and most prominent algorithm in 7-Zip is LZMA (Lempel–Ziv–Markov chain algorithm), an optimized variant of the LZ77 dictionary-based method enhanced with range encoding and adaptive probability modeling via Markov chains. LZMA excels in providing high compression ratios, particularly for binary and mixed data, with support for dictionary sizes up to 4 GB to handle large files effectively. On a 4 GHz CPU, it achieves compression speeds of 2-8 MB/s in fast mode and decompression speeds of 30-100 MB/s, while requiring only about 5 KB for the decompressor code, making it suitable for embedded applications. LZMA is the general-purpose method for 7z archives and is also available for ZIP and other formats. LZMA2 builds upon LZMA by introducing multithreading support, which parallelizes compression across multiple CPU cores for improved on modern hardware without sacrificing . It serves as the recommended method for and XZ formats in multithreaded scenarios, offering better efficiency for large datasets while maintaining fast single-threaded decompression. LZMA2 also includes enhancements for handling incompressible blocks, reducing overhead in mixed-content archives. This algorithm is particularly impactful for high-performance archiving, as it can leverage 4 or more cores to accelerate processing while achieving compression ratios comparable to or better than LZMA. For text-heavy files, 7-Zip utilizes PPMd (Prediction by Partial Matching, version d), an implementation based on Dmitry Shkarin's PPMdH algorithm with minor modifications. PPMd employs context-based statistical modeling to predict and encode symbols, yielding excellent ratios for and similar structured data, often outperforming LZMA on such inputs. It supports configurable order and memory usage, with strong performance in solid archiving modes where files are compressed together for better entropy exploitation. PPMd is supported in , ZIP, and other formats, providing a specialized option when maximum text compression is prioritized over speed. BZip2, based on the Burrows-Wheeler transform followed by and , is integrated for broader format compatibility and as an alternative in archives. This algorithm sorts data to group similar characters, enhancing compressibility for repetitive or sorted content, though it generally offers lower ratios than LZMA for general use. 7-Zip's BZip2 implementation supports dictionary sizes up to 900 KB and multithreading, making it viable for standalone .bz2 files or within multi-method archives. It is particularly useful for scenarios requiring adherence to standards like those in TAR.BZ2. Deflate, the standard algorithm for ZIP and GZIP formats, combines LZ77 sliding-window matching with for dynamic entropy reduction. 7-Zip enhances with higher compression levels and extended variants like Deflate64, achieving 2-10% better ratios than typical implementations. This method prioritizes compatibility and moderate speed, with compression levels adjustable from 1-9, and is essential for with legacy systems. Additionally, 7-Zip supports uncompressed storage via the Copy method for files where reduction is unnecessary. In 7-Zip's implementation of Deflate for ZIP format, the fast bytes parameter (fb, also known as word size) allows users to adjust the maximum length of matches searched during compression, ranging from 3 to 258. The default value is 32, while at the Ultra compression level (level 9), it uses 128 fast bytes. Larger fb values generally provide slightly better compression ratios at the cost of slower compression speeds, with particular benefits for files containing long identical sequences. To further optimize ratios, 7-Zip applies filters as preprocessors to the main algorithms, transforming data streams for better compressibility. These include BCJ and BCJ2 for x86 executables (reordering calls and jumps), /ARMT/ARM64 for ARM binaries, PPC for PowerPC, , for respective architectures, Delta for delta-encoded data like audio, and byte-swapping filters like Swap2/Swap4. Filters are format-specific, primarily enhancing and XZ compression by up to 20-30% for executable-heavy archives without altering the core algorithm.
Archive FormatSupported Compression MethodsKey Notes
7zLZMA, LZMA2, PPMd, , , CopyLZMA/LZMA2 default; filters available for optimization.
ZIP, Deflate64, , LZMA, PPMd, CopyMultithreading and encryption supported.
GZIPLevels 1-9; fast bytes and passes configurable.
BZIP2Standalone; dictionary up to 900 KB.
XZLZMA2Filters and solid mode enabled.

Encryption Capabilities

7-Zip supports robust primarily through the AES-256 algorithm, which is applied to both the 7z and ZIP archive formats. This secures file contents by generating a 256-bit cipher key derived from a user-provided password, ensuring that archived data remains protected against unauthorized access. In the 7z format, extends to the headers, allowing file names and metadata to be obscured when the "-mhe=on" option is used during compression. The relies on the SHA-256 hash algorithm, performing a high number of iterations—specifically 524,288 (2^19)—to derive the key from the password, thereby increasing resistance to brute-force attacks by elevating the computational cost of password guessing. Unlike some modern standards, this process does not incorporate a random salt, which can make identical passwords produce the same key across archives, potentially aiding attackers in targeted scenarios. For ZIP archives, 7-Zip implements AES-256 encryption for file contents, offering a significant improvement over the legacy ZipCrypto method, which is weaker and discouraged for security-sensitive uses. However, ZIP format limitations prevent encryption of file names and headers in 7-Zip, leaving metadata visible even in password-protected archives. Users can select AES-256 explicitly in the graphical interface or via command-line options like "-mhe" for compatible elements, ensuring compatibility with other tools supporting the WinZip AES extension. The encryption process operates in Cipher Block Chaining (CBC) mode with a unique per file, preventing identical plaintexts from producing identical ciphertexts and enhancing overall security. Self-extracting (SFX) archives in format also support this encryption, allowing password-protected executables that unpack only upon correct .

Security Considerations

Known Vulnerabilities

7-Zip, like many archive utilities, has faced vulnerabilities primarily in its file parsing and decompression routines, which can lead to remote code execution (RCE), denial-of-service (DoS), or when processing malicious archives. These issues often stem from insufficient input validation in supported formats such as , ZIP, RAR, and Zstandard, requiring user interaction like opening a crafted file. The software's open-source nature allows for community scrutiny, but exploitation has been reported in real-world attacks, particularly targeting Windows installations. A notable early vulnerability, CVE-2018-10115, involved a heap-based in the RAR unpacking code, enabling memory corruption and potential RCE via specially crafted RAR archives. This flaw affected versions prior to 18.05 and was fixed in that release by improving boundary checks during decompression. Exploitation required convincing a user to extract the malicious archive, but it highlighted risks in legacy format handling. In 2023, multiple high-severity issues emerged in versions before 23.00. CVE-2023-31102 was an integer underflow in the PPMd7.c component during 7z archive , allowing invalid reads and potential RCE through crafted files. Similarly, CVE-2023-40481 involved an out-of-bounds write in the SquashFS file , also enabling RCE by overwriting heap . Both were addressed in 7-Zip 23.00 with enhanced validation routines, and they were disclosed via the Zero Day Initiative. These vulnerabilities underscored the dangers of complex compression algorithms like PPMd and . More recently, in , CVE-2024-11477 affected Zstandard decompression in up to 24.06, causing an integer underflow that permitted arbitrary memory writes and RCE. Attackers could exploit this by tricking users into decompressing a malicious .zst file, with a CVSS score of 7.8 (High). The issue was patched in 24.07 by adding proper data validation. In 2025, several critical flaws were identified. CVE-2025-0411, a Mark-of-the-Web (MotW) bypass in versions before 24.09, allowed attackers to evade Windows security zones by extracting files from crafted archives without inheriting zone identifiers, facilitating distribution like SmokeLoader. Rated at CVSS 7.0 (High), it was actively exploited in targeted campaigns against Ukrainian organizations and fixed in 24.09. Directory traversal vulnerabilities CVE-2025-11001 and CVE-2025-11002, both with CVSS 7.0, enabled RCE in ZIP parsing by mishandling symbolic links in crafted archives, allowing extraction outside intended directories in versions before 25.00. Disclosed by the Zero Day Initiative, these were mitigated in 25.00 through path canonicalization and symlink blocking. Additionally, CVE-2025-53816 involved a heap buffer overflow in the RAR5 handler, leading to DoS via memory corruption in pre-25.00 versions, fixed by correcting buffer management. Overall, 7-Zip's developers have consistently released patches in response to these disclosures, often within weeks, emphasizing the importance of keeping the software updated to prevent exploitation. Users are advised to avoid extracting untrusted archives and enable sandboxing where possible.

Patches and Best Practices

7-Zip developers have issued patches for multiple vulnerabilities primarily affecting archive decompression and extraction, often involving buffer overflows, crashes, or bypasses that could enable remote code execution or path traversal. In version 24.07, released on June 19, 2024, a fix was implemented for CVE-2024-11477, which addressed crashes triggered by malformed Zstandard (ZSTD) archives during decompression, potentially allowing arbitrary code execution if users processed untrusted files. This vulnerability, rated critical with a CVSS score of 7.8, highlighted risks in handling compressed data from external sources. Subsequent updates continued to bolster . Version 24.08, dated August 11, 2024, resolved CVE-2024-11612, covering unspecified bugs that could compromise stability and lead to exploitation in . Version 24.09, released November 29, 2024, patched CVE-2025-0411, a high-severity issue enabling attackers to bypass Windows' Mark-of-the-Web (MotW) feature via crafted , facilitating distribution like SmokeLoader without triggering warnings. In version 25.00 from July 5, 2025, fixes targeted CVE-2025-53816 (issues with incorrect RAR ) and CVE-2025-53817 (crashes in COM handling), preventing potential denial-of-service or code execution scenarios. The most recent patch in version 25.01, on August 3, 2025, mitigated CVE-2025-55188 by enhancing handling during extraction to block path traversal attacks, with an optional -snld switch introduced to override default protections for advanced users. Older but significant patches include version 18.05's resolution of CVE-2018-10115 in RAR unpacking code, which could cause heap-based buffer overflows, and version 16.03's safeguards against DLL preloading attacks in the installer and self-extracting (SFX) modules. These updates underscore 7-Zip's ongoing efforts to address flaws in supported formats like ZIP, RAR, and , often disclosed through coordinated vulnerability reporting. To minimize risks, users should maintain 7-Zip at the latest version, downloadable exclusively from the official website to avoid tampered distributions. When creating encrypted archives with AES-256 support, employ strong, unique passwords—at least 12 characters mixing letters, numbers, and symbols—and share them via separate, secure methods like phone calls rather than emailing alongside the file, reducing interception risks during transit. Always verify the integrity of downloaded archives using checksums provided on the official site. Prior to extraction, scan files with up-to-date antivirus software, as malicious archives can exploit decompression flaws even in patched versions if content is rigged for evasion. Refrain from processing archives from untrusted or unknown sources, and consider disabling automatic extraction or using isolated environments like virtual machines for high-risk files. Organizations should implement regular patching protocols, audit installations for outdated versions, and monitor endpoints for anomalous behavior post-extraction, such as unexpected process launches. These practices align with broader cybersecurity guidelines for handling compressed files.

Software Ecosystem

Main Versions and Platforms

7-Zip's development has progressed through numbered releases since its inception in 1999, with the current stable version being 25.01, released on August 3, 2025. Earlier major versions include 23.01 from June 20, 2023, which introduced improvements in multi-threading for compression, and 19.00 from February 21, 2019, focusing on enhanced support for Unicode and larger file handling. These releases typically emphasize optimizations in compression algorithms, bug fixes, and expanded format compatibility, with updates occurring irregularly based on developer Igor Pavlov's contributions under the GNU LGPL license. The software's versioning scheme uses a year-month format for minor updates, such as 16.04 from October 4, 2016, which added better integration with extensions. Older versions like 9.20 from November 18, 2010, remain available for legacy systems but lack support for modern hardware accelerations. for all versions is provided, allowing compilation for custom needs, and the LZMA SDK enables integration of core compression tools into other applications. 7-Zip is primarily designed for Windows, supporting a wide range of editions from through , including both 32-bit and 64-bit architectures, as well as ARM64. It offers full (GUI) functionality via integration with Windows Explorer, alongside standalone executable and MSI installer options. For server environments, compatibility extends to , 2019, 2016, 2012, 2008, and 2003. Cross-platform support has expanded in recent versions, with console-only builds available for (32-bit x86, 64-bit , 32-bit , 64-bit ARM64) and macOS (x86-64 and ARM64). These builds, distributed as .tar.xz archives, provide command-line access to compression and extraction without a native GUI, replacing the need for the obsolete p7zip for systems. Additionally, 7-Zip can be compiled from source for other platforms like BSD and , though official binaries are limited to Windows, , and macOS.
PlatformSupported ArchitecturesInterface TypeDistribution Format
Windowsx86 (32-bit), x64 (64-bit), ARM64GUI and Console.exe, .msi, .7z
Linuxx86 (32-bit), (64-bit), (32/64-bit)Console
macOS, ARM64Console

Forks and Derivatives

Several forks and derivatives of 7-Zip have emerged to extend its functionality, add support for additional codecs, or tailor it to specific platforms and use cases. These projects leverage the open-source nature of 7-Zip's code under the GNU LGPL license, often incorporating enhancements like modern compression algorithms or improved user interfaces. One prominent derivative is p7zip, an early port of 7-Zip's for and systems, developed independently to enable archiving capabilities on non-Windows platforms. Released up to version 16.02, p7zip has become largely obsolete following 7-Zip's native support starting in version 21.01, though it persists in some legacy environments due to its established integration. Active forks of p7zip continue development, addressing outdated components and adding contemporary features. The p7zip-project fork integrates codecs such as Zstandard (v1.5.2), LZ4 (v1.9.3), (v1.0.9), and others, alongside multithreading improvements via the zstdmt library, making it suitable for systems requiring high-performance compression. Similarly, the fork by jinfeihan57 enhances p7zip with additional codecs and bug fixes, maintaining compatibility with 7-Zip's core while supporting modern hardware. Both forks are command-line focused and actively maintained as of 2023. NanaZip represents a Windows-centric aimed at enhancing the user experience on modern versions like and 11. It incorporates elements from 7-Zip 24.09, 7-Zip ZS, and 7-Zip NSIS, adding features such as dark mode, visual effects, MSIX packaging, and extended context menu integration. NanaZip also supports advanced hash algorithms (e.g., SHA-256) and codecs like and Zstandard, with built-in security measures including Control Flow Guard. Available via the and , it targets users seeking a polished graphical interface without sacrificing 7-Zip's compression efficiency. Another notable fork is (also known as 7-Zip-zstd), which extends the original with support for high-ratio codecs including Zstandard, , Fast-LZMA2, LZ4, LZ5, and . This derivative emphasizes improved compression for diverse data types, using a multithreading library for better performance on multi-core systems. Primarily command-line based but compatible with graphical wrappers, it remains under active development and is distributed through releases for Windows and other platforms. Niche derivatives include torrent7z, a specialized variant designed to produce deterministic .7z archives optimized for torrent distribution, ensuring byte-for-byte consistency across builds to facilitate seeding and verification in networks. This modifies 7-Zip's compression process for , primarily targeting content preservation in archiving communities.

Plugins and Extensions

7-Zip supports extensibility through plugins that enhance its functionality, primarily by adding support for additional file formats, compression algorithms, and specialized tools. These plugins are typically developed by third parties and integrate with the 7-Zip DLL, allowing seamless operation within the archiver's interface. The official 7-Zip distribution includes a dedicated plugin for the FAR Manager , which enables users to handle archives directly within FAR as if they were folders, supporting operations like extraction and updates for formats such as ZIP, RAR, , and . A prominent source of community-developed plugins is TC4Shell, which offers a collection of free extensions designed to expand 7-Zip's capabilities without modifying the core software. These plugins are installed by placing DLL files in the 7-Zip plugins directory and can be managed via the program's options menu. Key plugins from TC4Shell include:
  • Modern7z (version 1.9.1): Integrates modern compression algorithms into 7-Zip, such as Zstandard (v1.5.6) and Brotli (v1.1.0), enabling higher compression ratios and faster processing for supported formats. Last updated August 20, 2024.
  • Iso7z (version 1.8.7): Allows direct extraction of files from disc image formats like ISO and NRG without mounting the image, streamlining access to archived media content. Last updated July 17, 2023.
  • Asar7z (version 1.5): Provides support for Electron's ASAR (Atom Shell Archive) format, permitting the opening, creation, and modification of these archives commonly used in desktop applications. Last updated November 14, 2023.
  • eDecoder (version 1.20.8): Facilitates handling of email and web archive files, including EML, MBOX, and MHTML, with options to extract or encode content for analysis. Last updated September 2, 2023.
  • WinCryptHashers (version 1.4): Adds cryptographic hashing tools, computing checksums like MD5 and SHA-512, and generating verification files to ensure file integrity during archiving. Last updated January 29, 2024.
  • Forensic7z (version 1.6): Enables browsing of forensic disk images in formats such as E01 and AFF, useful for digital investigations by preserving chain-of-custody metadata. Last updated December 31, 2021.
Alternative plugins, such as the standalone 7-Zip plugin for FAR Manager or the on , offer variations for specific environments, including compatibility with older FAR versions or custom DLL integrations. These extensions maintain 7-Zip's , allowing users to tailor the tool for niche workflows like software or data forensics.

Development Kit

The (SDK) is provided by the 7-Zip project to enable developers to integrate high-ratio LZMA compression and decompression capabilities into their applications, particularly suited for resource-constrained environments such as embedded systems or . Released under a , the SDK allows unrestricted copying, modification, and distribution, making it accessible for both open-source and proprietary projects. It focuses on the LZMA algorithm, known for achieving compression ratios superior to those of methods like ZIP or while maintaining fast decompression speeds. The SDK includes source code implementations in C, C++, C#, and Java for core LZMA, LZMA2, and XZ compression/decompression routines, along with a reduced version of the .7z format handling code. Developers receive header files, libraries, sample programs, and build tools to facilitate integration; for instance, the C++ sources support multithreading for improved performance on modern hardware. Accompanying tools such as lzma.exe for command-line compression and 7zr.exe for .7z archive operations are bundled, enabling testing and standalone usage. The kit supports multiple platforms, including Windows (x86, x64, ARM64), macOS, and Linux, with binaries and sources compiled accordingly. Documentation within the SDK covers API usage, with examples demonstrating basic compression tasks like encoding data streams or creating archives. A draft LZMA specification outlines the algorithm's structure, including dictionary sizes (typically 4 KiB to 4 GiB) and probability models for , providing a foundation for custom optimizations. As of version 25.01 (released August 3, 2025), the SDK remains actively maintained alongside 7-Zip updates, ensuring compatibility with evolving standards like . Developers are encouraged to consult the official forum for integration queries, where project maintainers offer guidance.

Reception and Impact

Usage Statistics

7-Zip has demonstrated significant popularity as a free and open-source , evidenced by its high user ratings and consistent download activity on hosting platforms. On , where it has been hosted since 2002, the project holds a 4.8 out of 5 rating based on 825 reviews, reflecting strong approval for its features, ease of use, and support. This acclaim contributed to 7-Zip winning the SourceForge Community Choice Award in 2007 for both "Best Project" and "Best Technical Design," recognizing it as a standout in the open-source ecosystem. Download metrics further illustrate its widespread adoption. As of late 2025, the 7-Zip files category on records approximately 9,300 downloads per week, indicating sustained demand among users seeking high-compression tools. On package management platforms like , individual versions of 7-Zip have garnered millions of installs; for instance, version 24.9.0 alone has over 2.5 million downloads, highlighting its integration into automated deployment workflows for Windows environments. Overall usage has accumulated to hundreds of millions of downloads historically, underscoring 7-Zip's role as a go-to archiver for both individual and professional users. A 2024 analysis estimated over 400 million downloads by home users and businesses since its 1999 release, attributing this to its superior compression ratios and cross-platform compatibility. These figures position 7-Zip as one of the most downloaded compression utilities, particularly in open-source communities and among developers prioritizing and .

Reviews and Awards

7-Zip has received widespread acclaim from technology reviewers and users for its efficient compression capabilities, open-source nature, and lack of bloatware compared to commercial alternatives like . In a 2020 review, awarded it 4 out of 5 stars, praising its support for multiple archive formats, ease of use, and strong performance in compression ratios, while noting its somewhat dated interface as a minor drawback. User ratings on major software platforms consistently highlight 7-Zip's reliability and speed. On , it holds a 4.8 out of 5 rating based on over 825 reviews as of 2025, with users commending its lightweight design, broad format compatibility, and free availability without ads or limitations. Similarly, CNET's Download.com reports a 4.3 out of 5 user rating from more than 1,066 reviews, emphasizing its seamless integration with Windows Explorer and superior file size reduction. Capterra users rate it 4.5 out of 5 from 42 reviews, appreciating its versatility in handling encrypted archives and batch operations. Regarding awards, 7-Zip has earned several editor's choice recognitions from software download directories. Software Informer lists it as receiving an Editor's Choice award from Criticalfiles.com for its high compression efficiency and features, alongside a 4.3 out of 5 user rating on Download.com. Tech publications have also positioned it as a top free alternative; for instance, named it the best free alternative in 2025, citing its LZMA compression algorithm that achieves up to 30% better ratios than ZIP files in benchmarks. has described it as an adored tool in its annual best roundup, underscoring its enduring popularity among power users for handling large datasets without performance overhead.

References

Add your contribution
Related Hubs
User Avatar
No comments yet.