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
Verified file details
Filename
sample-1kb.zip
Exact size
1,163 bytes
Displayed size
1.1 KB
MIME type
application/zip
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/zip/sample-1kb.zip

sample-10kb.zip

10.8 KB
Verified file details
Filename
sample-10kb.zip
Exact size
11,097 bytes
Displayed size
10.8 KB
MIME type
application/zip
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/zip/sample-10kb.zip

sample-100kb.zip

104 KB
Verified file details
Filename
sample-100kb.zip
Exact size
106,174 bytes
Displayed size
104 KB
MIME type
application/zip
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/zip/sample-100kb.zip

sample-500kb.zip

510 KB
Verified file details
Filename
sample-500kb.zip
Exact size
522,444 bytes
Displayed size
510 KB
MIME type
application/zip
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/zip/sample-500kb.zip

sample-1mb.zip

1.05 MB
Verified file details
Filename
sample-1mb.zip
Exact size
1,102,644 bytes
Displayed size
1.05 MB
MIME type
application/zip
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/zip/sample-1mb.zip

sample-5mb.zip

5.25 MB
Verified file details
Filename
sample-5mb.zip
Exact size
5,503,944 bytes
Displayed size
5.25 MB
MIME type
application/zip
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/zip/sample-5mb.zip

sample-10mb.zip

10.50 MB
Verified file details
Filename
sample-10mb.zip
Exact size
11,005,644 bytes
Displayed size
10.50 MB
MIME type
application/zip
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/zip/sample-10mb.zip

sample-50mb.zip

51.52 MB
Verified file details
Filename
sample-50mb.zip
Exact size
54,018,744 bytes
Displayed size
51.52 MB
MIME type
application/zip
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/zip/sample-50mb.zip

sample-100mb.zip

103 MB
Verified file details
Filename
sample-100mb.zip
Exact size
108,035,244 bytes
Displayed size
103 MB
MIME type
application/zip
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/zip/sample-100mb.zip

sample-with-password.zip

224 B

pw: test123

Verified file details
Filename
sample-with-password.zip
Exact size
224 bytes
Displayed size
224 B
MIME type
application/zip
Test password
test123
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/zip/sample-with-password.zip

sample-nested.zip

360 B
Verified file details
Filename
sample-nested.zip
Exact size
360 bytes
Displayed size
360 B
MIME type
application/zip
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/zip/sample-nested.zip

sample-many-files.zip

125 KB
Verified file details
Filename
sample-many-files.zip
Exact size
127,915 bytes
Displayed size
125 KB
MIME type
application/zip
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/zip/sample-many-files.zip

sample-single-file.zip

103 KB
Verified file details
Filename
sample-single-file.zip
Exact size
105,173 bytes
Displayed size
103 KB
MIME type
application/zip
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/zip/sample-single-file.zip

sample-corrupt.zip

7.2 KB
Verified file details
Filename
sample-corrupt.zip
Exact size
7,420 bytes
Displayed size
7.2 KB
MIME type
application/zip
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/zip/sample-corrupt.zip

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

Are there any files inside the ZIP that could be harmful?
No. All ZIP files contain safe, generated content — text files, placeholder images, and dummy data. No executables, no macros, no scripts.
What compression method do you use in these ZIP files?
DEFLATE — the standard and most widely supported ZIP compression method. Supported by all operating systems and archive tools without additional software.
Why would I need a corrupt ZIP file for testing?
The sample-corrupt.zip tests that your application gracefully handles invalid archives — showing an error message instead of crashing. Critical for any app that accepts ZIP uploads from users.
How do I test ZIP extraction in JavaScript/Node.js?
Popular libraries: adm-zip, jszip (browser + Node), archiver (create only), unzipper (streaming extraction). Example: const zip = new AdmZip('sample.zip'); zip.extractAllTo('./output');
What is the maximum ZIP file size your tool should support?
Standard ZIP supports up to 4GB per file and 65,535 files. ZIP64 extension removes these limits. Most modern tools (7-Zip, WinRAR, macOS Archive Utility) support ZIP64 automatically.

Other archive formats

Related reading