5 MB BIN sample file
A BIN file of exactly 5,242,880 bytes. It is a valid Binary test file file, generated for this site and checked with an independent parser.
Download
sample-bin-5mb.bin
5 MB5,242,880 bytes
Download 5 MB BINDirect download. No sign-up and no waiting.
- Type
- application/octet-stream
- SHA-256
6aeabb8201fac55bc4ac5f9ec280d9013dffcdfabbaaacdf7284b083eca840ee- Direct URL
https://sampletestfiles.com/downloads/bin/sample-bin-5mb.bin
What is in this file
5,242,880 pseudo-random bytes from a seeded generator, so every build of the file is identical and compression cannot shrink it.
| Content | Pseudo-random bytes |
|---|---|
| Compressible | No |
| Structure | None |
First bytes of the file
The first 64 bytes of sample-bin-5mb.bin as a hex dump: offset, bytes, then the same bytes as text.
00000000 a7 d9 2b 7f cf 90 99 49 8c 95 39 17 97 f9 b9 5d |..+....I..9....]|
00000010 c0 ca 7c 2a 01 0e 49 dc 2b 7c 1d 76 b8 86 44 e0 |..|*..I.+|.v..D.|
00000020 1b a7 88 99 65 c0 fc b2 d8 8d 20 5c 75 92 72 90 |....e..... \u.r.|
00000030 ce 16 9e 8c 84 0c 8e ea 25 a2 e3 39 1b ff ce 9f |........%..9....|Preview
BIN files cannot be shown in a browser. Download the file and open it with curl, wget and browser download managers.
Where 5 MB matters
A 5,242,880-byte file: the size of a phone photo and the minimum part size for S3 multipart uploads. These are the default limits a file of this size is useful for testing:
| System | Limit | Note |
|---|---|---|
| PHP | 2 MB per uploaded file by default (upload_max_filesize) | A 5 MB upload fails on an untuned PHP installation. |
| Vercel Functions | 4.5 MB request body | Larger uploads must go directly to object storage. |
| Amazon S3 multipart upload | 5 MiB minimum part size | This file is exactly one minimum part. |
| AWS Lambda | 6 MB synchronous invocation payload | 5 MB of binary data exceeds it once base64-encoded. |
| Browser localStorage | About 5 MB per origin | Storing this file as text fills the quota. |
| Django | 2.5 MB in memory by default | Larger uploads are streamed to a temporary file instead of held in memory. |
Use this file for
- Simulating photo uploads from phones
- Measuring download and upload throughput
- Testing size limits precisely
Testing notes for BIN
- A file of zeros, as produced by many quick commands, compresses to almost nothing, which makes transfers look far faster than they are.
- Because application/octet-stream says nothing about content, strict upload filters reject these files. That is itself a useful test.
Technical details
| File name | sample-bin-5mb.bin |
|---|---|
| Format | BIN (Binary test file) |
| Extension | .bin |
| MIME type | application/octet-stream |
| Size | 5,242,880 bytes (5 MB) |
| Kind | Binary |
| SHA-256 | 6aeabb8201fac55bc4ac5f9ec280d9013dffcdfabbaaacdf7284b083eca840ee |
| Created | 2026-10-10 |
| Validation | Exact size, signature bytes and structure checked when the file was generated |
| Preview | Not available for this format; details only |
| Source | Generated for this site; not copied from elsewhere |
| Licence | Free to use, modify and redistribute (terms) |
| Category | Testing |
Validated for expected format and integrity. As with any download, scan the file with your own security tools before opening it. How files are made and checked
Download from the command line and verify
Fetch the file with curl, then compare its checksum with the SHA-256 value above.
curl -o sample-bin-5mb.bin 'https://sampletestfiles.com/downloads/bin/sample-bin-5mb.bin'
sha256sum sample-bin-5mb.bin # Linux
shasum -a 256 sample-bin-5mb.bin # macOSOn Windows, run Get-FileHash sample-bin-5mb.bin -Algorithm SHA256 in PowerShell. A matching value proves that the download is complete and unaltered.
Related files
Questions about this file
- Is this file exactly 5 MB?
- Yes. It is 5,242,880 bytes, which is 5 MB in the binary units that operating systems and server limits use (1 KB = 1,024 bytes).
- What is inside the 5 MB BIN file?
- 5,242,880 pseudo-random bytes from a seeded generator, so every build of the file is identical and compression cannot shrink it.
- Is a .bin sample safe to download?
- Yes. It is inert data: random bytes that are not executable and have no structure for any program to interpret.