Supported Formats
7-Zip can create archives in the following formats:7z
Native 7-Zip format with highest compression ratio
ZIP
Universal format with wide compatibility
TAR
Unix archive format, often combined with compression
GZIP
Single-file compression using Deflate algorithm
BZIP2
High-compression single-file format
XZ
Modern format with LZMA2 compression
WIM
Windows Imaging Format for system images
ISO
CD/DVD/BD image format
Format Categories
Archive Formats
These formats can store multiple files and directories with metadata:- 7z - Native format with the best compression ratio
- ZIP - Most compatible, widely supported
- TAR - Unix standard, preserves file permissions
- WIM - Windows system image format
- ISO - Optical disc image format
Compression-Only Formats
These formats compress single files or streams:- GZIP (.gz) - Fast compression, commonly used with TAR
- BZIP2 (.bz2) - Better compression than GZIP
- XZ (.xz) - Best compression, based on LZMA2
Format Comparison
The table below compares key features of different archive formats supported by 7-Zip.
| Format | Multiple Files | Compression Methods | Solid Archive | Encryption | Maximum Size |
|---|---|---|---|---|---|
| 7z | Yes | LZMA2, LZMA, BZip2, Deflate, PPMd | Yes | AES-256 | 16 EB |
| ZIP | Yes | Deflate, Deflate64, BZip2, LZMA, PPMd | No | AES-256, ZipCrypto | 16 EB (ZIP64) |
| TAR | Yes | None (use with .gz/.bz2/.xz) | N/A | No | Unlimited |
| GZIP | No | Deflate | N/A | No | 4 GB |
| BZIP2 | No | BZip2 | N/A | No | Unlimited |
| XZ | No | LZMA2 | N/A | No | 16 EB |
| WIM | Yes | XPRESS, LZX, LZMA | Yes | No | 4 GB per image |
| ISO | Yes | None | N/A | No | 8 TB |
Choosing the Right Format
For Maximum Compression
Use 7z format with LZMA2 compression and solid mode:For Maximum Compatibility
Use ZIP format with Deflate compression:For Unix/Linux Systems
Use TAR combined with XZ or GZIP:For Single File Compression
Use XZ for best compression or GZIP for speed:Extraction Support
7-Zip can extract from many more formats than it can create, including:
- RAR (including RAR5)
- CAB, CHM, WIM
- ARJ, LZH, CPIO, RPM, DEB
- ISO, DMG, HFS
- And many more…
Implementation Details
All format handlers are implemented in the source tree at:IArchive.h.
Next Steps
7z Format Details
Learn about the native 7-Zip format structure
ZIP Format Details
Understand ZIP format capabilities