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
Video
Tables and data
Archives
Audio
Empty files
🧠 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.
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.



















