Test files › Size ladder › 1mb.bin

1.0 MB test file

Exactly 1,048,576 bytes of deterministic incompressible pseudo-random data.

↓ Download 1mb.bin
Filename1mb.bin
FormatBinary
Size1.0 MB (1,048,576 bytes)
MIME typeapplication/octet-stream
SHA-25630b93b424b6eaae04620a6bafe1f7eb6b2aa62fb1455210bd5be45730fa777ff
What this file catchesUpload and download size-limit boundaries. Incompressible, so transfer-encoding gzip gives no free win and measured throughput reflects real bandwidth.

Handle it in code

Each snippet below was run against this exact file with Python 3.14.4 and Node 24.15.0 when this page was built, and the output shown is what it printed.

Python

Verify the download against the SHA-256 published on this page. file_digest (Python 3.11+) reads in chunks, so a 250 MB file does not need 250 MB of memory.

import hashlib

with open("1mb.bin", "rb") as f:
    print(hashlib.file_digest(f, "sha256").hexdigest())

Run against this file, it prints: 30b93b424b6eaae04620a6bafe1f7eb6b2aa62fb1455210bd5be45730fa777ff

Node.js

The same in Node, streaming the file through the hash.

const crypto = require('node:crypto');
const fs = require('node:fs');

const hash = crypto.createHash('sha256');
fs.createReadStream('1mb.bin')
  .on('data', (chunk) => hash.update(chunk))
  .on('end', () => console.log(hash.digest('hex')));

Run against this file, it prints: 30b93b424b6eaae04620a6bafe1f7eb6b2aa62fb1455210bd5be45730fa777ff

Related guides and tools

Large test files (1 KB to 2 GB)Large file upload testing1 GB and 2 GB test filesDownload speed test filesRange requests and resumable downloadsCheck a file's real typeVerify its SHA-256

Download & verify

curl -fsSL -o "1mb.bin" "https://files.hexaqa.com/size/1mb.bin"
curl -fsSL "https://files.hexaqa.com/size/1mb.bin" | sha256sum # expect: 30b93b424b6eaae04620a6bafe1f7eb6b2aa62fb1455210bd5be45730fa777ff

More size ladder test files

10kb.bin10mb.bin1b.bin1kb.bin250mb.bin50mb.bin512b.bin5mb.bin

← All Size ladder files