Test Files by Size

Files of 1, 5, 10, 20, 50 and 100 MB for testing upload limits, progress bars, timeouts and transfer speed. At the bottom are zero-byte and minimal valid empty files: they check that a parser or an upload form does not break when there is nothing inside. All links are permanent, you can put them straight into your tests

Images

Sample file: 1 MB JPEG image
1 MB JPEG image JPEG
1.0 Mb
↓
Sample file: 5 MB JPEG image
5 MB JPEG image JPEG
4.9 Mb
↓
Sample file: 5 MB PNG image
5 MB PNG image PNG
5.1 Mb
↓
Sample file: 10 MB JPEG image
10 MB JPEG image JPEG
9.9 Mb
↓
Sample file: 10 MB PNG image
10 MB PNG image PNG
10 Mb
↓

Video

1 MB MP4 video MP4
1.1 Mb
↓
5 MB MP4 video MP4
5.2 Mb
↓
10 MB MP4 video MP4
10 Mb
↓
20 MB MP4 video MP4
21 Mb
↓
50 MB WebM video WebM
50 Mb
↓

Tables and data

Sample file: 5 MB CSV file
5 MB CSV file CSV
5 Mb
↓
Sample file: 5 MB XML file
5 MB XML file XML
5 Mb
↓
Sample file: 10 MB CSV file
10 MB CSV file CSV
10 Mb
↓
Sample file: 10 MB XML file
10 MB XML file XML
10 Mb
↓
Sample file: 15 MB CSV file
15 MB CSV file CSV
15 Mb
↓
Sample file: 15 MB XML file
15 MB XML file XML
15 Mb
↓
Sample file: 20 MB CSV file
20 MB CSV file CSV
20 Mb
↓
Sample file: 20 MB XML file
20 MB XML file XML
20 Mb
↓
Sample file: 30 MB CSV file
30 MB CSV file CSV
30 Mb
↓
Sample file: 30 MB XML file
30 MB XML file XML
30 Mb
↓

Archives

Sample file: 1 MB ZIP archive
1 MB ZIP archive ZIP
1.0 Mb
↓
Sample file: 10 MB ZIP archive
10 MB ZIP archive ZIP
10 Mb
↓
Sample file: 50 MB ZIP archive
50 MB ZIP archive ZIP
50 Mb
↓

Audio

1 MB MP3 audio MP3
0.9 Mb
↓
5 MB MP3 audio MP3
4.6 Mb
↓
5 MB WAV audio WAV
5 Mb
↓
10 MB MP3 audio MP3
9.2 Mb
↓
20 MB MP3 audio MP3
18 Mb
↓
30 MB MP3 audio MP3
27 Mb
↓
50 MB WAV audio WAV
50 Mb
↓
100 MB WAV audio WAV
101 Mb
↓

Empty files

Sample file: Empty CSV file
Empty CSV file CSV
0 bytes
↓
Sample file: Empty JSON file
Empty JSON file JSON
2 bytes
↓
Sample file: Empty ZIP archive
Empty ZIP archive ZIP
22 bytes
↓
Sample file: Empty PCAP capture
Empty PCAP capture PCAP
24 bytes
↓
Sample file: Empty GeoJSON file
Empty GeoJSON file GeoJSON
51 bytes
↓
Sample file: Empty ICS calendar
Empty ICS calendar ICS
106 bytes
↓
Sample file: Empty Avro file
Empty Avro file Avro
179 bytes
↓
Sample file: Empty GPX file
Empty GPX file GPX
186 bytes
↓
Sample file: Empty Parquet file
Empty Parquet file Parquet
621 bytes
↓
Sample file: Empty PDF file
Empty PDF file PDF
1.3 Kb
↓
Sample file: Empty Excel spreadsheet
Empty Excel spreadsheet XLS
5.5 Kb
↓
Sample file: Empty SQLite database
Empty SQLite database SQLite
12 Kb
↓
Sample file: Empty PowerPoint presentation
Empty PowerPoint presentation PPTX
27 Kb
↓
Sample file: Empty Word document
Empty Word document DOCX
36 Kb
↓

🧠 How many bytes are in a megabyte

Our 10 MB files are 10,485,760 bytes, exactly 10 mebibytes (MiB, 1024 x 1024 bytes each). Many services count the limit in decimal megabytes, one million bytes each. The difference is almost five percent.

So a "10 MB" file may be rejected by a form with a "10 MB" limit, and that is not a bug in the form. If you are testing the boundary itself, take one file just under and one just over the limit, and check the exact size in bytes rather than the label.

10 MB10 000 000 B 10 MiB10 485 760 B +485 760 B (+4.9 %)

It also matters whether the file compresses. CSV and XML are text: if compression is on between the client and the server, several times less goes over the wire. ZIP, JPEG, PNG and video are already compressed, their size barely changes in transit, so they are the better choice for speed tests.

You can also make a file of any size yourself. On Linux and macOS: truncate -s 10M file.bin creates a file of zeros instantly, but zeros compress extremely well, while head -c 10M /dev/urandom > file.bin gives random data that cannot be compressed. On Windows: fsutil file createnew file.bin 10485760.