1 MB BIN sample file
A BIN file of exactly 1,048,576 bytes. It is a valid Binary test file file, generated for this site and checked with an independent parser.
Download
sample-bin-1mb.bin
1 MB1,048,576 bytes
Download 1 MB BINDirect download. No sign-up and no waiting.
- Type
- application/octet-stream
- SHA-256
ff781283dd853e2843876bea45396f22e405691c7634c8eea47c2161ac885918- Direct URL
https://sampletestfiles.com/downloads/bin/sample-bin-1mb.bin
What is in this file
1,048,576 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-1mb.bin as a hex dump: offset, bytes, then the same bytes as text.
00000000 c8 44 4e d3 e2 f8 b8 2f 14 39 36 84 6a 18 19 ac |.DN..../.96.j...|
00000010 17 33 1c 43 75 a6 51 95 ca 41 43 c3 ee ba 2b f0 |.3.Cu.Q..AC...+.|
00000020 f7 43 90 60 bb 6a bc 7a 13 41 77 27 3d 9a 02 91 |.C.`.j.z.Aw'=...|
00000030 69 cf 00 97 d3 3a e7 8b 36 aa fd 48 9d 78 f4 77 |i....:..6..H.x.w|Preview
BIN files cannot be shown in a browser. Download the file and open it with curl, wget and browser download managers.
Where 1 MB matters
A 1,048,576-byte file: exactly the default upload limit of nginx, Spring Boot and Next.js. These are the default limits a file of this size is useful for testing:
| System | Limit | Note |
|---|---|---|
| nginx | 1 MB by default (client_max_body_size) | A multipart upload of this file exceeds the limit by the size of the form boundaries. |
| Spring Boot multipart | 1 MB per file by default (max-file-size) | A file of exactly 1 MB is at the limit. |
| Next.js API routes and Server Actions | 1 MB by default | Larger bodies need the size limit raised in configuration. |
| Cloud Firestore documents | 1 MiB (1,048,576 bytes) | The same number of bytes as this file. |
| Apache Kafka messages | About 1 MB by default | Brokers reject larger records unless message.max.bytes is raised. |
Use this file for
- Download tests on mobile connections
- Verifying checksums after transfer
- Measuring download and upload throughput
Testing notes for BIN
- Because application/octet-stream says nothing about content, strict upload filters reject these files. That is itself a useful test.
- A file of zeros, as produced by many quick commands, compresses to almost nothing, which makes transfers look far faster than they are.
Technical details
| File name | sample-bin-1mb.bin |
|---|---|
| Format | BIN (Binary test file) |
| Extension | .bin |
| MIME type | application/octet-stream |
| Size | 1,048,576 bytes (1 MB) |
| Kind | Binary |
| SHA-256 | ff781283dd853e2843876bea45396f22e405691c7634c8eea47c2161ac885918 |
| 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-1mb.bin 'https://sampletestfiles.com/downloads/bin/sample-bin-1mb.bin'
sha256sum sample-bin-1mb.bin # Linux
shasum -a 256 sample-bin-1mb.bin # macOSOn Windows, run Get-FileHash sample-bin-1mb.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 1 MB?
- Yes. It is 1,048,576 bytes, which is 1 MB in the binary units that operating systems and server limits use (1 KB = 1,024 bytes).
- What is inside the 1 MB BIN file?
- 1,048,576 pseudo-random bytes from a seeded generator, so every build of the file is identical and compression cannot shrink it.
- Why not use a file full of zeros?
- Zeros compress to nearly nothing, so any compression between server and client hides the true transfer size. Random bytes do not.