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 sample

Direct 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.

Entries3 files in 1 folder
Outer formatgzip
Inner formattar (ustar)
Extension handlingDouble extension .tar.gz

What to check

After your application has processed sample-archive.tar.gz, confirm that:

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 namesample-archive.tar.gz
FormatGZ (Gzip compressed file)
Extension.gz
MIME typeapplication/gzip
Size1,040 bytes (1.02 KB)
KindBinary
Signature1F 8B 08
SHA-2567ae0e67e6bc201e8c7674457feab551a7d56927f28ecc56a93f5d032cb5989ca
Created2026-10-10
ValidationExact size, signature bytes and structure checked when the file was generated
PreviewNot available for this format; details only
SourceGenerated for this site; not copied from elsewhere
LicenceFree to use, modify and redistribute (terms)
CategoryArchives

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 # macOS

On 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.

GZ format reference

Where it fits

Related files

All curated sample files