Sample .tar.gz archive (double extension)
A gzip-compressed tar archive holding a README, a CSV file and a JSON file in a sub-folder.
Download
sample-archive.tar.gz
1.02 KB1,040 bytes
Download GZ sampleDirect download. No sign-up and no waiting.
- Type
- application/gzip
- SHA-256
7ae0e67e6bc201e8c7674457feab551a7d56927f28ecc56a93f5d032cb5989ca- Direct URL
https://sampletestfiles.com/downloads/samples/sample-archive.tar.gz
Why test with this file
Tests double-extension handling and archive extraction with nested paths.
| Entries | 3 files in 1 folder |
|---|---|
| Outer format | gzip |
| Inner format | tar (ustar) |
| Extension handling | Double extension .tar.gz |
What to check
After your application has processed sample-archive.tar.gz, confirm that:
- The upload is recognised as .tar.gz, not as .gz alone.
- Extraction recreates the data sub-folder and all three files.
- Extraction refuses to write outside the target folder.
First bytes of the file
The first 64 bytes of sample-archive.tar.gz as a hex dump: offset, bytes, then the same bytes as text. The GZ signature is 1F 8B 08.
00000000 1f 8b 08 08 00 b9 55 69 00 ff 73 61 6d 70 6c 65 |......Ui..sample|
00000010 2d 61 72 63 68 69 76 65 2e 74 61 72 00 ed 57 db |-archive.tar..W.|
00000020 6e 1b 37 10 f5 f3 7e 85 e0 e7 59 86 c3 cb 5e f2 |n.7...~...Y...^.|
00000030 54 c5 55 12 d7 b1 e3 c6 8d 8b f6 25 a0 d6 94 cc |T.U........%....|Preview
GZ files cannot be shown in a browser. Download the file and open it with gzip and gunzip.
Technical details
| File name | sample-archive.tar.gz |
|---|---|
| Format | GZ (Gzip compressed file) |
| Extension | .gz |
| MIME type | application/gzip |
| Size | 1,040 bytes (1.02 KB) |
| Kind | Binary |
| Signature | 1F 8B 08 |
| SHA-256 | 7ae0e67e6bc201e8c7674457feab551a7d56927f28ecc56a93f5d032cb5989ca |
| Created | 2026-10-10 |
| Validation | Exact size, signature bytes and structure checked when the file was generated |
| Preview | Not available for this format; details only |
| Source | Generated for this site; not copied from elsewhere |
| Licence | Free to use, modify and redistribute (terms) |
| Category | Archives |
Validated for expected format and integrity. As with any download, scan the file with your own security tools before opening it. How files are made and checked
Download from the command line and verify
Fetch the file with curl, then compare its checksum with the SHA-256 value above.
curl -o sample-archive.tar.gz 'https://sampletestfiles.com/downloads/samples/sample-archive.tar.gz'
sha256sum sample-archive.tar.gz # Linux
shasum -a 256 sample-archive.tar.gz # macOSOn Windows, run Get-FileHash sample-archive.tar.gz -Algorithm SHA256 in PowerShell. A matching value proves that the download is complete and unaltered.
About GZ
A single compressed file. The compression used for web responses and Unix tools.
Where it fits
- File upload testing
Test an upload form or endpoint with files of every size and type it should accept, and several it should refuse.
- File parser testing
Well-formed files and deliberate edge cases for testing code that reads CSV, JSON, XML, PDF and more.