ToolXkit Icon

Sample GZIP files

Free GZIP test files from 5 KB to 1 GB. Pick a size and download, or type any size you need.

  • 5 KB GZIP

    Log file, 0.0 MB unpacked

  • 10 KB GZIP

    Log file, 0.0 MB unpacked

  • 100 KB GZIP

    Log file, 0.5 MB unpacked

  • 500 KB GZIP

    Log file, 2.5 MB unpacked

  • 1 MB GZIP

    Log file, 4.9 MB unpacked

  • 5 MB GZIP

    Made on your device

  • 10 MB GZIP

    Made on your device

  • 25 MB GZIP

    Made on your device

  • 50 MB GZIP

    Made on your device · saved in pieces

  • 100 MB GZIP

    Made on your device · saved in pieces

  • 500 MB GZIP

    Made on your device · saved in pieces

  • 1 GB GZIP

    Made on your device · saved in pieces

Need another size?

Type any size from 5 KB to 1.00 GB. The file is made on your device. Nothing is uploaded or stored.

Free for any use, including commercial. Made by this site, with no third-party content and no signup.

What is inside

  • One server log with ISO timestamps and INFO, DEBUG, WARN and ERROR lines
  • Compressed at gzip level 6, the usual default
  • The 1 MB file unpacks to about 4.9 MB. Sizes above 1 MB, up to 1 GB, are made on your device by joining copies of the 1 MB file’s gzip member, which gzip unpacks as one longer log
  • A comment field in the gzip header makes each file exactly its labelled size
  • Decompressors skip the header comment, so the log you get back is unchanged

Try it with these tools

They run in your browser. The file you downloaded stays on your device.

About GZIP files

GZIP compresses a single file with the Deflate method. It has been the standard compressor on Unix and Linux since the early 1990s. A .gz file holds one file, not a folder; for many files people first join them into a .tar and then compress that into .tar.gz.

You see gzip everywhere: rotated server logs, database dumps, software source packages, and web pages sent from servers to browsers. Text such as logs usually shrinks to a small fraction of its size.

The mistake people make is expecting a list of files inside. A .gz file has none. Unpack it and you get one file back, named after the archive without the .gz ending. If that file is a .tar, it still needs a second step.

Sources: RFC 1952, GZIP file format (IETF) · GNU gzip manual (GNU)

Questions

How big is the file after I unpack it?

About five times bigger. The 1 MB file gives a log of about 4.9 MB, and every bigger file is copies of that gzip member joined together, so a 100 MB file unpacks to about 490 MB and 1 GB to about 4.9 GB. Check your disk space first.

What is the comment in the gzip header?

The gzip format allows an optional text comment before the compressed data. Here it is filled with spaces to set the exact file size. Standard tools such as gzip and 7-Zip ignore it when unpacking.

Is this a .tar.gz?

No. It is one log file compressed on its own, so unpacking gives a single .log file. For a tar archive, see the TAR samples.

Also searched as: sample gzip file download, dummy gz file, test gz file, example gzip file, 1 MB gz file, 10 MB gz file, 100 MB gz file, 1 GB gz file, free gz for testing.

For developers: exact bytes and SHA-256

Sizes are decimal (1 MB = 1,000,000 bytes). The hosted files never change between builds, so these checksums stay valid.

FileBytesSHA-256
sample-5kb.gz 5,000 bytes 7215da35ea080d3d8245421726cbaeb39cc6128dddc94e64183fc201a869122e
sample-10kb.gz 10,000 bytes 0cfb572b48dc5d44404e3e0c93a19a056112cf0204517f16a4fdcf73dcc6d5f1
sample-100kb.gz 100,000 bytes 033079d10cddb5356b30b4594ca24ac12e5428743631a11018ce46929746c36b
sample-500kb.gz 500,000 bytes 0d9a5a10a875c7cac63ee32dd175f220f9faa1a40215fdbb8b9c906daf76af0f
sample-1mb.gz 1,000,000 bytes 5df0efb985045d0ae1443e312b3f7bb654b0217cf1e4d7706a064ff5b93acbf9