Free TAR sample, test and dummy files
The Unix archive format: files concatenated with headers, without compression. Download valid TAR test files in 18 exact sizes, from 5 KB to 100 MB, each with a checksum. Or create one of any size up to 1 GB.
- Extension
- .tar
- MIME type
- application/x-tar
- Kind
- Binary
- Category
- Archives
Create a TAR file of any size
Choose any size from 2,560 bytes to 1 GB, in steps of 512 bytes. The file is made in your browser, so nothing is downloaded from our server. Smaller files usually finish quickly; generation time depends on your device and format. Larger ones are streamed straight into your downloads list in browsers that support it (current Chrome, Edge and Firefox on computers and Android); elsewhere, such as Safari and every browser on iPhone and iPad, the largest size is lower and is shown below.
TAR files by size
Every file below is a valid Tape archive file of exactly the stated size. Open a file's page for its checksum and contents. TAR files cannot be displayed by a browser, so their pages show the file's details instead of a preview.
| File | Size | Contents | Download |
|---|---|---|---|
| 5 KB TAR samplesample-tar-5kb.tar | 5 KB5,120 bytes | Entries: 2 | Download TAR |
| 10 KB TAR samplesample-tar-10kb.tar | 10 KB10,240 bytes | Entries: 2 | Download TAR |
| 25 KB TAR samplesample-tar-25kb.tar | 25 KB25,600 bytes | Entries: 2 | Download TAR |
| 50 KB TAR samplesample-tar-50kb.tar | 50 KB51,200 bytes | Entries: 2 | Download TAR |
| 100 KB TAR samplesample-tar-100kb.tar | 100 KB102,400 bytes | Entries: 2 | Download TAR |
| 200 KB TAR samplesample-tar-200kb.tar | 200 KB204,800 bytes | Entries: 2 | Download TAR |
| 500 KB TAR samplesample-tar-500kb.tar | 500 KB512,000 bytes | Entries: 2 | Download TAR |
| 1 MB TAR samplesample-tar-1mb.tar | 1 MB1,048,576 bytes | Entries: 2 | Download TAR |
| 2 MB TAR samplesample-tar-2mb.tar | 2 MB2,097,152 bytes | Entries: 2 | Download TAR |
| 3 MB TAR samplesample-tar-3mb.tar | 3 MB3,145,728 bytes | Entries: 2 | Download TAR |
| 5 MB TAR samplesample-tar-5mb.tar | 5 MB5,242,880 bytes | Entries: 2 (README.txt, payload.bin) | Download TAR |
| 10 MB TAR samplesample-tar-10mb.tar | 10 MB10,485,760 bytes | Entries: 2 (README.txt, payload.bin) | Download TAR |
| 15 MB TAR samplesample-tar-15mb.tar | 15 MB15,728,640 bytes | Entries: 2 | Download TAR |
| 20 MB TAR samplesample-tar-20mb.tar | 20 MB20,971,520 bytes | Entries: 2 | Download TAR |
| 25 MB TAR samplesample-tar-25mb.tar | 25 MB26,214,400 bytes | Entries: 2 | Download TAR |
| 30 MB TAR samplesample-tar-30mb.tar | 30 MB31,457,280 bytes | Entries: 2 | Download TAR |
| 50 MB TAR samplesample-tar-50mb.tar | 50 MB52,428,800 bytes | Entries: 2 | Download TAR |
| 100 MB TAR samplesample-tar-100mb.tar | 100 MB104,857,600 bytes | Entries: 2 | Download TAR |
What is a TAR file?
A tar archive is a simple stream: a 512-byte header describing a file, then the file contents padded to a multiple of 512 bytes, repeated for each entry. It preserves Unix permissions and ownership.
Tar does not compress. It is normally combined with gzip, giving the familiar .tar.gz, or with other compressors.
How to recognise a TAR file
Software recognises a TAR file by its file signature: fixed bytes at the start of the file, also called magic bytes or a magic number.
| Extension | .tar |
|---|---|
| MIME type | application/x-tar |
| Specification | POSIX ustar and pax |
| Block size | 512 bytes |
| Compression | None; usually wrapped in gzip, bzip2, xz or zstd |
| End marker | Two blocks of zero bytes |
What to test for
These are the behaviours that most often go wrong when software handles TAR files.
- Like ZIP, tar entries can contain absolute paths or "../", and can be symbolic links. Validate before extracting.
- There is no index, so listing the contents means reading the whole archive.
Strengths of TAR
- Preserves Unix permissions, ownership and symbolic links.
- A simple stream format that can be written and read without seeking.
Limitations of TAR
- No compression of its own and no index of contents.
- Not handled natively by older versions of Windows.
Typical uses of TAR test files
- Testing archive extraction on servers
- Checking backup and deployment tooling
- Testing container and package pipelines
Software that opens TAR
- tar on Linux, macOS and Windows
- 7-Zip and WinRAR
- Docker images and software source releases
Specifications
Related
TAR sample files: questions
- Why is there no 1 KB TAR sample?
- A tar archive is built from 512-byte blocks and ends with two empty blocks, so the smallest archive containing a README and a payload is larger than 1 KB.
- What is the MIME type of a TAR file?
- The MIME type is application/x-tar. The file extension is .tar.
- Is a sample TAR file the same as a dummy or example TAR file?
- Yes. Sample, test, dummy and example TAR files are different names for the same thing: a TAR file with known contents that stands in for a real one. Any file on this page will do wherever a tutorial or a test plan asks for a dummy TAR file.