Download a sample TAR archive of any size
Get a ustar archive with two text files, at the exact byte count you need for an upload or extraction test.
1 MB = 1,000,000 B · 1 MiB = 1,048,576 B
Advanced: test an upload limit
Enter the byte limit above, then choose one byte below, the exact limit or one byte above. Each choice uses the same base: 10,485,760 B. Generate and download each file to test your endpoint.
How is the sample TAR file built?
Each archive holds README.txt and payload.txt in POSIX ustar format, with 512-byte headers, correct checksums and the two zero blocks that mark the end. Tar archives grow in 512-byte steps, so for sizes that are not a multiple of 512 the last bytes are zeros after the end marker. Tar tools stop at the end marker and ignore them, the same way they ignore the blocking padding many tar writers add.
The smallest valid TAR file is 2,560 bytes; any byte count from there up to 2 GiB can be selected. MIME type: application/x-tar.
Which TAR size do you need?
What is inside a 1 MiB TAR file?
The 1 MiB sample contains README.txt (78 bytes) and payload.txt (1,046,016 bytes of repeated plain-text lines). Both tar -tvf and Python's tarfile list and extract it without warnings.
When is a sample TAR file useful?
- Testing upload of release bundles and backups that are packed with tar.
- Checking that an extraction service limits the unpacked size and path names.
- Comparing upload handling of .tar and .tar.gz files of the same content.
Questions about TAR test files
Is it compressed?
No. A .tar file only bundles files. Compress it with gzip to get a .tar.gz, or use the GZ generator for a gzip file.
Will Windows open it?
Windows 11 opens tar archives in File Explorer, and 7-Zip opens them on any Windows version.
Format reference and related tools
Format reference: GNU tar, basic tar format.
Other formats in this family (Archives): ZIP · BIN · GZ.
Related: ZIP test files · BIN test files · Bytes to MB converter
Noticed an issue with this test file? Report an issue →