Download ZIP Sample Files
Download sample ZIP files below in three sizes, from 20 KB to 3.7 MB. They contain the same files as our RAR and TAR samples: an MP3 file, two Excel spreadsheets and four images.
ZIP Sample File Details
| Sample | Size | Contents |
|---|---|---|
| Sample1.ZIP | 3.71 MB | 1 MP3 audio file |
| Sample2.ZIP | 19.8 KB | 2 XLSX spreadsheets |
| Sample3.ZIP | 3.41 MB | 4 files with a .jpe extension (one-page PDF documents, not JPEG images) |
All three use standard DEFLATE compression, with no password and no ZIP64 extensions, so any unzip tool, Windows File Explorer and macOS Archive Utility can open them.
What is a ZIP File?
A ZIP file is a compressed archive that bundles one or more files and folders into a single file. The format was created by Phil Katz of PKWARE in 1989 and is supported out of the box by Windows, macOS, Linux, Android and iOS, which makes it the most widely used archive format.
Each file inside a ZIP is compressed separately, usually with DEFLATE, so a single file can be extracted without unpacking the whole archive. ZIP also supports passwords (ZipCrypto or AES), ZIP64 for files larger than 4 GB, and split archives. Many other formats are ZIP files underneath, including DOCX, XLSX, JAR, APK and EPUB.
What You Can Test With These ZIP Files
- Uploads: file-type checks and size limits with archives from 20 KB to 3.7 MB.
- Extraction: unzip code in apps, scripts and CI pipelines.
- Archive scanners: antivirus and data-loss tools that look inside archives.
- File-type detection: ZIP and ZIP-based formats share the
PKsignature. - Compression comparisons: the same files are available as RAR and TAR.
How to Open or Create a ZIP File
# List the contents without extracting
unzip -l sample-1.zip
# Extract into the current folder
unzip sample-1.zip
# Windows PowerShell
Expand-Archive -Path sample-1.zip -DestinationPath sample-1
# Create your own ZIP from a folder
zip -r archive.zip folder
ZIP vs RAR vs TAR: The Same Files Compared
| Contents (original size) | ZIP | RAR | TGZ | TAR (no compression) |
|---|---|---|---|---|
| 1 MP3 file (3,902,902 bytes) | 3,893,944 bytes | 3,892,989 bytes | 3,888,579 bytes | 3,911,680 bytes |
| 2 XLSX spreadsheets (25,365 bytes) | 20,294 bytes | 20,141 bytes | 16,824 bytes | 30,720 bytes |
| 4 .jpe files (3,701,429 bytes) | 3,578,906 bytes | 3,561,848 bytes | 3,578,399 bytes | 3,706,880 bytes |
TGZ makes the smallest archive for the MP3 and the spreadsheets because gzip compresses all files as one stream, while ZIP and these RAR samples compress each file separately. RAR wins for the images. The differences are small for MP3 and JPEG data, which is already compressed. TAR does not compress at all and pads its output to full 10 KB records, which is why 25 KB of spreadsheets becomes a 30 KB TAR file.
For higher compression, see our 7Z samples, and for Linux-style archives our TAR.GZ samples.






