Curated sample files

48 hand-designed files: realistic documents and data, files with a set number of rows, pages, pixels or seconds, and the awkward cases that find bugs, such as empty, corrupted and password-protected files.

How to use these files

Each file targets one behaviour. Open its page to see what the file contains, what it is meant to expose and what to check afterwards: for the 10,000-row CSV, that the last record arrives; for the password-protected PDF, that your viewer asks for the password instead of failing silently.

Files described as corrupted or truncated are broken on purpose. Use them to check that your software reports a clear error and keeps working, rather than crashing or hanging. They are safe: none contains executable code.

Every file is created in your browser and checked against the SHA-256 checksum on its page, so the copy you save is identical to everyone else's and can be pinned in a test suite.

Edge cases

Files chosen because software often mishandles them. Each page explains what the file is meant to expose. Those described as corrupted or truncated are invalid on purpose.

Edge-case sample files
FileFormatSizeContentsDownload
CSV with quoted fields, embedded commas and line breakssample-csv-quoted-fields.csv CSV 324 B324 bytes Data rows: 6 Download CSV
Empty file (0 bytes)empty-file.txt TXT 0 B0 bytes Lines: 0 Download TXT
File name with spacessample file name with spaces.txt TXT 34 B34 bytes File name length: 32 characters Download TXT
File name with non-ASCII characterssample-ünïcödé-文件-имя.txt TXT 75 B75 bytes File name scripts: Latin with diacritics, Han, Cyrillic Download TXT
File with a 120-character namesample-long-file-name-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij-end.txt TXT 36 B36 bytes File name length: 120 characters Download TXT
File without an extensionsample-file-without-extension TXT 61 B61 bytes ASCII text Download TXT
One-pixel PNG (1 × 1)sample-pixel-1x1.png PNG 69 B69 bytes 1 × 1 px Download PNG
Password-protected PDF samplesample-pdf-password-protected.pdf PDF 2.28 KB2,331 bytes Password to open: sample Download PDF
Corrupted PDF file for testing (truncated)sample-pdf-corrupted.pdf PDF 7.53 KB7,713 bytes Damage: Truncated to 60% of its length Download PDF
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
Truncated JPG image for testing (corrupted)sample-jpg-truncated.jpg JPG 55.2 KB56,556 bytes Damage: Truncated to 50% of its length Download JPG
Corrupted DOCX file for testing (truncated)sample-docx-corrupted.docx DOCX 35 KB35,840 bytes Damage: Truncated to 70% of its length Download DOCX

Documents

Curated sample files: Documents
FileFormatSizeContentsDownload
Sample business report PDF (multi-page)sample-business-report.pdf PDF 399 KB408,822 bytes Page size: A4 (595 x 842 pt) Download PDF
Sample invoice PDF (single page)sample-invoice.pdf PDF 2.25 KB2,304 bytes Pages: 1 Download PDF
UTF-8 text in many scriptssample-text-utf8-multilingual.txt TXT 906 B906 bytes Scripts: Latin, Greek, Cyrillic, Arabic, Hebrew, Devanagari, Thai, Chinese, Japanese, Korean, emoji Download TXT
Plain text with Windows (CRLF) line endingssample-text-crlf-line-endings.txt TXT 740 B740 bytes Lines: 20 Download TXT
Sample PDF with 10 pagessample-pdf-10-pages.pdf PDF 12.6 KB12,855 bytes Pages: 10 Download PDF
Sample PDF with images (3 pages)sample-pdf-with-images.pdf PDF 1.45 MB1,521,229 bytes Pages: 3 Download PDF
Sample PDF with form fields (fillable)sample-pdf-form-fields.pdf PDF 7.75 KB7,938 bytes Fields: 7 Download PDF

Spreadsheets

Curated sample files: Spreadsheets
FileFormatSizeContentsDownload
Sample customers CSV (100 rows)sample-customers.csv CSV 7.84 KB8,028 bytes Data rows: 100 Download CSV
Semicolon-delimited CSV with decimal commassample-csv-semicolon-delimited.csv CSV 2.02 KB2,066 bytes Data rows: 25 Download CSV
CSV with a UTF-8 byte order mark and non-ASCII textsample-csv-utf8-bom.csv CSV 193 B193 bytes Data rows: 6 Download CSV
Sample orders workbook XLSX (250 rows, with formulas)sample-orders.xlsx XLSX 20.3 KB20,827 bytes Data rows: 250 Download XLSX
Sample CSV file with 1,000 rowssample-csv-1000-rows.csv CSV 79.8 KB81,739 bytes Data rows: 1,000 Download CSV
Sample CSV file with 10,000 rowssample-csv-10000-rows.csv CSV 818 KB837,484 bytes Data rows: 10,000 Download CSV
Sample XLSX with multiple sheets (3 sheets)sample-xlsx-multiple-sheets.xlsx XLSX 8.21 KB8,407 bytes Sheets: 3 (Orders, Customers, Summary) Download XLSX

Images

Curated sample files: Images
FileFormatSizeContentsDownload
Test card PNG, 1920 × 1080sample-test-card-1920x1080.png PNG 195 KB199,649 bytes 1920 × 1080 px Download PNG
Transparent PNG with an alpha gradient, 512 × 512sample-transparent-512x512.png PNG 42.0 KB42,984 bytes 512 × 512 px Download PNG
Sample JPG, 1920 × 1080sample-photo-1920x1080.jpg JPG 503 KB515,568 bytes 1920 × 1080 px Download JPG
Animated GIF, 320 × 240, 24 framessample-animated-loop.gif GIF 283 KB290,031 bytes 320 × 240 px Download GIF
Sample JPG, 3840 × 2160 (4K UHD)sample-photo-3840x2160.jpg JPG 1.84 MB1,931,177 bytes 3840 × 2160 px Download JPG
Sample favicon ICO (4 sizes)sample-favicon.ico ICO 41.4 KB42,424 bytes Images: 4 (16 × 16, 32 × 32, 48 × 48, 256 × 256 px) Download ICO

Audio

Curated sample files: Audio
FileFormatSizeContentsDownload
440 Hz test tone WAV (3 seconds)sample-test-tone-440hz.wav WAV 258 KB264,644 bytes 3.000 s Download WAV
Sample MP3 audio, 10 secondssample-mp3-10-seconds.mp3 MP3 156 KB160,207 bytes 10.0 s Download MP3
Sample MP3 audio, 1 minutesample-mp3-1-minute.mp3 MP3 938 KB960,177 bytes 1 min 0 s Download MP3

Video

Curated sample files: Video
FileFormatSizeContentsDownload
Sample MP4 video, 640 × 360, 6 secondssample-video-640x360.mp4 MP4 330 KB338,208 bytes 640 × 360 px Download MP4
Sample MP4 video, 1280 × 720 (720p)sample-video-1280x720.mp4 MP4 813 KB832,271 bytes 1,280 × 720 px Download MP4
Sample MP4 video, 1920 × 1080 (1080p)sample-video-1920x1080.mp4 MP4 1.59 MB1,665,226 bytes 1,920 × 1,080 px Download MP4

Archives

Curated sample files: Archives
FileFormatSizeContentsDownload
Sample .tar.gz archive (double extension)sample-archive.tar.gz GZ 1.02 KB1,041 bytes Entries: 3 files in 1 folder Download GZ

Data

Curated sample files: Data
FileFormatSizeContentsDownload
Sample users JSON (array of 50 objects)sample-users.json JSON 14.3 KB14,668 bytes Records: 50 Download JSON
Nested JSON with every value typesample-nested-config.json JSON 829 B829 bytes Root type: Object Download JSON
Sample product catalogue XML with namespaces and CDATAsample-product-catalog.xml XML 1.07 KB1,100 bytes Features: Attributes, entities, CDATA, comment, processing instruction, empty element Download XML
Sample RSS 2.0 feedsample-rss-feed.xml XML 2.39 KB2,451 bytes Items: 5 Download XML

Configuration

Curated sample files: Configuration
FileFormatSizeContentsDownload
Sample Docker Compose YAMLsample-docker-compose.yaml YAML 744 B744 bytes Features: Anchors and aliases, sequences, nested mappings, quoted strings, comments Download YAML

Database

Curated sample files: Database
FileFormatSizeContentsDownload
Sample customers SQL script (100 rows)sample-customers.sql SQL 19.3 KB19,787 bytes Statements: 1 CREATE TABLE, 100 INSERT Download SQL

Testing

Curated sample files: Testing
FileFormatSizeContentsDownload
Sample web server access log (500 lines)sample-access.log LOG 80.2 KB82,141 bytes Lines: 500 Download LOG

3D Models

Curated sample files: 3D Models
FileFormatSizeContentsDownload
Binary STL cube (12 triangles)sample-cube-binary.stl STL 684 B684 bytes Triangles: 12 Download STL

Email & Calendar

Curated sample files: Email & Calendar
FileFormatSizeContentsDownload
Multipart email with HTML body and attachmentsample-multipart-attachment.eml EML 1.23 KB1,264 bytes multipart/mixed containing multipart/alternative Download EML

Looking for a specific size?

The files above have natural sizes. If you need a file of an exact size, such as 1 MB or 10 MB, browse files by size or pick a format.