Developer resources
Files of any size up to 1 GB created in your browser, a machine-readable manifest with checksums, and guides for the testing tools you already use.
How files are delivered
The site serves static generator scripts, seed clips, templates and fixture packs. Download bytes are assembled locally. The listed files are designed to be reproducible. Downloads up to 32 MiB use browser checksum verification where available; large streamed downloads should be checked manually against the published SHA-256. See the file safety page for the scope of release testing.
Files up to 32 MB are created in memory in a Web Worker, which takes a few seconds. Larger files, up to 1 GB, are created by a service worker and streamed straight into the browser's download manager in pieces of about 1 MB, so they never have to fit in memory. Every format page has a size picker for any size from the format's minimum up to 1 GB.
Browser limits
Streaming needs a service worker that controls the page and a browser that hands a streamed response to its download manager. The site checks both before offering large sizes: it registers the service worker, waits for it to take control and asks it a test question. Where streaming is not available, files are made in memory instead, and only up to a conservative limit, which the size picker shows before you start:
- Current Chrome, Edge and Firefox on computers and Android, and Samsung Internet: streaming, up to 1 GB.
- Safari on a Mac: up to 256 MB in memory. Safari does not reliably save streamed service-worker downloads, so streaming is not used.
- iPhone and iPad (every browser there uses Safari's engine): up to 64 MB.
- Other phones, private windows where service workers are switched off, and devices that report 4 GB of memory or less: 64 MB to 128 MB.
These are deliberately cautious. Free memory and storage differ from device to device, so even a size within the limit can fail on a device that is short of either; the page then says so and nothing is saved.
Because the files are made on your device, they have no direct URL for curl or wget. For scripts and pipelines, save the file once in a browser and keep your own copy, or generate fixtures in your own build. To test download speed, range requests or resuming, put the saved file on the server or CDN you want to test.
The links that used to point at /downloads/ now redirect to the page of each file.
File manifest
A JSON manifest of every sample file is published at /files.json. Each entry gives the file name, format, MIME type, exact size, SHA-256 checksum and page URL. Every file is created in the browser, so url is null and delivery is "browser".
curl -s 'https://www.sampletestfiles.com/files.json' \
| jq '.files[] | select(.format == "pdf") | {name, bytes, sha256, page}'Use it to pin fixtures by checksum:
echo "85678799dd29fc7392f31d9cceb2b6f80858fc3c635c2a30d492c4bdc53b66b0 sample-pdf-1mb.pdf" | sha256sum --checkTesting topics
File uploads
Accepted types, size limits, file names, interruptions and security checks for upload forms and endpoints.
File-size restrictions
Where limits live in a stack, the defaults of common servers and frameworks, and how to test a boundary to the byte.
MIME types and file validation
Extensions, Content-Type headers and signature bytes, and how to check that validation cannot be fooled by a renamed file.
REST APIs
Sending files as multipart form data, raw bodies and base64 JSON, and what to assert in the response.
Download speed and CDN delivery
Measuring throughput honestly, checking range requests and resume, and verifying that every edge returns identical bytes.
Playwright
setInputFiles, file choosers, in-memory files, download assertions and API uploads.
Selenium
send_keys uploads in Python and Java, remote grids, hidden inputs and download checks.
Cypress
selectFile for inputs and drop zones, intercepting upload requests and reading downloads.
CI/CD pipelines
Vendoring fixtures, verifying checksums in a job, and testing artifact and cache limits.
Parsers and importers
Clean inputs and deliberate edge cases for CSV, JSON, XML, email and more.
Storage systems
Exact-size files for quota checks, multipart thresholds and round-trip integrity.
Browser compatibility
Media, image and document samples for checking previews and players across browsers and devices.
What your browser receives
The server only sends the pages and the generator scripts, which are cached for a year. A file created by the service worker reaches the download manager with:
- a
Content-Typematching the format's registered MIME type; Content-Length, so progress can be shown;Content-Disposition: attachmentwith the file name;X-Content-Type-Options: nosniffand a sandboxingContent-Security-Policy.
Nothing is compressed in transit, because nothing is transferred: the bytes are made on your device. To measure transfer speed, upload a saved BIN sample to the host you want to test; random bytes cannot be compressed.
Formats at a glance
Build a fixture for your parser
Create synthetic records with quoted fields, Unicode, missing values or nested JSON. Preview the output and check the actual bytes before downloading.