5 KB BIN sample file
A BIN file of exactly 5,120 bytes. It is a valid Binary test file file, generated for this site and checked with an independent parser.
Download
- Type
- application/octet-stream
- SHA-256
c3c11eac9d2435baeca9cfb78964f155f9df3edf30176ce10a6b8272bfd8e089- Direct URL
https://sampletestfiles.com/downloads/bin/sample-bin-5kb.bin
What is in this file
5,120 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-5kb.bin as a hex dump: offset, bytes, then the same bytes as text.
00000000 ba 28 be 8e e0 ac fa 4f 40 2b 28 b9 46 07 f5 14 |.(.....O@+(.F...|
00000010 22 9f 31 dd 9c a7 7c 18 c8 81 0e db 45 a5 4b 00 |".1...|.....E.K.|
00000020 2c 02 dc f5 0c 95 9d da c2 87 a8 e9 e6 c2 06 4f |,..............O|
00000030 f7 dc 32 5b 70 81 91 80 d6 5e db 38 84 b7 1c 88 |..2[p....^.8....|Preview
BIN files cannot be shown in a browser. Download the file and open it with curl, wget and browser download managers.
Where 5 KB matters
A 5,120-byte file: larger than a cookie, smaller than a typical HTTP header limit. These are the default limits a file of this size is useful for testing:
| System | Limit | Note |
|---|---|---|
| Browser cookies | 4,096 bytes per cookie | 5 KB does not fit in one cookie. |
| Vite asset inlining | 4 KB by default (assetsInlineLimit) | A 5 KB asset is emitted as a separate file rather than inlined as base64. |
| nginx and Apache request headers | 8 KB per header line by default | 5 KB fits; the 10 KB sample does not. |
Use this file for
- Checking asset-inlining thresholds in bundlers
- Testing size limits precisely
- Checking resumable and chunked uploads
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-5kb.bin |
|---|---|
| Format | BIN (Binary test file) |
| Extension | .bin |
| MIME type | application/octet-stream |
| Size | 5,120 bytes (5 KB) |
| Kind | Binary |
| SHA-256 | c3c11eac9d2435baeca9cfb78964f155f9df3edf30176ce10a6b8272bfd8e089 |
| 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-5kb.bin 'https://sampletestfiles.com/downloads/bin/sample-bin-5kb.bin'
sha256sum sample-bin-5kb.bin # Linux
shasum -a 256 sample-bin-5kb.bin # macOSOn Windows, run Get-FileHash sample-bin-5kb.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 KB?
- Yes. It is 5,120 bytes, which is 5 KB in the binary units that operating systems and server limits use (1 KB = 1,024 bytes).
- What is inside the 5 KB BIN file?
- 5,120 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.