Skip to content
>_ TrueFileSize.com

Sample TAR.GZ Download — Free Gzip Tarball Test Files

Download free gzip sample files in tar.gz format — 100KB to 100MB with exact sizes. Use these tarball test files to verify extraction on Windows, Mac, and Linux, test CI/CD deployment pipelines, and benchmark gzip decompression. TAR.GZ is the default archive format for source code distribution, deployment packages, backups, and Docker layers.

sample-100kb.tar.gz

100 KB

sample-500kb.tar.gz

500 KB

sample-1mb.tar.gz

1 MB

sample-5mb.tar.gz

5 MB

sample-10mb.tar.gz

10 MB

sample-50mb.tar.gz

50 MB

sample-100mb.tar.gz

100 MB

Use cases for sample tar.gz files

  • Testing tarball extraction in CI/CD deployment pipelines
  • Verifying tar.gz upload handling in web applications
  • Testing package managers and artifact registries (npm, PyPI)
  • Benchmarking gzip decompression performance
  • Testing backup/restore workflows on Linux servers
  • Validating Docker build context handling

TAR.GZ vs ZIP — When to use which

FeatureTAR.GZZIP
Compression ratioBetter (solid archive)Good (per-file)
Preserves Unix permissionsYes (chmod, owner)No
SymlinksYesNo
Random file accessNo (must decompress all)Yes (central directory)
Windows supportNeeds 7-Zip or WSLBuilt-in
Best forLinux/macOS, source code, deploysCross-platform, Windows users

How to create and extract tar.gz

# Create a tar.gz archive
tar -czf archive.tar.gz folder/

# Extract a tar.gz archive
tar -xzf archive.tar.gz

# List contents without extracting
tar -tzf archive.tar.gz

# Extract to a specific directory
tar -xzf archive.tar.gz -C /target/dir/

# Node.js (using tar package)
const tar = require('tar');
await tar.x({ file: 'archive.tar.gz', cwd: '/target' });

Technical specifications

FormatTAR (tape archive) + gzip compression
Extensions.tar.gz, .tgz
CompressionDEFLATE (gzip, zlib)
PreservesUnix permissions, ownership, symlinks
StreamingYes (can pipe stdin/stdout)
StandardPOSIX.1 (IEEE Std 1003.1)

Frequently Asked Questions

Other archive formats

Related reading