Each coder in a folder names its method
with an ID that can be at most 8 bytes (63 bits): the coder flags have a 4-bit size field
(0 to 15), but Methods.txt says an ID cannot exceed 63 bits, and 7-Zip’s reader
(7zIn.cpp) rejects a size above 8. The register is
Methods.txt
(version 26.04) in the 7-Zip source. To add a new ID, either ask the 7-Zip developers to allocate
one or generate an 8-byte ID 3F ZZ ZZ ZZ ZZ ZZ MM MM: 3F is the prefix for random
IDs, ZZ… a 5-byte developer ID made of real random bytes, MM MM a 2-byte
method ID; a new ID must be used if the old codec cannot decode data written by the new version. The
property layouts below are from 7-Zip’s source files CPP/7zip/Crypto/7zAes.cpp,
CPP/7zip/Compress/DeltaFilter.cpp, BranchMisc.cpp, BranchRegister.cpp,
PpmdDecoder.cpp, C/LzmaDec.c, C/Lzma2Dec.c and
C/Ppmd7.h, all read 2026-11-13. Most archives use only LZMA2 or LZMA, sometimes with a branch filter and
7zAES; the rest of the register is there because 7-Zip’s codecs are shared between
its archive handlers, and a 7z archive may name any of them.
Methods 7z archives use
| ID | Method | Properties |
|---|---|---|
00 | Copy (stored, no compression) | None |
03 | Delta filter | 1 byte exactly: distance − 1 (1 to 256 bytes); any other size is invalid |
04 | BCJ x86 filter (new ID form) | None |
05 | PPC branch filter, big-endian | None |
06 | IA64 branch filter | None |
07 | ARM branch filter, little-endian | None |
08 | ARM Thumb branch filter, little-endian | None |
09 | SPARC branch filter | None |
0A | ARM64 branch filter | Optional: none (start address 0) or 4 bytes, a little-endian start address; it must be a multiple of 4 or the reader rejects it. 7-Zip’s writer omits the property when the address is 0 |
0B | RISC-V branch filter | Optional, as ARM64, but the start address must be a multiple of 2 |
21 | LZMA2 | 1 byte: dictionary size |
03 01 01 | LZMA | 5 bytes: lc, lp, pb and dictionary size |
03 03 01 03 | BCJ x86 filter | None |
03 03 01 1B | BCJ2 x86 filter, four packed streams | None |
03 03 02 05 | PPC branch filter, big-endian | None |
03 03 03 01 | Alpha branch filter | None |
03 03 04 01 | IA64 branch filter | None |
03 03 05 01 | ARM branch filter, little-endian | None |
03 03 06 05 | M68 branch filter, big-endian | None |
03 03 07 01 | ARM Thumb branch filter, little-endian | None |
03 03 08 05 | SPARC branch filter | None |
03 04 01 | PPMd (PPMd var.H, 2001, Dmitry Shkarin, per Ppmd7.h) | 5 bytes: order and memory size |
03 7F 01 | Experimental method | – |
04 02 02 | BZip2 | None |
04 01 08 | Deflate | None |
04 01 09 | Deflate64 | None |
06 F1 07 01 | 7zAES: AES-256 with a SHA-256 key | Cycles, salt and IV |
The one-byte filter IDs (04 to 0B) are the newer form;
7-Zip still writes the four-byte 03 03 … IDs for the older filters, and
readers accept both.
The rest of the register
| ID | Method |
|---|---|
02 03 02 | Swap2 (the register lists “Swap” with Swap2 and Swap4; no more is said) |
02 03 04 | Swap4 |
04 00 | Reserved |
04 01 00 | ZIP Copy (not used; use 00) |
04 01 01 | ZIP Shrink |
04 01 06 | ZIP Implode |
04 01 0A | ZIP Imploding (method 10) |
04 01 0C | ZIP BZip2 (not used; use 04 02 02) |
04 01 0E | ZIP LZMA (LZMA as stored in ZIP) |
04 01 5D | ZIP Zstandard |
04 01 5F | ZIP xz |
04 01 60 | ZIP JPEG |
04 01 61 | ZIP WavPack |
04 01 62 | ZIP PPMd (PPMd-zip) |
04 01 63 | ZIP WinZip AES |
04 03 01 | RAR 1.x |
04 03 02 | RAR 2.x |
04 03 03 | RAR 3.x and 4.x |
04 03 05 | RAR 5 |
04 04 01 | ARJ methods 1, 2 and 3 |
04 04 02 | ARJ method 4 |
04 05 | Z (Unix compress) |
04 06 | LZH |
04 07 | Reserved for 7z |
04 08 | CAB |
04 09 01 | NSIS Deflate |
04 09 02 | NSIS BZip2 |
04 F7 0x xx | Reserved for external codecs |
04 F7 10 01 | LZHAM |
04 F7 11 01 | Zstandard (Tino Reichardt’s 7-Zip build) |
04 F7 11 02 | Brotli |
04 F7 11 04 | LZ4 |
04 F7 11 05 | LZ5 |
04 F7 11 06 | Lizard |
04 F7 12 01 | WavPack2 |
04 F7 12 FE | eSplitter |
04 F7 12 FF | RawSplitter |
04 F7 13 01 | Transpose |
06 F0 01 00 to 04 | AES-128 in ECB, CBC, CFB, OFB and CTR modes |
06 F0 01 40 to 44 | AES-192 in the same five modes |
06 F0 01 80 to 84 | AES-256 in the same five modes |
06 F0 01 C0 to C4 | AES with the key size given elsewhere, same five modes |
06 F1 01 01 | ZipCrypto (traditional ZIP encryption) |
06 F1 03 02 | Listed under the RAR group with no name (the register gives only 02 -) |
06 F1 03 03 | RAR 2.9 AES: AES-128 with a modified SHA-1 key |
06 F1 07 02 to FF | Reserved for 7z |
The register also lists a few more private ranges kept for other developers; IDs not shown here have no public description, and a reader that does not know an ID cannot unpack that folder.
LZMA properties
| Offset | Size | Meaning |
|---|---|---|
0 | 1 | (pb × 5 + lp) × 9 + lc: lc literal context bits 0 to 8, lp literal position bits 0 to 4, pb position bits 0 to 4. The usual value 5D means lc 3, lp 0, pb 2. |
1 | 4 | Dictionary size in bytes, little-endian. A decoder raises a value below 4,096 to 4,096. A properties byte of 225 or more is unsupported (C/LzmaDec.c, LzmaProps_Decode). |
These are the same five bytes that start a .lzma file. In 7z the uncompressed size is not stored with them; it comes from the folder’s unpack size.
LZMA2 properties
One byte, 0 to 40 (a larger value is unsupported). The dictionary size is (2 | (b & 1)) << (b / 2 + 11),
so 0 is 4 KiB, 1 is 6 KiB, 2 is 8 KiB and so on, doubling every two steps; 40 means
4 GiB − 1. 18 (24) is 16 MiB. The LZMA2 chunk format is the same as in
.xz files.
PPMd properties
| Offset | Size | Meaning |
|---|---|---|
0 | 1 | Model order, 2 to 64 (PPMD7_MIN_ORDER and PPMD7_MAX_ORDER in Ppmd7.h). |
1 | 4 | Memory size in bytes, little-endian, from 211 (2 KiB) to 4,294,967,259 (0xFFFFFFFF − 12 × 3). |
At least 5 bytes of properties are required; values outside the ranges are unsupported.
7zAES properties
Data is AES-256 in CBC mode (the key is 32 bytes). The key is made from the salt and the
password bytes (how the archive handler turns the password into bytes is not in
7zAes.cpp, which takes them as given). The property layout and the key
procedure below are from 7-Zip’s 7zAes.cpp, as the format description does not
give them.
NumCyclesPowerbelow 63 (0x3Fexcluded): a SHA-256 hash is computed over the repeated blocksalt | password | counter, where the counter is 8 bytes (little-endian, only the low 4 bytes ever change, starting at 0 and rising by 1 per round), fed 2NumCyclesPower times. The 32-byte digest is the key.NumCyclesPower=0x3F: no hashing. The key is the salt bytes, then the password bytes, then zero bytes, up to 32 bytes in all (password bytes beyond 32 are dropped).- A decoder supports
NumCyclesPowerup to 24 and0x3F; any other value is unsupported. 7-Zip’s writer uses 19 (the commented-out alternative in the source is0x3Fwith a 4-byte salt). - Properties of byte 0 with bits 6 and 7 clear must be exactly 1 byte long; otherwise the size
must be
2 + salt size + IV sizeor the properties are invalid.
| Byte | Bits | Meaning |
|---|---|---|
0 | 0 to 5 | NumCyclesPower: log2 of the number of SHA-256 rounds, normally 19; 3F means no hashing (see above), not a count. |
0 | 6 | Adds 1 to the IV size. |
0 | 7 | Adds 1 to the salt size. |
1 | 4 to 7 | Added to the salt size (so the salt is 0 to 16 bytes). Present only when bit 6 or 7 of byte 0 is set. |
1 | 0 to 3 | Added to the IV size (0 to 16 bytes). |
| 2 … | The salt bytes, then the IV bytes (up to 16; a shorter IV is padded with zeros). |
When the end header is encrypted too, the file names cannot be listed without the password.