- Overview
- Downloads
- Building
- Usage
- Historical examples
- Developer notes
- Security
- Availability
- Licenses
- External links
Tip
Xtro‑ZIP is the only permissively‑licensed open‑source ZIP software that even comes close to fully supporting the complete ZIP specification!
Xtro‑ZIP, derived from Info‑ZIP, adds:
- new algorithms
- security hardening
- ultra compression levels
- data de‑duplication
- ZIP optimization
- filesystem metadata preservation
- CRC/SHA/AES/compression hardware acceleration1
- PKAV (create and verify for PKAV 2.x, verification‑only for PKAV 1.x)
- FWKCS MD5
- AES cryptography (AE‑1, AE‑2, and “quantum‑resistant” AE‑3)
- improved Unicode support
- innumerable bug fixes and other improvements
The ability to compress and decompress archive members using Zstandard (method 20 and 93), LZMA (method 14), XZ/LZMA2 (method 95), ZIP‑Implode (method 6), DCL‑Implode (method 10), Deflate64 (method 9), IBM CMPSC (method 16), Shrink (method 1), Reduce (methods 2 through 5), PPMd (method 98), and Appleʼs LZFSE (method 99) has been added.
New decompression‑only support for the WZ‑MP3 (method 94), WZ‑JPEG (method 96), and WavPack (method 97) “multimedia extensions”, and Xceedʼs BWT (method 18) has also been integrated.
WinZip‑style de‑duplication RefPtr (method 92) is supported.
The usual ZIP Store (method 0) and DEFLATE (method 8) algorithms remain supported.
Additionally, ultra compression levels, which take extra time and use more
memory to achieve tighter packing (enabled via zip ‑11) are supported for
the DEFLATE (using a custom
Zopfli‑derived encoder), Deflate64™,
Zstandard, IBM z/OS CMPSC, DCL‑Implode, Tamp, and Apple
LZFSE methods.
| Method | Description | Decompression | Compression |
|---|---|---|---|
0 |
Store (no compression) | ✅ | ✅ |
1 |
Shrink | ✅ | ✅ |
2 |
Reduce (level 1) | ✅ | ✅ |
3 |
Reduce (level 2) | ✅ | ✅ |
4 |
Reduce (level 3) | ✅ | ✅ |
5 |
Reduce (level 4) | ✅ | ✅ |
6 |
ZIP‑Implode | ✅ | ✅ |
8 |
DEFLATE | ✅ | ✅ |
9 |
Deflate64™ (Enhanced DEFLATE) | ✅ | ✅ |
10 |
DCL‑Implode | ✅ | ✅ |
12 |
bzip22 | ✅ | ✅ |
14 |
LZMA3 | ✅ | ✅ |
16 |
IBM z/OS CMPSC | ✅ | ✅ |
18 |
BWT4 | ✅ | |
20 |
LPAQ85 | ✅ | ✅ |
20 |
Zstandard (deprecated) | ✅ | ✅ |
92 |
Reference Link6 (de‑duplication) | ✅ | ✅ |
93 |
Zstandard7 | ✅ | ✅ |
94 |
WZ‑MP3 | ✅ | |
95 |
XZ/LZMA23 | ✅ | ✅ |
96 |
WZ‑JPEG3 | ✅ | |
97 |
WavPack8 | ✅ | ✅ |
98 |
PPMd version I (8) Rev 1 | ✅ | ✅ |
99 |
LZFSE9 | ✅ | ✅ |
31340 |
Tamp10 | ✅ | ✅ |
Note
Methods 1 through 6 are legacy algorithms and are no longer recommended for normal use.
1 CRC/SHA/AES/compression hardware acceleration is
automatically detected at runtime and is currently supported on AMD64 and
ARM64 systems running Linux, FreeBSD, OpenBSD, macOS, and Windows.
Additional hardware acceleration may be provided via the (optional)
zlib‑ng or
libdeflate libraries where
available.
2 bzip2 support requires
libbz2;
use of bz2‑ng recommended.
3 LZMA, XZ/LZMA2, and WZ‑JPEG support requires
liblzma.
4 BWT is a non‑standard Xceed extension that shares
method 18 with “IBM TERSE”; Xtro‑ZIP automatically determines the proper
format by identifying valid BWT data. While the IBM‑specific TERSE and LZ77
compression technologies referenced in the
PKWARE APPNOTE.TXT
unquestionably exist, because there is no evidence of formal specifications
nor any software known to implement these methods, they are excluded from the
table, as are other specifically reserved (7, 11, 13, 15, 17, etc.)
identifiers.
5 LPAQ8 is a non‑standard PAQZIP extension that
shares method 20 with the (deprecated) Zstandard (now method 93);
Xtro‑ZIP automatically determines the proper format by analyzing the
data stream.
6 De‑duplicated archive creation supported via
zipdedup.
7 Zstandard support requires
libzstd.
8 WavPack support requires
libwavpack; compression supported via
zipopt.
9 LZFSE is a non‑standard Apple extension that shares
method 99 with WinZip AES; Xtro‑ZIP automatically determines the proper
format using metadata analysis.
10 Tamp is a non‑standard Xtro‑ZIP extension.
These changes are built using Fedoraʼs current Info‑ZIP
zip (3.0‑46, 2026‑07‑17),
and unzip
(6.0‑71, 2026‑07‑27) source packages as a base.
If you want, you can compare the changes against the Fedora upstream version using GitHub or GitLab.
Periodically updated builds are available for several operating systems.
-
Use “
./build-unix.sh” for native builds on most UNIX-like systems. -
Use “
./build-win32.sh” for Windows builds using mingw-w64. -
Use “
./build-dos386.sh” for DOS 386 DPMI builds using DJGPP. -
Use “
./build-dos16.sh” for DOS 16‑bit builds using Open Watcom V2.0. -
Use “
./build-os2.sh” for OS/2 32‑bit builds using Open Watcom V2.0.- Optionally, use “
./build-os2-libs.sh” before starting the build to compile additional OS/2 libraries (LZMA, Zstandard, WavPack, libdeflate).
- Optionally, use “
To make “reproducible” builds, see
SOURCE_DATE_EPOCHand (security policy).
Important
Examine the actual build scripts (and the “build-all.sh” script the
developer uses to build the binary releases) for more detailed information.
The new zipdedup tool creates WinZip‑compatible (“ZIPX” method 92)
de‑duplicated archives from existing ZIP source archives.
It hashes all archived files and retains the first (compressed) source file, without recompressing it, and smartly de‑duplicates entries only if the operation would result in a smaller output archive (i.e., very small files will be skipped).
$ zipdedup original.zip deduplicated.zip
449 new references; approximate savings: 9,010,081 bytes
Invoke as zipdedup --help for complete zipdedup usage information.
The new zipopt tool optimizes an existing ZIP file by recompressing each
member of the archive using every possible (or every requested) compression
method, keeping the data from the method that produces the smallest output
(which could be the original input).
Relevant archive metadata is preserved and extensive checking is performed to ensure that the process is completely lossless.
All available decompression methods are supported in input files, but output currently excludes the non‑standard Apple LZFSE and the special‑purpose IBM z/OS CMPSC methods.
$ zipopt original.zip optimized.zip
optimized.zip: complete [1043 members]
zipopt: 13,005,195 bytes -> 3,767,243 bytes -> 3,093,724 bytes
(71% -> 18% -> 76%) [673,519 bytes saved]
Invoke as zipopt --help for complete zipopt usage information.
Xtro‑ZIP supports optional preservation of UNIX filesystem extended attributes and NTFS alternate data streams as Xtro metadata.
The portable Xtro format can store binary attributes, native attribute metadata, and named data streams. Small metadata is stored in ZIP extra fields, and larger metadata is stored as additional ZIP members “companions”. All metadata is independently verified using SHA‑256, and can be secured with ZipCrypto or AES encryption.
| Platform | Status | Description |
|---|---|---|
| Linux | ✅ | Save/restore of Linux xattr extended attributes |
| FreeBSD | ✅ | Save/restore of FreeBSD extattr extended attributes |
| NetBSD | ✅ | Save/restore of NetBSD extattr extended attributes |
| Windows | ✅ | Save/restore of NT extended attributes and NTFS named data streams |
| OS/2 | ✅ | Save/restore of OS/2 extended attributes and LAN Manager ACLs |
| macOS | Support is planned | |
| AIX | Support is planned | |
| Solaris/illumos | Support is planned | |
| Haiku | Support is planned |
-
Save/restore extended attributes:
zip --xattrs archive.zip file(s) unzip --xattrs archive.zip
On Windows, --xattrs indicates NT extended attributes and --streams
indicates NTFS named data streams. The corresponding --no-xattrs and
--no-streams options can be used to disable these operations.
-
Save/restore Windows extended attributes and NTFS data streams
zip --xattrs --streams archive.zip file(s) unzip --xattrs --streams archive.zip
- Xtro metadata uses the
0x5854ZIP extra‑field identifier, which is provisional and pending final format review. - Large metadata is stored as “companion” members appear as ordinary ZIP members to ZIP extractors that do not recognize the Xtro‑ZIP Xtro metadata extensions. Such extractors can still process any ordinary files.
- When replacing archive members, Xtro‑ZIP recaptures any relevant metadata (or reports the removal of obsolete metadata).
- Metadata‑aware archive utilities preserve ownership and “companion” relationships where supported (although some encrypted archive transformations are currently unsupported).
- ACLs, security descriptors, security labels, capabilities, quarantine tags, and NTFS alternate data streams are not implicitly restored as ordinary extended attributes.
PKAV today is cryptographically useless, but supporting it is important for historical preservation and research, and it unlocks the encrypted AVEXTRA data present in many original PKZIP archives that would otherwise be completely inaccessible (or only accessible using official PKWARE software).
The unzip and unzipsfx tools verify both the original PKAV 1.x format
used by PKWARE PKZIP 1.x releases as well as the more common PKAV 2.x
format. PKAV archive creation with zip supports PKAV 2.x only.
Note
Generation of PKAV registration is outside the scope of this project, but is covered elsewhere.
$ printf '%s\n' '' 'This is the AVEXTRA comment!' '' > avextra.txt
$ zip --pkav-name 'This was made with InfoZip!' \
--pkav-s1 x --pkav-s2 y \
--pkav-avextra avextra.txt test.zip ./*.c
adding: makeav.c (deflated 86%)
adding: pklaxfix.c (deflated 82%)
adding: pkpspfix.c (deflated 76%)
adding: putav.c (deflated 78%)
$ unzip -t test.zip
Archive: test.zip
testing: makeav.c OK -AV
testing: pklaxfix.c OK -AV
testing: pkpspfix.c OK -AV
testing: putav.c OK -AV
Authentic files Verified! # TDU015
This was made with InfoZip!
This is the AVEXTRA comment!
No errors detected in compressed data of test.zip.
$ unzip -xa test.zip
Archive: test.zip
inflating: makeav.c -AV [text]
inflating: pklaxfix.c -AV [text]
inflating: pkpspfix.c -AV [text]
inflating: putav.c -AV [text]
Authentic files Verified! # TDU015
This was made with InfoZip!
This is the AVEXTRA comment!
If errors are encountered when testing or extracting an archive, a PKAV archive provides additional information:
$ unzip -t test.zip
Archive: test.zip
testing: makeav.c OK -AV
testing: pklaxfix.c OK -AV
testing: pkpspfix.c OK -AV
testing: putav.c bad CRC 437342ff (should be 9ed0722b) -AV
warning: PKAV Authenticity Verification failed
warning: unverified PKAV AVEXTRA data is present; use --show-avextra-on-fail to display it
At least one error was detected in test.zip.
The unzipsfx self‑extracting stub handles PKAV automatically.
Important
When creating a self‑extracting archive, ensure that you correct the entry
offsets using the zip ‑A command. If you donʼt run zip ‑A the archive
is not a fully conforming ZIP file and other software (especially PKWARE
software) may reject it as invalid or corrupt.
$ cat $(command -v unzipsfx) test.zip > test.sfx
$ chmod a+x test.sfx
$ zip -A test.sfx
Zip entry offsets appear off by 115316 bytes - correcting...
$ ./test.sfx -t
testing: makeav.c OK -AV
testing: pklaxfix.c OK -AV
testing: pkpspfix.c OK -AV
testing: putav.c OK -AV
Authentic files Verified! # TDU015
This was made with InfoZip!
This is the AVEXTRA comment!
No errors detected in compressed data of ./test.sfx.
The FWKCS extension was originally implemented by Frederick W. Kantor as a way identify duplicate files in archives more reliably than by the filename, size, and CRC. It is still useful today as a lightweight integrity checksum, augmenting the standard ZIP CRC‑32. FWKCS cooperates with PKAV, and because older ZIP software can ignore the FWKCS metadata when unsupported, it has excellent backwards compatibility.
FWKCS support is not enabled by default. To enable FWKCS when archiving,
use the --fwkcs-md5 option. To enable FWKCS when listing (‑l) or
verbosely listing (‑v), use the --list-fwkcs-md5 option.
It was decided not to enable FWKCS support by default (even though it is
officially supported and documented in the current
APPNOTE.TXT) for
a number of reasons:
- Mainly to avoid silently including FWKCS MD5 metadata when most ZIP implementations just silently ignore it. This could be catastrophic for privacy; a “mostly hidden” MD5 hash may betray the contents of an encrypted file.
- It complicates adding new members to existing archives. If FWKCS support was enabled by default, updating an archive would silently create archives where newly added or updated members would have FWKCS MD5 hashes and old ones would not.
- Calculating the FWKCS MD5 hashes when archiving is not free in terms of CPU time.
- While the presence of FWKCS MD5 hashes greatly improves the ability to detect archive corruption, MD5 is not modern authentication. Users could easily misunderstand FWKCS to be a security feature, and it is not.
- Requiring opt‑in when listing (
‑l) and verbosely listing (‑v) ensures that users who are further processing the output (e.g.,AWKscripts) wonʼt experience regressions.
$ zip --fwkcs-md5 pkstuff.zip ./*.com
adding: makeav.com (deflated 42%)
adding: pklaxfix.com (deflated 31%)
adding: pkpspfix.com (deflated 29%)
adding: putav.com (deflated 29%)
$ unzip -v --list-fwkcs-md5 pkstuff.zip
Archive: pkstuff.zip
Length Method Size Cmpr Date Time CRC-32 FWKCS MD5 Name
-------- ------ ------- ---- ---------- ----- -------- -------------------------------- ----
30300 Defl:N 17620 42% 10-01-2026 00:39 431fa9a2 3728359993a24bc8329250be8def15ee makeav.com
18850 Defl:N 13040 31% 10-01-2026 00:39 902af968 e506191a90b515742d996d4bd74d9ddd pklaxfix.com
15888 Defl:N 11210 29% 10-01-2026 00:39 9afdcb69 4077e98e885eeb3860f01e5d730835ac pkpspfix.com
16590 Defl:N 11740 29% 10-01-2026 00:39 3b629188 39d3190b88293c17ac93b94818e64468 putav.com
-------- ------- --- -------
81628 53610 34% 4 files
FWKCS MD5 metadata information present (not verified by listing).
$ unzip -t pkstuff.zip
Archive: pkstuff.zip
testing: makeav.com OK
testing: pklaxfix.com OK
testing: pkpspfix.com OK
testing: putav.com OK
FWKCS MD5 checksums verified for 4 entries.
No errors detected in compressed data of pkstuff.zip.
$ unzip -xa pkstuff.zip
Archive: pkstuff.zip
inflating: makeav.com [binary]
inflating: pklaxfix.com [binary]
inflating: pkpspfix.com [binary]
inflating: putav.com [binary]
If errors are encountered when testing or extracting an archive, an FWKCS archive provides additional information:
$ unzip -t pkstuff.zip
Archive: pkstuff.zip
testing: makeav.com bad CRC 982e9e5e (should be 431fa9a2)
FWKCS MD5 mismatch: makeav.com
9f3d331fc86d703edb022249017ac730 (should be 3728359993a24bc8329250be8def15ee)
testing: pklaxfix.com OK
testing: pkpspfix.com OK
testing: putav.com OK
At least one error was detected in pkstuff.zip.
Important
When creating a self‑extracting archive, ensure that you correct the entry
offsets using the zip ‑A command. If you donʼt run zip ‑A the archive
is not a fully conforming ZIP file and other software (especially PKWARE
software) may reject it as invalid or corrupt.
$ cat $(command -v unzipsfx) pkstuff.zip > pkstuff.sfx
$ chmod a+x pkstuff.sfx
$ zip -A pkstuff.sfx
Zip entry offsets appear off by 115316 bytes - correcting...
$ ./pkstuff.sfx -t
testing: makeav.c OK
testing: pklaxfix.c OK
testing: pkpspfix.c OK
testing: putav.c OK
FWKCS MD5 checksums verified for 4 entries.
No errors detected in compressed data of ./pkstuff.sfx.
Archives that have been created with this PKAV implementation, including self‑extracting executables with FWKCS metadata, are fully compatible with the official PKWARE PKUNZIP software.
$ emu2 pkunzip.exe -t test.sfx
PKUNZIP (R) FAST! Extract Utility Version 2.50 03-01-1999
Copr. 1989-1999 PKWARE Inc. All Rights Reserved. Registered version
PKUNZIP Reg. U.S. Pat. and Tm. Off.
Searching ZIP: TEST.SFX
Testing: makeav.c OK -AV
Testing: pklaxfix.c OK -AV
Testing: pkpspfix.c OK -AV
Testing: putav.c OK -AV
Authentic files Verified! # TDU015
This was made with InfoZip!
This is the AVEXTRA comment!
While FWKCS metadata is not verified by most classic ZIP tools, it should not cause compatibility problems (even when used in combination with PKAV).
$ emu2 pkunzip.exe -t pkstuff.sfx
PKUNZIP (R) FAST! Extract Utility Version 2.50 03-01-1999
Copr. 1989-1999 PKWARE Inc. All Rights Reserved. Registered version
PKUNZIP Reg. U.S. Pat. and Tm. Off.
Searching ZIP: PKSTUFF.SFX
Testing: makeav.com OK
Testing: pklaxfix.com OK
Testing: pkpspfix.com OK
Testing: putav.com OK
The very
famous
FWKCS122.ZIP
archive is a great example of an important historical file that uses
PKAV 2.x and includes encrypted AVEXTRA text which needs a complete PKAV
implementation to correctly decode and display.
The decoded PKAV AVEXTRA text from this particular archive was quoted verbatim and used (amongst other data points) in a USPTO final decision to invalidate a software patent (PDF pg. 11) in 2014. In that case, Jason Scott used the PKWARE PKUNZIP software in a DOS emulator to decode and display the PKAV AVEXTRA text.
$ unzip -t fwkcs122.zip
Archive: fwkcs122.zip
testing: FILE_ID.DIZ OK -AV
testing: README.TXT OK -AV
testing: WHATSNEW.TXT OK -AV
testing: REGISTER.DOC OK -AV
testing: REGISTER.FRM OK -AV
testing: INSTALL.BAT OK -AV
testing: REPLACE.BAT OK -AV
testing: QIKSTART.BAT OK -AV
testing: GETLOOK.BAT OK -AV
testing: FWKCS.122 OK -AV
testing: FWKCS_TM.122 OK -AV
Authentic files Verified! # OFT466
Frederick W. Kantor (founder/information mechanics)
FWKCS(TM) Contents_Signature System, Ver. 1.22, 1993 Aug 10.
(C)Copyright Frederick W. Kantor 1989-1993. All rights reserved.
Your use of any file or program herein is at solely your own risk:
>--> please have proper backups:
........................ C A V E A T O P E R A T O R ........................
This zipfile (C)Copyright Frederick W. Kantor 1988-1993. All rights reserved.
No one has any permission from the author_and_copyright_owner to add to,
subtract from, or otherwise modify, the contents of this copyrighted
Authenticity Verification Zipfile.
If you distribute this zipfile, use the filename FWKCS122.ZIP.
To use, first do PKUNZIP FWKCS122.ZIP <enter>
Then, in the same directory with FWKCS122.ZIP,
to install, do INSTALL <enter>
to replace an existing FWKCS system, Ver. 1.12 or later, do REPLACE <enter>
to set up the system, without searching files, do QIKSTART <enter>
to extract the Lookup programs and selected literature, do GETLOOK <enter>
and then follow the instructions on the screen...
(For beginning instructions, see README.TXT.)
No errors detected in compressed data of fwkcs122.zip.
The self‑extracting
PKZ110.EXE archive uses
PKAV 1.x and includes encrypted AVEXTRA text.
$ unzip -t pkz110.exe
Archive: pkz110.exe
testing: WHATSNEW.110 OK -AV
testing: README.DOC OK -AV
testing: MANUAL.DOC OK -AV
testing: ADDENDUM.DOC OK -AV
testing: DEDICATE.DOC OK -AV
testing: LICENSE.DOC OK -AV
testing: ORDER.DOC OK -AV
testing: APPNOTE.TXT OK -AV
testing: AUTHVERI.FRM OK -AV
testing: OMBUDSMN.ASP OK -AV
testing: PKZIP.EXE OK -AV
testing: PKUNZIP.EXE OK -AV
testing: ZIP2EXE.EXE OK -AV
testing: PKZIPFIX.EXE OK -AV
testing: PUTAV.EXE OK -AV
Authentic files Verified! # PKW655
PKWARE Inc.
Thank you for using PKWARE! PKWARE Support BBS (414) 352-7176
No errors detected in compressed data of pkz110.exe.
- Usage of AI (artificial intelligence) tools by contributors is permitted, subject to the same terms and conditions as the LLVM AI Tool Use Policy, but this permission may be withdrawn at any time and without notice.
- The canonical home of this software is
https://github.com/johnsonjh/infozip-av, with a mirror on GitLab. - This software is intended to be secure 🛡️.
- If you find any security‑related problems, please don’t hesitate to open a GitHub Issue (or send an email to the maintainer).
-
The Shrink, Reduce, ZIP‑Implode, and Deflate64 compressors, the IBM CMPSC compressor and decompressor, the Xceed BWT, WZ‑JPEG, and WZ‑MP3 decompressors, and the PKAV and FWKCS additions to Info‑ZIP are provided under the
MIT‑0license, or, at your option, theInfo‑ZIP 2007‑Mar‑04orInfo‑ZIP 2009‑Jan‑02licenses. -
The Shrink, Reduce, and ZIP‑Implode decompression implementations are based on MIT licensed code from Jason Summers.
-
The LPAQ8 compression and decompression implementations are based on
MITlicensed code from Dr.W.X WangXuan95. -
The DCL‑Implode compression and decompression implementations use the
MIT‑0licensed PKDCLX routines. -
The Tamp compression and decompression algorithms used are derived from the
MITlicensed upstream reference implementation. -
The PPMd compression and decompression implementations are derived from the public‑domain 7‑Zip PPMd routines.
-
The Zopfli compression algorithm used is derived from the
Apache‑2.0licensed upstream reference implementation. -
The LZFSE compression and decompression implementations are derived from the
BSD‑3‑Clauselicensed upstream reference implementation. -
The Info‑ZIP software suites (Zip and UnZip, with included tools) are distributed under their respective
Info‑ZIP 2007‑Mar‑04andInfo‑ZIP 2009‑Jan‑02licenses.
atool‑ Script for managing file archives- Common ZIP ‑ Open‑source specification for the ZIP file format
hexdump‑zip‑ ANSI C89 implementation ofthejoshwolfe/hexdump-zipjohnsonjh/pkstuff‑ PKZIP/PKUNZIP/PKSFX/PKLITE utilitiespatool‑ Portable archive file manager- PKDCLX ‑ PKWARE DCL‑compatible Extended DCL‑Implode and DCL‑Explode
- PKWARE
APPNOTE.TXT‑ Current ZIP file format specification - WinZip WZ‑JPEG ‑ Method 96 JPEG Compression specification
zipdetails‑ Display details about the internal structure of ZIP files
