Sample files for download testing

Files of exact size for testing download speed, range requests, resuming and integrity.

Testing downloads means answering four questions: does the file arrive complete, does it arrive unmodified, how fast does it arrive, and what happens when the connection drops. Files of exact, published size make each of these measurable.

Use the BIN samples for speed. Their random content cannot be compressed, so no proxy or CDN can make the transfer look faster than it is.

Recommended files

FileSizeWhy this oneDownload
1 MB BIN samplesample-bin-1mb.bin1 MB1,048,576 bytesQuick speed checkDownload BIN
10 MB BIN samplesample-bin-10mb.bin10 MB10,485,760 bytesBroadband speed testDownload BIN
10 MB MP4 samplesample-mp4-10mb.mp410 MB10,485,760 bytesRange requests and video seekingDownload MP4
File name with spacessample file name with spaces.txt34 B34 bytesFile-name handling in download headersDownload TXT
10 MB ZIP samplesample-zip-10mb.zip10 MB10,485,760 bytesIntegrity check with a self-verifying formatDownload ZIP

Files are created in your browser, so saving them here does not measure your connection. To test a server or CDN, upload the file there first and download it from that host.

Checklist

  1. Check completeness

    Compare the size of the downloaded file with the byte count on the download page.

  2. Check integrity

    Compute the SHA-256 of the download and compare it with the published value.

  3. Measure speed properly

    Download an incompressible file several times and take the median; discard the first run if a cache is involved.

  4. Test range requests

    Request a byte range and expect 206 Partial Content with a Content-Range header.

  5. Test resume

    Interrupt a download, then resume it and verify the checksum of the finished file.

Guides

Related use cases

Frequently asked questions

Why is my downloaded file smaller than the stated size?
Either the transfer was cut short, or a tool saved a compressed response without decompressing it. Compare checksums to find out which.
How do I download only part of a file?
With curl, use the -r option, for example curl -r 0-1023 to fetch the first 1,024 bytes.

Test plan architecture and assertion matrix for sample files for download testing

A thorough download testing workflow separates positive functional verification (confirming well-formed inputs succeed and preserve their SHA-256 checksum) from negative boundary verification (confirming oversized, truncated, or mislabelled inputs fail with structured diagnostic codes).

Test case IDScenario in download testingInput fixtureExpected system outcome
TC-DOWN-01Baseline small payload acceptance1 KB – 100 KB valid fixture from FormatsHTTP 200/201; stored byte count and SHA-256 match /checksums.txt
TC-DOWN-02Gateway / reverse-proxy ceiling check1 MB, 10 MB, and 20 MB sized fixtures from SizesExact threshold enforced; oversize payload returns HTTP 413 Payload Too Large
TC-DOWN-03Extension vs. magic-byte mismatchwrong-extension-png-as-jpg.jpg from Broken FilesValidator detects 89 50 4E 47 PNG header and rejects spoofed .jpg extension
TC-DOWN-04Truncated stream / unexpected EOFTruncated PDF or JPEG from Broken FilesParser catches missing trailer/EOI marker and returns HTTP 422 without leaking stack traces

Automating download testing in CI/CD pipelines

To keep automated runs deterministic and fast, commit your small sub-100 KB fixtures directly to your repository and synthesize larger 10 MB to 1 GB stress fixtures on demand using our in-browser generator or the reproducible local commands on Methodology. When testing tabular or relational data pipelines during download testing, pair binary container checks with our 100-row and 1,000-row synthetic datasets so you can assert exact row counts and column aggregations after ingestion.