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
Verified file details
- Filename
- sample-100kb.tar.gz
- Exact size
- 102,400 bytes
- Displayed size
- 100 KB
- MIME type
- application/octet-stream
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/tar-gz/sample-100kb.tar.gz
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-500kb.tar.gz
Verified file details
- Filename
- sample-500kb.tar.gz
- Exact size
- 512,000 bytes
- Displayed size
- 500 KB
- MIME type
- application/octet-stream
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/tar-gz/sample-500kb.tar.gz
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-1mb.tar.gz
Verified file details
- Filename
- sample-1mb.tar.gz
- Exact size
- 1,048,576 bytes
- Displayed size
- 1 MB
- MIME type
- application/octet-stream
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/tar-gz/sample-1mb.tar.gz
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-5mb.tar.gz
Verified file details
- Filename
- sample-5mb.tar.gz
- Exact size
- 5,242,880 bytes
- Displayed size
- 5 MB
- MIME type
- application/octet-stream
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/tar-gz/sample-5mb.tar.gz
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-10mb.tar.gz
Verified file details
- Filename
- sample-10mb.tar.gz
- Exact size
- 10,485,760 bytes
- Displayed size
- 10 MB
- MIME type
- application/octet-stream
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/tar-gz/sample-10mb.tar.gz
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-50mb.tar.gz
Verified file details
- Filename
- sample-50mb.tar.gz
- Exact size
- 52,428,800 bytes
- Displayed size
- 50 MB
- MIME type
- application/octet-stream
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/tar-gz/sample-50mb.tar.gz
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-100mb.tar.gz
Verified file details
- Filename
- sample-100mb.tar.gz
- Exact size
- 104,857,600 bytes
- Displayed size
- 100 MB
- MIME type
- application/octet-stream
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/tar-gz/sample-100mb.tar.gz
See how TrueFileSize generates and measures sample files, or review the editorial policy.
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
| Feature | TAR.GZ | ZIP |
|---|---|---|
| Compression ratio | Better (solid archive) | Good (per-file) |
| Preserves Unix permissions | Yes (chmod, owner) | No |
| Symlinks | Yes | No |
| Random file access | No (must decompress all) | Yes (central directory) |
| Windows support | Needs 7-Zip or WSL | Built-in |
| Best for | Linux/macOS, source code, deploys | Cross-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
| Format | TAR (tape archive) + gzip compression |
| Extensions | .tar.gz, .tgz |
| Compression | DEFLATE (gzip, zlib) |
| Preserves | Unix permissions, ownership, symlinks |
| Streaming | Yes (can pipe stdin/stdout) |
| Standard | POSIX.1 (IEEE Std 1003.1) |
Frequently Asked Questions
tar.gz vs ZIP — Which should I use?
How to extract tar.gz on Windows, Mac, and Linux?
What is the difference between tar.gz and tar.bz2?
What is the difference between .tar.gz and .tgz?
Can I extract a single file from a tar.gz?
Other archive formats
Related reading
PDF Parsing and Text Extraction — A Practical Guide
Extract text, metadata, and structure from PDF files with pdf.js and pdf-parse. Handle scanned PDFs with OCR. Use sample PDFs plus large test files for stress cases.
Testing Word and Excel Uploads in Production
Validating DOCX and XLSX uploads — size limits, macro detection, corrupted files, and viewer compatibility. Sample office files for every edge case.
Chunked Video Upload with Resumable Transfers
Testing large video uploads with chunked, resumable transfers. tus protocol, multipart uploads, and progress tracking. Sample MP4 files up to 500MB.