UnpackForge

Open a GZ file

A .gz file is one file compressed with gzip: a 10-byte header starting 1F 8B, a DEFLATE stream, and an 8-byte trailer holding the CRC-32 and length of the original. Database dumps, server logs and data exports arrive this way — backup.sql.gz, access.log.gz, export.csv.gz — and on Windows, a Chromebook or a locked-down work machine, opening one can mean installing something first.

This page decompresses it with the browser's own DecompressionStream, falling back to fflate's streaming inflater where that is missing or where the file holds several gzip members back to back. The decompressed file is named from the gzip header's stored name where there is one, otherwise from your file name minus .gz. If the decompressed data turns out to be a tar, it is read as a .tar.gz and you get the file list instead.

The archive is read by code running in this tab. It is not uploaded, not queued on a server, and not seen by anyone but you — which also means there is no size limit imposed from outside, only what your own device can hold.

  1. Step 1Drop a .gz file. Gzip is recognised from its 1F 8B signature, whatever the file is called.
  2. Step 2The stream is decompressed and checked against its CRC-32 trailer. A single file is listed with its size; a tar inside is listed entry by entry.
  3. Step 3Download the decompressed file — or, for a tarball, everything or a selection, as separate files or one ZIP.

Drag archives here

.gz — or anything else, and the format will be identified from the file’s own bytes. Files stay on this device.

What this page will not do

Every limit below is a real one, checked against real archives. None of them are upsells — there is no paid tier, and nothing here gets better by signing in.

  • The whole gzip stream is expanded in memory before anything is offered. Gzip cannot be read from the middle, and the decompressed bytes have to exist before they can be handed to you; the memory budget on the formats page decides the largest file this device can take.
  • Gzip's trailer records the original size in only 32 bits, so it wraps past 4 GiB and is never trusted to enforce a limit. The size ceiling is enforced on the bytes actually produced, as they are produced, so a gzip bomb is stopped at the limit rather than after it has filled the tab.
  • Only gzip is decompressed. A standalone .bz2, .xz or .zst — and .tar.bz2, .tar.xz and .tar.zst — is recognised from its own bytes and refused with its name, rather than mis-parsed.
  • Bytes after the last complete gzip member are ignored with a warning, as gzip itself does, and only when the member before them passed its CRC-32 and length check.
  • The gzip header's stored modification time is not applied to the download; your browser dates the file when it saves it.

If it did not work

“This gzip file is damaged or incomplete”

Why: The compressed data ended early or its CRC-32 does not match. Gzip stores both in its trailer, so a cut-off download is detected rather than producing a quietly truncated file.

Do this: Download the file again and compare its size with the source.

A list of files appeared instead of one file

Why: The decompressed data is a tar, so the .gz was really a .tar.gz.

Do this: That is the correct result. Extract everything as a ZIP to keep the folders, or pick the files you need.

“bzip2 archives are recognised but not supported” (or xz, Zstandard)

Why: The file is compressed with a different algorithm, whatever its extension says.

Do this: Use bunzip2, xz -d or zstd -d on a desktop, or 7-Zip. Nothing here will pretend to read it.

The file is larger than this device's limit

Why: Highly compressible data — logs, SQL dumps — can expand twenty times or more.

Do this: Decompress it on a desktop with gzip -dk file.gz (keeps the original) or gunzip -c file.gz > file.

Questions

What is the equivalent command?

gunzip file.gz (or gzip -d file.gz) decompresses in place and deletes the .gz; gzip -dk file.gz keeps it; gunzip -c file.gz > file writes to a name you choose. For a tarball, tar -xzf file.tar.gz does both layers at once.

What is the difference between .gz and .zip?

A .gz holds exactly one compressed stream with no file list; a .zip is a container of many files, each compressed separately, with a central directory. That is why folders are packed into a tar first and then gzipped — a .tar.gz.

Does it handle multi-member gzip files?

Yes. RFC 1952 lets a .gz hold several members back to back — cat a.gz b.gz > both.gz, rotated logs and BGZF files all produce them — and the result is every member's data in order. Each member's CRC-32 and length are checked.

Why is the name different from my file?

gzip can store the original file name in its header (gzip -N restores it). When it is there, that name is used; otherwise the .gz extension is dropped from your file's name.