Skip to content
>_ TrueFileSize.com

Sample ZIP Files — Free Download for Testing

Download free sample ZIP archive files for testing file extraction, upload handlers, and archive processing. Available from 1KB to 100MB. Includes password-protected and nested ZIP variants.

sample-1kb.zip

1.1 KB
zip
Download

sample-10kb.zip

10.8 KB
zip
Download

sample-100kb.zip

104 KB
zip
Download

sample-500kb.zip

510 KB
zip
Download

sample-1mb.zip

1.05 MB
zip
Download

sample-5mb.zip

5.25 MB
zip
Download

sample-10mb.zip

10.50 MB
zip
Download

sample-50mb.zip

51.52 MB
zip
Download

sample-100mb.zip

103 MB
zip
Download

sample-with-password.zip

224 B

pw: test123

zip
Download

sample-nested.zip

360 B
zip
Download

sample-many-files.zip

125 KB
zip
Download

sample-single-file.zip

103 KB
zip
Download

sample-corrupt.zip

7.3 KB
zip
Download

Use cases for sample ZIP files

  • Testing ZIP file upload and extraction in web apps
  • Verifying error handling for corrupt/invalid archives
  • Testing password-protected archive support
  • Load testing archive extraction performance
  • Validating ZIP file size limits in applications
  • Testing nested archive handling (ZIP inside ZIP)

ZIP file structure explained

[Local file header] → [File data] → [Data descriptor]
...repeated for each file...
[Central directory header] → [End of central directory]

ZIP uses the DEFLATE algorithm for compression. Files inside can be individually extracted without decompressing the entire archive.

How to create a ZIP file

Windows

Right-click → Send to → Compressed (zipped) folder

Linux / macOS

zip output.zip file1 file2 file3

Node.js (archiver)

const archiver = require('archiver');
const output = fs.createWriteStream('output.zip');
const archive = archiver('zip', { zlib: { level: 9 } });
archive.pipe(output);
archive.file('data.txt', { name: 'data.txt' });
archive.finalize();

Python

import zipfile
with zipfile.ZipFile('output.zip', 'w') as zf:
    zf.write('data.txt')

Testing with password-protected ZIP

Password: test123

Use to verify your app handles encrypted ZIP files correctly. Note: Legacy ZIP encryption (ZipCrypto) is weak — AES-256 ZIP encryption is not included in the standard ZIP spec.

Technical specifications

FormatZIP (PKZIP)
CompressionDEFLATE (most common)
EncryptionZipCrypto (legacy, weak)
Max file size4 GB per file (ZIP64 for larger)
PlatformUniversal — built into Windows, macOS, Linux

Frequently Asked Questions

Other archive formats