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 BIN

Direct 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.

ContentPseudo-random bytes
CompressibleNo
StructureNone

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:

SystemLimitNote
nginx1 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 multipart1 MB per file by default (max-file-size)A file of exactly 1 MB is at the limit.
Next.js API routes and Server Actions1 MB by defaultLarger bodies need the size limit raised in configuration.
Cloud Firestore documents1 MiB (1,048,576 bytes)The same number of bytes as this file.
Apache Kafka messagesAbout 1 MB by defaultBrokers reject larger records unless message.max.bytes is raised.

All 1 MB sample files

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.

BIN format reference

Technical details

File namesample-bin-1mb.bin
FormatBIN (Binary test file)
Extension.bin
MIME typeapplication/octet-stream
Size1,048,576 bytes (1 MB)
KindBinary
SHA-256ff781283dd853e2843876bea45396f22e405691c7634c8eea47c2161ac885918
Created2026-10-10
ValidationExact size, signature bytes and structure checked when the file was generated
PreviewNot available for this format; details only
SourceGenerated for this site; not copied from elsewhere
LicenceFree to use, modify and redistribute (terms)
CategoryTesting

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 # macOS

On 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.