Testing sample files
Generic binary and log files built for size limits, speed tests and transfer verification.
Formats in this category
| Format | What it is | Sizes |
|---|---|---|
| BIN sample files.bin application/octet-stream | Pseudo-random bytes with no structure. The right file for measuring transfer speed and size limits. | 1 KB to 20 MB |
| LOG sample files.log text/plain | Line-oriented text records of events. The samples use the web-server Combined Log Format. | 1 KB to 10 MB |
| TXT sample files.txt text/plain | Unformatted text with no structure beyond characters and line breaks. The simplest possible upload. | 1 KB to 20 MB |
| ZIP sample files.zip application/zip | The most common archive format: many files compressed individually in one container. | 1 KB to 20 MB |
About these files
Sometimes the content of a file does not matter at all: you need exactly ten megabytes to prove that a limit is enforced, or incompressible bytes to measure a connection honestly.
The BIN samples are pure pseudo-random data for that purpose. The LOG samples are realistic access logs for testing anything that reads line-oriented text at volume.
Ready-made samples
Hand-designed files with realistic content or a specific edge case.
| File | Format | Size | Contents | Download |
|---|---|---|---|---|
| Sample web server access log (500 lines)sample-access.log | LOG | 80.2 KB82,141 bytes | Lines: 500 | Download LOG |
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 size testing
Files built to exact byte counts for testing limits precisely, including the boundary itself.
- Download testing
Files of exact size for testing download speed, range requests, resuming and integrity.
- Performance testing
Large, predictable inputs for measuring throughput, memory use and processing time.
Related categories
Testing files: questions
- Which file should I use for a speed test?
- A BIN sample. Its random bytes cannot be compressed, so the transfer you measure is the full size of the file.
Engineering test checklist for testing sample files
When designing automated integration suites for testing 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 testing | Recommended test fixture or tool |
|---|---|---|
| 1. Signature & MIME check | Confirm backend inspects leading magic bytes rather than trusting the client Content-Type header for testing 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 testing 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 testing ingestion workflows
- Buffering entire files in process memory: Node.js, Python, and Java services that read an entire uploaded testing 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 testing 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 testing 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.