Sample files for testing
Real files to download for testing an upload form, a parser or an import: one of every format this generator writes, files broken on purpose, tables the way spreadsheet programs export them, and placeholder pictures. Nothing to install and nothing to sign up for.
Made by one recipe
All 62 files come from one recipe,
samples.yaml. Run it with tfg and you get the
same bytes on any machine, so the SHA-256 beside each file is something you can check rather
than take on trust.
tfg generate samples.yaml --out samples
Every sum is in SHA256SUMS. Put it in that folder and
tfg tool checksum-check samples/SHA256SUMS or sha256sum -c SHA256SUMS
tells you whether every file matches.
The last column of each table is what the
manifest expects your system to do with the file.
accept means it should take the file, reject that it should turn the
file away, and unspecified that it depends on the rules of your system.
Every format
One file of every format, 1 MB each
Documents, pictures, text, data, archives, mail, telemetry, sound and video, each exactly 1 048 576 bytes and each a real file of its format. The PDF opens in a PDF reader, the DOCX in Word, the XLSX in Excel and the ZIP extracts.
| File | Size | SHA-256 | Expected |
|---|---|---|---|
| sample.avif | 1 048 576 B | 3aa43abba6a858d0 |
accept |
| sample.bmp | 1 048 576 B | b35a7bb033e8243f |
accept |
| sample.csv | 1 048 576 B | 327f6a1b49e95483 |
accept |
| sample.docx | 1 048 576 B | d2433a1ccdf13c54 |
accept |
| sample.eml | 1 048 576 B | b1043bddc1a4bc08 |
accept |
| sample.geojson | 1 048 576 B | 6f0e245207efc3e9 |
accept |
| sample.gif | 1 048 576 B | 1742972f7b107dcd |
accept |
| sample.html | 1 048 576 B | f95bbebe0d6c3139 |
accept |
| sample.ico | 1 048 576 B | b2123cf899900cc8 |
accept |
| sample.jpg | 1 048 576 B | 5c196df3410d4ae1 |
accept |
| sample.json | 1 048 576 B | 70fc7141e0e23882 |
accept |
| sample.jxl | 1 048 576 B | 72a4145ab993f97b |
accept |
| sample.log | 1 048 576 B | f342951dd72083f7 |
accept |
| sample.md | 1 048 576 B | d2f3354cf8406afc |
accept |
| sample.mp4 | 1 048 576 B | 55d5154351183c4e |
accept |
| sample-otlp.jsonl | 1 048 576 B | 35e7de280d5bb309 |
accept |
| sample.pdf | 1 048 576 B | cdff4710de283525 |
accept |
| sample.png | 1 048 576 B | 6fb032be25d0d948 |
accept |
| sample.pptx | 1 048 576 B | bf53cbe510d487da |
accept |
| sample.rtf | 1 048 576 B | 2cba8b0920363d22 |
accept |
| sample.svg | 1 048 576 B | 43ae49c0a911f0f2 |
accept |
| sample.tar.gz | 1 048 576 B | 44b72ac1351c1edb |
accept |
| sample.tiff | 1 048 576 B | a96891d9fe707fbf |
accept |
| sample.toml | 1 048 576 B | edade69898f79907 |
accept |
| sample.txt | 1 048 576 B | 6b6187a3743a91a5 |
accept |
| sample.wav | 1 048 576 B | e7ebce7c07121d09 |
accept |
| sample.webm | 1 048 576 B | 3d8991190bf12808 |
accept |
| sample.webp | 1 048 576 B | 0ce2991a42b21d0e |
accept |
| sample.xlsx | 1 048 576 B | f032eb8e701d965a |
accept |
| sample.xml | 1 048 576 B | ee543381e149da3b |
accept |
| sample.yaml | 1 048 576 B | 5fee594410d865aa |
accept |
| sample.zip | 1 048 576 B | 9573a5fd7f4c0570 |
accept |
Another size is one command. tfg generate --format pdf --size 10mb writes a PDF of
exactly 10 MB, and a 1 GB file is made the same way. Files that large are not kept on this page,
because a command makes them faster than a download.
Broken on purpose
Corrupt files: PDF, Word, Excel, pictures, video and ZIP
Each one was made healthy and then broken, and is still exactly 1 MB. truncate cuts
the end off the way an interrupted upload does, and zero-head writes zeros over the
first bytes, where a reader looks to see what the file is. The manifest expects your system to
turn every one of them away.
| File | Damage | Size | SHA-256 | Expected |
|---|---|---|---|---|
| corrupt-truncate.pdf | truncate |
1 048 576 B | d1e67e8b3c99f2ee |
reject |
| corrupt-truncate.docx | truncate |
1 048 576 B | 6a33277ee3cdaba8 |
reject |
| corrupt-truncate.xlsx | truncate |
1 048 576 B | f81302c89c0f1367 |
reject |
| corrupt-truncate.pptx | truncate |
1 048 576 B | fc28544bdb91bc61 |
reject |
| corrupt-truncate.jpg | truncate |
1 048 576 B | a8e75174cb1b61c2 |
reject |
| corrupt-zero-head.png | zero-head |
1 048 576 B | d96c7cdea35c8c28 |
reject |
| corrupt-truncate.mp4 | truncate |
1 048 576 B | 21ad37b5bcd91f68 |
reject |
| corrupt-truncate.zip | truncate |
1 048 576 B | 74af7f5fa33d9c50 |
reject |
Corrupt test files says how to make your own, in any format and at any size, and which damages there are.
For an import
CSV, JSON and Excel tables
The same table written the ways real tools write it: with a comma, a semicolon, a tab or a pipe
between values, with Windows line endings, without a header row, with every value in quotes or
none, a wide CSV, an Excel sheet and JSON in three layouts. Some are marked
unspecified, because whether your import takes a semicolon is its own choice. What it
must not do is read half of the table.
| File | Size | SHA-256 | Expected |
|---|---|---|---|
| default.csv | 65 536 B | 827e530e6d1dc34b |
accept |
| delimiter_pipe.csv | 65 536 B | 50478587a5e446f7 |
unspecified |
| delimiter_semicolon.csv | 65 536 B | 61cab672fc13202c |
unspecified |
| delimiter_tab.csv | 65 536 B | 154e9ad3936bf713 |
unspecified |
| line_ending_crlf.csv | 65 536 B | 6942f22ac97934d9 |
accept |
| header_false.csv | 65 536 B | d9eb487722774adf |
unspecified |
| quote_style_all.csv | 65 536 B | 9afbf52b9c3f928c |
accept |
| quote_style_none.csv | 65 536 B | e2566b2583e21845 |
accept |
| wide.csv | 709 793 B | 80b98d4e76bc96fa |
unspecified |
| sheet.xlsx | 1 649 371 B | 9f3a551fa15f1c24 |
accept |
| indented.json | 65 536 B | d084ab959d910180 |
accept |
| minified.json | 65 536 B | a2934062393daa7f |
accept |
| record-per-line.json | 65 536 B | fa33572be773cdd0 |
accept |
They are the files of the tabular-import preset, which makes them with as many rows and columns as you ask for.
For a layout
Placeholder images in common sizes
A flat grey picture with its size written in the middle, for laying out a page before the real pictures exist: square thumbnails, a 300 by 250 ad, a 728 by 90 banner, a 1200 by 630 social card and a full HD screen. Each is as small as the picture can be.
| File | Size | SHA-256 | Expected |
|---|---|---|---|
| placeholder-100x100.png | 1 625 B | 5b5394e955df765b |
accept |
| placeholder-150x150.png | 2 769 B | 53ba1cd0dd3c7c11 |
accept |
| placeholder-300x250.png | 6 181 B | 6470b10fb3c0af7a |
accept |
| placeholder-728x90.png | 3 277 B | 732cbd340d9c60fe |
accept |
| placeholder-1200x630.png | 28 690 B | 6856158603397966 |
accept |
| placeholder-1920x1080.png | 66 511 B | de59cc54898002a1 |
accept |
| placeholder-300x250.svg | 3 622 B | 2656b0f6a75dd37e |
accept |
| placeholder-1200x630.svg | 4 258 B | 3c3c78222b1dabcd |
accept |
| placeholder-1920x1080.jpg | 55 923 B | 3e3373b4ce434672 |
accept |
Any other size or colour:
tfg generate --format png --size smallest --set content=placeholder --set width=640 --set height=360 --set background=1e293b
The picture-sizes preset makes every size screens and
platforms use in one run, with --content placeholder.
Next
Where to go from here
- File upload test cases says which of these files tests what in an upload form.
- Presets are ready-made sets for one testing question each.
- Test files in CI makes files like these in a pipeline instead of keeping them in the repository.