How LinkUnzip reads a zip without downloading all of it

A zip keeps its index at the end of the file. LinkUnzip reads that index first, asks the server for only the parts it needs, checks every file and never saves the zip.

The short answer

LinkUnzip asks the server for the last part of the zip, where the list of files lives. With that list it knows where every file starts, so it downloads only the files you chose, unpacks and checks each one inside the browser and saves it. The zip itself is never saved.

This works because most download servers can send any part of a file on request (HTTP Range requests). For the few that can't, like GitHub's Download ZIP, LinkUnzip reads the zip once from start to end instead, and still never saves it.

Where a zip keeps its index

A zip file is a row of compressed files followed by an index, called the central directory. The index lists every file: its name, its size, where its data starts and a CRC-32 checksum. A short end record at the very end says where the index begins.

A zip file: compressed files first, then the central directory, then the end record. LinkUnzip reads the last two first. file 1 header + data file 2 header + data ... file N header + data central directory the index end record read first then only the files you chose A zip file: compressed files first, then the central directory, then the end record. LinkUnzip reads the last two first. file 1 header + data file 2 header + data ... file N header + data central directory the index end record read first then only the files you chose
The index sits at the end, so a tool that can ask for the end of a file sees the whole list without downloading the files themselves.

Step by step

  1. Probe. A one-byte Range request tells LinkUnzip the size of the zip and whether the server can send parts of the file.
  2. Index. It fetches the last 64 KB or so, finds the end record (and the ZIP64 one for big archives), then downloads the whole central directory in one request, with a progress bar for big ones. The index of the last few zips stays on your PC for a week, so a zip you opened before opens again without fetching it, as long as the file on the server hasn't changed.
  3. Plan. It checks every selected file (paths, compression methods, overlaps), then groups neighbouring files into a few spans. Gaps over 1 MB between chosen files start a new span, so files you skipped are not downloaded.
  4. Extract. Each connection makes one Range request per span and walks its files: the local header, then the data through the browser's own deflate decoder while computing the CRC-32, then the size and CRC check. Only then does the file get its real name.
  5. Retries. After a network error LinkUnzip tries again, with a pause that grows each time. A file stored without compression carries on from the byte where it stopped; a compressed one starts again, because the decoder can't pick up halfway. Finished files are never fetched again.

Does LinkUnzip need a program on my PC?

No. Since version 1.1.0 every step above runs inside the browser, in a hidden page of the extension. That is why the work carries on when you close the popup. There is nothing else to install.

The optional helper for Windows does the same steps natively. It adds servers without Range support, Open folder, the free space on the drive and more speed on zips with many small files: Blender 4.2 for Windows took 15 to 22 s with the helper and 52 s without it.

How are the files saved?

Each checked file goes either into Downloads, in a folder named after the zip, or into a folder you chose in Settings. Into Downloads, the checked file is handed to Chrome's downloads. In a folder you chose, Chrome's temporary file is renamed to its real name.

ComparedDownloads (the default)A folder you choose
SetupNonePick it once and allow Chrome to let LinkUnzip edit files there
Speedabout 6 files a second5,518 files in 52 s
The browser asks to keep.dll, .ini, .cfg, .manifestNothing

Browsers don't let extensions pick Downloads, Desktop or Documents themselves, only folders inside them, such as Desktop\LinkUnzip. The guide shows how to pick one and what the Keep step is.

Can every server do this?

Most can. Download servers, CDNs and cloud storage usually answer a Range request with status 206, Partial Content, and send just that part. Some servers build the file while they send it and can only answer 200 with the whole file; GitHub's Download ZIP is the best-known one.

You can check a link yourself in PowerShell or Command Prompt. It prints 206 when the server can send parts of a file, and 200 when it can't:

curl.exe -s -o NUL -r 0-0 -w "%{http_code}" https://example.com/big.zip
ServerAnswerWhat LinkUnzip does
download.blender.org206Cost Analysis, File List, only the chosen files
images.cocodataset.org206Cost Analysis, File List, only the chosen files
GitHub release downloads206Cost Analysis, File List, only the chosen files
GitHub Download ZIP (codeload.github.com)200Extract everything (one pass): every file, zip not saved

Checked on 5 October 2026.

When the server can't: one pass

Without Range support, LinkUnzip reads the archive once from start to end with one connection and extracts each file as it arrives, including files whose sizes only follow their data. Since version 1.2.0 this runs in the browser; the optional helper for Windows does the same when it is turned on. There is no size preview in this mode, and in the extension every file in the zip is extracted. At the end the zip's own index is compared with what came. The zip is still never saved: 1,562 files and 35.1 MB came out of a GitHub archive from 13.1 MB read in one pass (measured with the helper).

On the command line, --stream works with --include, so you can keep only one folder; the whole archive is still read once.

How every file is checked

LinkUnzip computes each file's CRC-32 while it unpacks it. When the data ends, the size and the checksum are compared with the ones stored in the zip's index. Only a file that matches gets its real name; one that doesn't never appears. The done screen says how many files were verified.

The done screen after taking one photo out of COCO train2017 with the extension alone: 1 file verified, zip stored on disk 0 B, 12.2 MB downloaded in 5 requests, of which the zip's index was 11.9 MB. The done screen after taking one photo out of COCO train2017 with the extension alone: 1 file verified, zip stored on disk 0 B, 12.2 MB downloaded in 5 requests, of which the zip's index was 11.9 MB.
One photo out of the 18.01 GB COCO train2017 zip: 12.2 MB downloaded, 11.9 MB of it the index.

Safety with untrusted zips

LinkUnzip treats every archive as untrusted:

  • Paths that would escape the folder (.., absolute paths, drive letters) and duplicate entries are refused before anything is written.
  • Names Windows can't store are renamed, and LinkUnzip says so.
  • No file is ever written past the size the index declares for it, which stops zip bombs.
  • Files with compression methods it doesn't support are named instead of skipped silently. Password-protected files are checked with the password before anything is written.
  • Previews show HTML as source and never run a script from the zip.

Measured runs

Measured on the developer's PC in Chrome. "Browser" means the extension alone; "Helper" means with the optional helper for Windows. Sizes as Windows shows them (1 GB = 1024 MB).

ArchiveEngineZipWrittenDownloadedZip on diskTime
Blender 4.2Browser365.8 MB925.6 MB365.2 MB0 B52 s
Blender 4.2Helper365.8 MB925.6 MB365.2 MB0 B15 to 22 s
One COCO photoBrowser18.01 GB219 KB12.2 MB0 Babout 6 s
GitHub Download ZIPHelper-35.1 MB13.1 MB0 B-

Blender 4.2 for Windows has 5,518 files and was extracted into a folder you choose. COCO train2017 has 118,287 files. The GitHub archive (1,562 files) was read in one pass in stream mode.

For Blender in the browser, the 365.2 MB came in 8 requests, including the zip's 1.0 MB index, and every file was verified; a normal download-then-extract needs 1.26 GB. For COCO, the 12.2 MB came in 5 requests: the 11.9 MB index and the 219 KB photo. Reading the index took 5.1 s, the photo 0.8 s.

Saving into Downloads instead of a folder you choose, the browser saves about 6 files a second, so a zip with thousands of files takes minutes.

Limits

  • Stored and deflate entries only. No encryption, multi-disk archives or self-extractors.
  • File dates and permissions are not restored; symbolic links are written as small text files.
  • One big file uses one connection. After a dropped connection, a compressed file starts again; a file stored without compression carries on.
  • Without the helper, no free-space check: browsers don't tell extensions how much room a drive has.
  • The extracted files still need their disk space. What LinkUnzip saves is the room the zip would take.

The code is open source: read it on GitHub.

Stop saving zips you only unpack once.

Free for Chrome, Edge and Brave. Nothing else to install, no account, no ads, no uploads.

On a phone? LinkUnzip runs in Chrome, Edge and Brave on a computer.