HatchZip

Extract huge archives without needing double the disk space.

HatchZip is a free, open-source archive extractor for Windows, macOS and Linux that extracts ZIP, 7z, RAR and tar archives in place. It removes each part of the archive once the files in it are safely on disk, so it needs free space for the extracted files only, not for the files and the archive together. It comes as a desktop app and a command line tool.

A 180 GB archive that unpacks to 200 GB needs 380 GB of disk with WinRAR, 7-Zip or unzip, because the archive and the extracted files have to exist at the same time. HatchZip needs a little over 200 GB: it extracts from the end of the archive and cuts each finished part off the archive file, so the space comes back as it goes.

An animation: HatchZip extracts the last part of the archive into the folder, then cuts that part off the archive, so the disk never holds the archive and all the files at once.

Download

Windows macOS Linux

Windows 10 and 11, 64-bit. The macOS download is for Macs with Apple Silicon (M1 and later); for an older Intel Mac, get the Intel version. The Linux download is an AppImage that runs on most distributions; .deb and .rpm packages are below.

How to use it

  1. Install it. The Windows downloads are not code-signed yet, so Windows may show "Windows protected your PC": choose More info, then Run anyway. On a Mac the app is signed and notarized, so at most macOS asks once whether to open it.
  2. Right-click the archive, choose HatchZip, then Extract here. On Windows 11 the menu is under Show more options. On a Mac, turn on Show in the Finder context menu in Settings, Integration once, then right-click an archive in Finder, choose Quick Actions, Customise…, and tick the HatchZip actions; after that they are under Quick Actions.
  3. Or open the HatchZip app, open the archive or drag it onto the window, and choose Extract.

HatchZip shows whether the files will fit before it changes anything. The archive is used up as the files come out, so when it finishes, only the extracted files are left.

The HatchZip window with an archive open: the list of files on the left, and on the right the disk space it needs, compared with a standard extraction.

All downloads

Command line
PlatformFileType
Windows x64hatchzip-x86_64-windows.zipzip
macOS Apple Siliconhatchzip-aarch64-macos.tar.gztar.gz
macOS Intelhatchzip-x86_64-macos.tar.gztar.gz
Linux x64hatchzip-x86_64-linux.tar.gztar.gz
Linux ARM64hatchzip-aarch64-linux.tar.gztar.gz
Desktop app
PlatformFileType
Windows x64HatchZip-x64-setup.exeInstaller
Windows x64HatchZip-x64.msiMSI installer
Windows x64HatchZip-x64-portable.zipPortable zip
macOS Apple SiliconHatchZip-aarch64.dmgDisk image
macOS IntelHatchZip-x86_64.dmgDisk image
Linux x64hatchzip_amd64.debdeb package
Linux x64hatchzip-x86_64.rpmrpm package
Linux x64HatchZip-x86_64.AppImageAppImage

The MSI installs the same app as the setup, for deployment tools; install one or the other. The portable zip holds the same app and command line tool: unzip it anywhere and run hatchzip-gui.exe. From 0.1.12 the macOS app, the dmg and the command line tool are signed with a Developer ID and notarized by Apple; they need macOS 11 or later. The first update from an earlier build may ask once more for access to protected folders, because the signature changed. The Windows downloads are not code-signed yet; they will be signed through the SignPath Foundation, as the code signing policy describes. On Windows choose More info, then Run anyway.

HatchZip does not use the network. To check that a download is genuine, compare its SHA-256 checksum or verify its signed build provenance: Verify your download.

Or install from a terminal. Linux and macOS:

curl -fsSL https://raw.githubusercontent.com/xevrion/hatchzip/main/install.sh | sh

Windows, in PowerShell:

irm https://raw.githubusercontent.com/xevrion/hatchzip/main/install.ps1 | iex

Or, with Rust installed: cargo binstall hatchzip downloads the release build, and cargo install hatchzip builds it from source. The command line tool is also on PyPI (pipx install hatchzip, with RAR support, on Linux, macOS and Windows x64) and in a Nix flake (nix run github:xevrion/hatchzip).

Then run hatchzip check game.zip to see whether it fits, and hatchzip extract game.zip to extract it. hz works as a short name, and man hatchzip has the full manual.

All releases

What it does

  • Extracts ZIP (including ZIP64 and self-extracting .exe files), 7z, plain tar, .tar.gz, .tgz, .tar.bz2, .tbz2, .tbz, .tar.xz, .txz, .tar.zst and .tzst, and split archives: .001, .002, ... sets of ZIP or 7z, and native split ZIPs (.z01, ..., .zip), each part deleted once everything in it is out.
  • Extracts RAR 5 and RAR 4, single files and volume sets (.part1.rar, ... or .rar, .r00, ...), freeing the archive file by file and deleting each volume once it is empty, including archives made with "Encrypt file names". A solid RAR can only be extracted while keeping the archive. RAR support is in the downloads from this site and the releases page, not in cargo install hatchzip.
  • A compressed tar (.tar.gz, .tar.bz2, .tar.xz or .tar.zst) is read once from start to end before anything changes, so a damaged one is refused untouched. It then gives its space back as it extracts on NTFS (Windows), APFS (macOS), ext4, XFS, btrfs and other filesystems that can free part of a file. On FAT32 and exFAT it still extracts and resumes, but needs room for the archive and the files at once.
  • Checks that the extraction will fit before it changes anything.
  • Shows what is inside as a folder tree in the app, with folder sizes, before anything changes.
  • The desktop app is in English, Spanish, Hindi, Russian, Simplified Chinese, Swedish and Turkish. It follows the system language, and Language in Settings picks another.
  • Every option of the desktop app is in one Settings window, opened from the File menu, the gear at the top right of the window, or Ctrl+, (Command+, on a Mac). It holds the language and appearance, what happens after extracting, whether the archive is removed, the reserved space, the default destination, what to do when a file already exists, and the right-click menu.
  • Can also extract normally and keep the archive, when there is room for both: --keep-archive, an option in the app, or Extract here (keep archive) in the right-click menu. If keeping it does not fit, it says how much extracting in place needs instead.
  • Extracts several archives one after another, checking the space for each just before it starts. The first one that does not complete stops the run, with a list of what was extracted and what was not.
  • With hatchzip extract --nested, also extracts the archives found among the files it wrote, one level deep, each into a folder next to it. A file counts as an archive only when both its extension and its contents say so, so a .jar or a .docx is left alone. It lists them and asks once before extracting them; --yes skips the question. In the desktop app, the screen shown when an extraction finishes offers the same.
  • hatchzip list --json and hatchzip check --json print one JSON document for scripts: each archive's entries, or its disk-space plan, with sizes in bytes and times in UTC.
  • Extracts only what you choose: pick files or folders in the app's contents list with Ctrl or Command-click, Shift-click or Space and choose Extract selected, or use hatchzip extract game.zip --only game/saves. The archive is always kept for a partial extraction.
  • On Windows and macOS, files and folders can also be dragged from the contents list into a folder in Explorer or the Finder, and only those are extracted there; the archive is kept. On Windows up to 1 GB can be dragged at once; for more, use Extract selected. Linux has no drag out yet.
  • Keeps 2 GB of free space by default, so the disk never fills to zero. Change it with --keep-free, or Reserved space in the app's settings.
  • Can be stopped with Ctrl+C, or crash, at any moment. Run the same command again and it picks up where it left off.
  • Checks each file's CRC-32 as it extracts. A damaged file stops the run, and it stays in the archive.
  • Checks every volume against an .sfv file named after the archive, when one is next to it, before anything changes.
  • Never overwrites a file that is already there, so "extract here" is safe.
  • Opens password-protected ZIP, 7z and RAR archives. It checks the password before anything is deleted, and never saves it.
  • Works on any filesystem that can shrink a file: ext4, btrfs, XFS, NTFS, APFS, and exFAT and FAT32 USB drives.

Measured results

The same 200 MB of game data (21 files), packed by the real tools, extracted on a 220 MiB disk with about 50 MB free:

Archiveunzip / 7-ZipHatchZip
ZIP, 180 MBunzip ran out of space at file 6 of 21Finished, every file byte-identical
7z from 7-Zip 25.01, -ms=20m (10 solid blocks)Needs 380 MBFinished in 0.64 s, every file byte-identical
7z split into 5 volumes of 40 MBNeeds 380 MBFinished; volumes deleted one at a time, peak 210 MB used
tar from GNU tar, 200 MBNeeds 400 MBFinished in 0.12 s, every file byte-identical
7z from 7-Zip with default settings (1 solid block)Needs 380 MBRefused before touching anything: one solid block can't be freed until all of it is out, so it needs 200 MB free

ZIP extraction of the same data took 0.25 to 0.35 s, against 1.48 to 1.50 s for unzip 6.00, including an fsync unzip skips. For crash safety, the process was killed at both unsafe moments of a batch at many points of each format's run; every resume finished with identical output.

Measured on Fedora 43, Intel Core i7-14700HX, SK Hynix NVMe SSD, warm page cache; the disk-space runs used a 220 MiB tmpfs to stand in for a full laptop disk, the speed runs ext4. Speed comes from decompressing files in parallel, so an archive holding one giant file extracts at the speed of a single core.

Limits

  • A 7z made with 7-Zip's default settings can be one solid block. HatchZip can only free it once all of it is out, so it needs free space for the whole block. hatchzip check tells you before anything changes.
  • A .tar.zst made as a single frame, which is what the zstd command writes even with -T0, or one whose frames carry no checksum, is extracted only while keeping the archive: --keep-archive, or in the app, Remove the archive during extraction turned off. One made by pzstd, in the seekable format or by concatenating files holds several frames and gives its space back as it extracts.
  • A .tar.xz made as a single block (what xz -T1 writes), or without integrity checks, is extracted only while keeping the archive.
  • A solid RAR decodes front to back in one pass, so it can't be freed as it goes; it is extracted only while keeping the archive. RAR archives with links are refused before extraction, and one with encrypted file names cannot be restored after a partial extraction, only completed.
  • The archive is used up as it extracts. If the download itself is damaged, the files before the damage come out and the archive is partly gone. Use --verify-first when you can't download it again.

Questions

Is HatchZip safe?

HatchZip checks that the extraction fits before it changes anything. A file is written and flushed to disk before the part of the archive holding it is cut off, so a crash leaves each file either extracted or still in the archive. Every file's CRC-32 is checked, and a damaged file stops the run. It is open source and makes no network connections. The Mac app is signed with a Developer ID and notarized by Apple, and every download has a SHA-256 checksum and signed build provenance. To check a download is genuine, see Verify your download.

Does HatchZip need internet access?

No. HatchZip has no networking code and no networking library, no telemetry and no accounts, and it never checks for updates itself. It reads the archive on your disk and writes the files next to it. Its CI fails if an HTTP, TLS or socket library enters the dependencies. The desktop app's two links, to the source code and to the latest release under Help, Check for updates, open in your web browser. To extract an archive straight from a URL, HatchZip Link is a separate open-source tool that checks whether it fits before downloading, resumes the download and then extracts it in place with HatchZip's engine; HatchZip itself stays offline.

Can AI agents use HatchZip?

Yes. HatchZip has an agent skill for Claude Code and other agents that read the Agent Skills format. In Claude Code, install it with /plugin install hatchzip --marketplace xevrion/hatchzip. When an archive won't fit, or unzip or tar fail with "No space left on device", the agent runs hatchzip check first, keeps the archive when there is room, and asks you before extracting in place, since that removes the archive.

Which archive formats does HatchZip extract?

HatchZip extracts ZIP (including ZIP64 and self-extracting .exe files), 7z, RAR 5 and RAR 4, plain tar, .tar.gz and .tgz, .tar.bz2, .tbz2 and .tbz, .tar.xz and .txz, .tar.zst and .tzst, split .001 archives of ZIP or 7z, native split ZIPs (.z01, ..., .zip), and RAR volume sets. It opens password-protected ZIP, 7z and RAR archives. A solid RAR is extracted only while keeping the archive, and so is a .tar.zst made as a single frame, which is what the zstd command writes by default.

How much free space does HatchZip need?

At its peak the drive holds about the extracted files, plus the largest part HatchZip can free at once: one file for ZIP, tar and RAR, one solid block for 7z. A 180 GB archive that unpacks to 200 GB takes a little over 200 GB of the drive, not 380 GB. The archive's 180 GB are already in use, so the free space needed is about 20 GB plus that largest part, and HatchZip keeps 2 GB free by default. hatchzip check shows the exact figure and changes nothing. To see the free space an archive needs in your browser, without installing anything, pick it on How much space do I need to extract this?

What happens if HatchZip crashes or is stopped?

HatchZip saves its progress in small files next to the archive. After a crash, a power cut or Ctrl+C, open the same archive in the app or run the same command again, and it continues where it stopped. To give up instead, hatchzip restore turns what is left into a normal archive holding the files not yet extracted.

Does HatchZip work on FAT32 and exFAT drives?

Yes. ZIP, 7z, tar and RAR archives are freed by shortening the archive file, which works on every filesystem, including FAT32 and exFAT USB drives. A compressed tar (.tar.gz, .tar.bz2, .tar.xz or .tar.zst) frees space as it goes only where the filesystem can free part of a file, such as NTFS, APFS, ext4, XFS and btrfs. On FAT32 and exFAT it still extracts, but needs room for the archive and the files at once.

Guides