Archive sample files
ZIP, TAR and GZ archives in exact sizes for testing extraction, limits and bulk uploads.
Formats in this category
| Format | What it is | Sizes |
|---|---|---|
| ZIP sample files.zip application/zip | The most common archive format: many files compressed individually in one container. | 1 KB to 20 MB |
| TAR sample files.tar application/x-tar | The Unix archive format: files concatenated with headers, without compression. | 10 KB to 10 MB |
| GZ sample files.gz application/gzip | A single compressed file. The compression used for web responses and Unix tools. | 1 KB to 10 MB |
About these files
Archives are a risky kind of upload. One small file can unpack into thousands of entries, write outside its target folder or expand to exhaust a disk. Testing with well-behaved archives first establishes that the normal path works before you test the hostile ones.
These samples are deliberately tame: a few readable text files and one payload of random bytes that sets the size.
Ready-made samples
Hand-designed files with realistic content or a specific edge case.
| File | Format | Size | Contents | Download |
|---|---|---|---|---|
| Sample .tar.gz archive (double extension)sample-archive.tar.gz | GZ | 1.02 KB1,041 bytes | Entries: 3 files in 1 folder | Download GZ |
| Corrupted ZIP file for testing (CRC error)sample-zip-corrupted.zip | ZIP | 5.19 KB5,316 bytes | Damage: CRC-32 mismatch in data/payload.bin | Download ZIP |
Popular downloads by size
Jump straight to a file. Every size is exact to the byte.
Or browse every format at one size: 1 KB, 5 KB, 10 KB, 25 KB, 50 KB, 100 KB, 200 KB, 500 KB, 1 MB, 2 MB, 5 MB, 10 MB, 20 MB.
What to test
- File upload testing
Test an upload form or endpoint with files of every size and type it should accept, and several it should refuse.
- CI/CD pipelines
Fixtures for build, test and deployment pipelines, with checksums for verification.
- File parser testing
Well-formed files and deliberate edge cases for testing code that reads CSV, JSON, XML, PDF and more.
Related categories
Archive files: questions
- Do you provide zip bombs or malicious archives?
- No. Every archive here is safe to extract. For hostile inputs, build them yourself in an isolated environment.
Engineering test checklist for archive sample files
When designing automated integration suites for archives pipelines, QA engineers must validate three distinct layers: binary container framing, metadata extraction accuracy, and resource-bounded parsing under concurrent load.
| Verification layer | Target assertion for archives | Recommended test fixture or tool |
|---|---|---|
| 1. Signature & MIME check | Confirm backend inspects leading magic bytes rather than trusting the client Content-Type header for archives uploads | Magic-Byte File Inspector & Spoofed-Extension Fixtures |
| 2. Boundary byte sizes | Test minimum valid header size, 1 MB default proxy limit, 10 MB application ceiling, and 50 MB+ streaming transfers | Size Buckets (1 KB–1 GB) & In-Browser Generator |
| 3. Corrupt payload handling | Verify that truncated streams or malformed headers in archives return HTTP 400/422 instead of crashing the worker | Broken-File QA Suite & errors-400.json |
| 4. Checksum reproducibility | Assert that round-trip storage in cloud object storage preserves the exact byte length and SHA-256 digest | SHA-256 Checksum Directory |
Common failure points in archives ingestion workflows
- Buffering entire files in process memory: Node.js, Python, and Java services that read an entire uploaded archives fixture into a contiguous heap buffer before checking its header signature risk Out-Of-Memory (OOM) terminations when concurrent users upload 20 MB to 100 MB files. Read the first 4,096 bytes from the stream to validate magic bytes before streaming the body to object storage.
- Character encoding and metadata sanitization: Filenames and embedded metadata fields inside archives containers can contain precomposed (NFC) or decomposed (NFD) Unicode sequences, spaces, or missing extensions. Combine the format fixtures above with our edge-case filename samples and the A to Z Format Index to cover every parser branch.
- Cross-platform viewer and codec parity: A archives file that opens on a developer's macOS laptop may fail inside a minimal Alpine or Debian Linux container if required shared libraries or font tables are absent. Test parser behavior inside your exact production container image during CI using the copy-ready recipes on CLI & CI Automation.