Your files stay on your device

# Open or make a .gz file

Compress a file to .gz or open a .gz file.

Drop a .gz file to decompress

.gz, .tgz · Up to 256 MB · stays on your device
Choose a .gz fileor pasteNo file handy? Try a sampleOptionsDownload

## What the trailer checks

RFC 1952 defines the gzip format. Every file opens with the bytes 1F 8B, followed by a header and a DEFLATE stream. The last eight bytes hold two little-endian values: a CRC-32 checksum of the original data and the original length. The tool recomputes both from the output and compares them before offering a download.

 1F 8B Gzip magic number, the first two bytes of the file
 CRC-32 Checksum of the uncompressed data, four bytes before the end
 ISIZE Original length modulo 2^32, in the final four bytes

## Length limits and wrap

ISIZE keeps only the low 32 bits of the length, so a stream of 4 GB or more would wrap around. This tool caps single streams at 256 MB, far below that point, so the stored value is the real length. A .tgz file is a tar archive compressed with gzip, so decompressing it gives you a tar archive, not loose files. Gzip compresses one stream, not a folder. Bundle files into a tar first if you need several in one file.

## More PDF & file tools

- [ZIP files](/files/zip)
- [Tar archives](/files/tar)
- [Brotli files](/files/brotli)
[All PDF & file tools](/files)

Was this tool useful?
YesNo

---

Canonical HTML: https://nutter.tools/files/gzip
Markdown version: https://nutter.tools/files/gzip.md
Plain-text version: https://nutter.tools/files/gzip.txt
Agent index: https://nutter.tools/llms.txt

