Download .TGZ Sample Files

Jump to:     File Information     Download     How to Open

What is a TGZ File?

A TGZ file is a TAR archive compressed with gzip. It is exactly the same as a .tar.gz file, just with a shorter extension that dates from systems limited to three-letter extensions. TAR bundles the files and keeps their folder structure and Unix permissions, and gzip then compresses the whole bundle as one stream.

TGZ is common for software packages and backups; npm packages, for example, are .tgz files. Linux, macOS and Windows 10 and 11 can extract it with the built-in tar command.

Download TGZ Sample Files

The three TGZ samples below contain the same files as our ZIP, RAR and TAR samples, so you can compare the formats directly.

[3.7 MiB]
[16.4 KiB]
[3.4 MiB]

TGZ Sample File Details

SampleSizeContents
Sample1.TGZ3.71 MB1 MP3 audio file
Sample2.TGZ16.4 KB2 XLSX spreadsheets
Sample3.TGZ3.41 MB4 files with a .jpe extension (one-page PDF documents, not JPEG images)

All three are gzip-compressed POSIX pax archives created on Unix. The files are stored at the top level, without a folder, with permissions 755.

What You Can Test With These TGZ Files

  • Extraction: tools, libraries and CI scripts that unpack gzip and TAR in one step.
  • Extension handling: apps that must treat .tgz and .tar.gz the same way.
  • Package-style archives: the same layout tools such as npm use.
  • Permissions: check that the 755 permissions survive extraction.
  • Compression comparisons: the same files are available as ZIP, RAR and TAR.

How to Extract a TGZ File

# List the contents without extracting
tar -tzvf sample-1.tgz

# Extract into the current folder
tar -xzvf sample-1.tgz

The same tar commands work on Windows 10 and 11. 7-Zip, PeaZip and WinRAR can open TGZ files too, and renaming a .tgz file to .tar.gz changes nothing.

TGZ vs ZIP vs RAR vs TAR: The Same Files Compared

Contents (original size)ZIPRARTGZTAR (no compression)
1 MP3 file (3,902,902 bytes)3,893,944 bytes3,892,989 bytes3,888,579 bytes3,911,680 bytes
2 XLSX spreadsheets (25,365 bytes)20,294 bytes20,141 bytes16,824 bytes30,720 bytes
4 .jpe files (3,701,429 bytes)3,578,906 bytes3,561,848 bytes3,578,399 bytes3,706,880 bytes

TGZ makes the smallest archive for the MP3 and the spreadsheets because gzip compresses all files as one stream, while ZIP and these RAR samples compress each file separately. RAR wins for the images. The differences are small for MP3 and JPEG data, which is already compressed. TAR does not compress at all and pads its output to full 10 KB records, which is why 25 KB of spreadsheets becomes a 30 KB TAR file.

Gzipped Tar File (.TGZ)

Developer:

N/A

Category:

Format:

Binary

MIME Type:

application/gzip

More Filetypes