GZ

GZ archive files for compression testing

Test GZ uploads, gzip streams, compression levels, integrity checks, and decompression limits for logs, backups, and data exports.

Verified . The local inspector recognizes the gzip magic; CRC32 and expanded size are checked against real GZ inputs, while uncompressed baselines come from the TXT and JSON generator.

Identify GZ files

Magic signature
1F 8B (gzip magic)
Registered MIME
application/gzip

A gzip stream holds a header, DEFLATE-compressed data, and a CRC32 plus original-size trailer. Multi-member streams concatenate several gzip members, so readers must handle the full member sequence rather than stopping at the first trailer.

Choosing GZ

GZ is a single-file gzip stream supported by operating systems, web servers, and data pipelines. It compresses one file, not a file set, so multi-file bundles usually pair TAR with gzip. The local generator does not produce GZ streams, so validate GZ inputs with the file inspector and use the TXT and JSON generator for deterministic uncompressed baselines.

Treat GZ as one compressed stream, not a multi-file archive.

Verify the CRC32 and original size trailer instead of trusting the header alone.

Enforce decompression limits, since a small GZ file can expand to a very large output.

Common test cases

  • Compressed upload validation
  • Log and export handling
  • Decompression limit tests

Invalid and boundary cases

  • Multi-member stream read as a single member
  • Truncated trailer with intact compressed data
  • Corrupt CRC32 with a valid header

GZ fixture matrix

This format is generated locally in the browser and does not receive a permanent SEO URL.

Open the local generator

Continue testing

Related formats

Copied