Reference Formats
7-Zip Archive
An open-source, high-ratio lossless archive format built around Igor Pavlov's LZMA compression algorithm, offering better compression than ZIP at the cost of slower compression speed.
Extension
.7z
Full name
7-Zip Archive Format
Introduced
1999 (7-Zip application); 7z format introduced 2001
Vendor
Igor Pavlov (7-Zip)
What is inside the container
A 7z archive separates its file data from its metadata (filenames, attributes) more strictly than ZIP does, and supports several compression methods behind one container — LZMA and its successor LZMA2 by default, plus optional PPMd, BZip2, and others — as well as AES-256 encryption that can optionally hide filenames along with content. LZMA itself is a dictionary-based algorithm descended from the same LZ77 family as DEFLATE but with a much larger dictionary and range coding instead of Huffman coding, which is what gives 7z its typically smaller output size than ZIP on the same input.
How to open it
For archives
7z is a strong choice when a DAM needs to bundle assets with maximum space savings — its LZMA/LZMA2 compression reliably beats ZIP's ratio on most content — and its open-source reference implementation (LGPL, with the LZMA SDK in the public domain) removes the vendor-lock concern that applies to RAR. The trade-off is slower compression and somewhat less universal native OS support than ZIP, so it suits DAM cold-storage or archival bundling more than everyday delivery to end users who may not have an extraction tool installed.
Igor Pavlov released the free, open-source 7-Zip application in 1999, and introduced its native .7z archive format in 2001 alongside LZMA, the Lempel-Ziv-Markov chain Algorithm he had been developing since 1998. LZMA extends the LZ77 dictionary-matching idea used by DEFLATE (the algorithm behind ZIP) with a much larger search window and range coding in place of Huffman coding, which typically produces smaller files than ZIP at the cost of slower compression time. Pavlov released both the 7-Zip application and the underlying LZMA SDK freely — the SDK sits in the public domain, and 7-Zip itself is licensed under the LGPL — which is a large part of why 7z spread quickly as a no-cost alternative to commercial archivers.
For a DAM, 7z is the practical choice when compression ratio actually matters — bundling a large batch of assets for cold storage or a big client handoff where every gigabyte saved reduces transfer time and storage cost. Because the format and its reference tooling are open source rather than proprietary like RAR, a DAM can build extraction and creation into a server-side pipeline (via libraries like py7zr) without licensing risk, though 7z’s lack of built-in OS support on Windows and macOS means end users receiving a 7z archive directly usually need to install an extraction tool first — worth weighing against ZIP for anything meant for a non-technical recipient.
Frequently asked
Why does 7z usually produce smaller files than ZIP for the same content?
7z's default LZMA/LZMA2 algorithm uses a much larger compression dictionary and range coding instead of ZIP's Huffman coding, which generally finds more redundancy and encodes it more efficiently, at the cost of taking longer to compress.
Is 7z open source, unlike RAR?
Yes — the 7-Zip application is licensed under the LGPL and the underlying LZMA SDK is in the public domain, which is a key reason DAM pipelines can build 7z support into server-side tooling without the licensing questions that apply to RAR.
Does Windows or macOS open 7z files without extra software?
Neither operating system supported 7z out of the box for most of its history. Windows 11's File Explorer gained native 7z extraction in 2023 through the open-source libarchive library, and the 24H2 update added creating 7z archives too, but Windows 10 and earlier Windows 11 builds still need a separate tool. macOS's built-in Archive Utility never added 7z support, so opening one there still requires Keka, The Unarchiver, or command-line p7zip.
Can a 7z archive encrypt filenames, not just file contents?
Yes. 7z encrypts file contents with AES-256, using a key derived from the password by hashing it with SHA-256 roughly 500,000 times to slow brute-force attempts. Checking the 'encrypt filenames' option goes further and encrypts the archive's header, which stores the file list—so anyone without the password sees no filenames, folder structure, or file count at all. Standard ZIP encryption cannot do this; it always exposes the file list even when contents are locked.
What compression methods can a 7z container actually use?
LZMA and LZMA2 by default, with optional support for PPMd, BZip2, and a few others — the .7z extension refers to the container format, which can wrap different underlying compression algorithms per archive.
Is 7z a good choice for archiving a large DAM asset collection for cold storage?
Yes, with caveats. LZMA's large dictionary and range coding typically shrink DAM assets—especially batches of similar file types like TIFFs or PSDs—more than ZIP, cutting cold-storage costs. The LGPL license and public-domain LZMA SDK also lower the risk of the format becoming unreadable decades from now. The tradeoff is solid compression: pulling one file out of a solid 7z archive can require decompressing the whole block, so DAMs restoring individual assets should size archives per project or disable solid mode.
Can a DAM extract 7z archives programmatically without shelling out to a CLI tool?
Yes. Several native libraries parse the 7z format directly in-process, without spawning an external binary. In Python, py7zr implements the format natively and supports LZMA2-compressed archives. In Java, Apache Commons Compress ships a SevenZFile reader that extracts entries directly from the API. .NET has SharpCompress, and C/C++ projects can link libarchive. This matters for DAM pipelines because avoiding a CLI call means fewer subprocess dependencies, better error handling, and no risk of shell-injection from untrusted filenames.
When was the LZMA algorithm behind 7z developed?
Igor Pavlov began developing LZMA in 1998. It became the default compression method three years later, in 2001, with the introduction of the 7z archive format. LZMA combines LZ77-style dictionary matching with range coding and context modeling, giving it better ratios than ZIP's Huffman-based DEFLATE. Pavlov later built LZMA2, a container format that splits data into independent chunks for multithreaded compression. In December 2008, he placed the LZMA SDK in the public domain, letting any project reuse the code freely.
Sources
- 7-Zip, developed by Igor Pavlov, was first released in 1999; its native .7z archive format followed in 2001. checked 2026-08-07 — Wikipedia — 7z
- 7-Zip is licensed under the GNU LGPL (with an unRAR-code restriction), and the LZMA SDK it's built on is in the public domain. checked 2026-08-07 — Wikipedia — 7-Zip