5 MB ZIP sample file
A ZIP file of exactly 5,242,880 bytes. It is a valid ZIP archive file, generated for this site and checked with an independent parser.
Download
sample-zip-5mb.zip
5 MB5,242,880 bytes
Download 5 MB ZIPDirect download. No sign-up and no waiting.
- Type
- application/zip
- SHA-256
c738ca1825f9191d3d703d55835dcad43614431a2c3ccdc8ce4b68c8131da370- Direct URL
https://sampletestfiles.com/downloads/zip/sample-zip-5mb.zip
What is in this file
4 entries: a README, a CSV file and a JSON file compressed with deflate, plus payload.bin, 5,239,627 pseudo-random bytes stored without compression so the archive is exactly 5,242,880 bytes.
| Entries | 4 |
|---|---|
| Compression | Deflate for text entries, stored for payload.bin |
| Encrypted | No |
| ZIP64 | No |
| Largest entry | payload.bin, 5,239,627 bytes |
First bytes of the file
The first 64 bytes of sample-zip-5mb.zip as a hex dump: offset, bytes, then the same bytes as text. The ZIP signature is 50 4B 03 04.
00000000 50 4b 03 04 14 00 00 00 08 00 00 00 21 5c 14 d6 |PK..........!\..|
00000010 87 52 6b 00 00 00 79 00 00 00 0a 00 00 00 52 45 |.Rk...y.......RE|
00000020 41 44 4d 45 2e 74 78 74 05 c1 31 0e c2 30 0c 05 |ADME.txt..1..0..|
00000030 d0 bd a7 f8 23 0c 64 e3 02 6c 0c 48 48 30 b1 b9 |....#.d..l.HH0..|Preview
ZIP files cannot be shown in a browser. Download the file and open it with Windows Explorer, macOS Archive Utility, 7-Zip.
Where 5 MB matters
A 5,242,880-byte file: the size of a phone photo and the minimum part size for S3 multipart uploads. These are the default limits a file of this size is useful for testing:
| System | Limit | Note |
|---|---|---|
| PHP | 2 MB per uploaded file by default (upload_max_filesize) | A 5 MB upload fails on an untuned PHP installation. |
| Vercel Functions | 4.5 MB request body | Larger uploads must go directly to object storage. |
| Amazon S3 multipart upload | 5 MiB minimum part size | This file is exactly one minimum part. |
| AWS Lambda | 6 MB synchronous invocation payload | 5 MB of binary data exceeds it once base64-encoded. |
| Browser localStorage | About 5 MB per origin | Storing this file as text fills the quota. |
| Django | 2.5 MB in memory by default | Larger uploads are streamed to a temporary file instead of held in memory. |
Use this file for
- Simulating photo uploads from phones
- Testing bulk import features
- Testing archive uploads and extraction
Testing notes for ZIP
- Windows reports ZIP uploads as application/x-zip-compressed, so allow-lists need both MIME types.
- An archive can expand to far more than its own size. Enforce limits on total extracted bytes and entry count to guard against zip bombs.
Technical details
| File name | sample-zip-5mb.zip |
|---|---|
| Format | ZIP (ZIP archive) |
| Extension | .zip |
| MIME type | application/zip |
| Size | 5,242,880 bytes (5 MB) |
| Kind | Binary |
| Signature | 50 4B 03 04 |
| SHA-256 | c738ca1825f9191d3d703d55835dcad43614431a2c3ccdc8ce4b68c8131da370 |
| 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-zip-5mb.zip 'https://sampletestfiles.com/downloads/zip/sample-zip-5mb.zip'
sha256sum sample-zip-5mb.zip # Linux
shasum -a 256 sample-zip-5mb.zip # macOSOn Windows, run Get-FileHash sample-zip-5mb.zip -Algorithm SHA256 in PowerShell. A matching value proves that the download is complete and unaltered.
Related files
Questions about this file
- Is this file exactly 5 MB?
- Yes. It is 5,242,880 bytes, which is 5 MB in the binary units that operating systems and server limits use (1 KB = 1,024 bytes).
- What is inside the 5 MB ZIP file?
- 4 entries: a README, a CSV file and a JSON file compressed with deflate, plus payload.bin, 5,239,627 pseudo-random bytes stored without compression so the archive is exactly 5,242,880 bytes.
- What is inside the sample ZIP files?
- A README, a small CSV file, a small JSON file and a payload.bin entry of pseudo-random bytes that sets the archive size. The smallest archives hold fewer entries.