Skip to content
Novus Examples
gz305 B

GZ - Gzip Single File

A single text file compressed with gzip — the container-free codec on its own, for testing decompression and codec detection.

gz

Single-file gzip stream

305 B
Contains
sample.txt
Codec
gzip
Uncompressed
472 B
Compressed
305 B
Compressed to 64.6% of original35.4% saved

A container-free gzip stream — decompress it to recover sample.txt. The bytes are the compressed data, so there is no inline content preview.

Specifications

Format
gzip (single file)
Codec
gzip
Original Name
sample.txt
Original Bytes
472

What is a .gz file?

GZ is a file compressed with gzip, using the DEFLATE algorithm within a simple single-stream container that stores one compressed file plus a small header and checksum. It compresses a single stream rather than bundling multiple files. It is ubiquitous for compressing logs, tarballs, and HTTP responses.

How to use this file

Use an example GZ to test gzip decompression, streaming inflate, checksum verification, and pipelines that transparently handle gzip-encoded content.

How to use this file for testing

“GZ - Gzip Single File” is a deterministic Novus Examples fixture for Conversion testing. The same content exported across many formats and linked as a group, so you can convert one and diff against the expected twin.

Documented properties for this file: gzip (single file). Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Archive fixtures are documented down to their member list (shown on this page) and are deliberately safe — no zip bombs, executables, or hidden payloads. Test extractors against nested, unicode, empty, and encrypted variants.

Code examples

gunzip -k sample.txt.gz     # keep original
zcat sample.txt.gz | head

Generated by generation/archives.py. Free for any use, no attribution required — license.