Developer tools

File size calculator

Convert between bytes, KB, MB, and GB for upload-limit and storage-quota testing. Choose binary (1024) — how most OS quotas work — or decimal (1000) — how some SaaS APIs document limits. Then jump to the file generator with an exact byte count.

Convert a size

Exact bytes

5,242,880

Generate file at this size →

Binary: 5,120 KB · 5 MB

Decimal: 5,242.88 KB · 5.24288 MB

Common upload limits

Bookmark these byte counts for boundary tests. See the 5 MB PDF scenario for a full playbook.

LimitBytesGenerator
1 MB (binary)1,048,576Open preset
4 MB (binary)4,194,304Open preset
5 MB (binary)5,242,880Open preset
5 MB (decimal)5,000,000Open preset
10 MB (binary)10,485,760Open preset
25 MB (binary)26,214,400Open preset
1 byte under 5 MB5,242,879Open preset
1 byte over 5 MB5,242,881Open preset

Binary vs decimal — why it matters

A vendor saying “5 MB max” might mean 5,242,880 bytes (5×1024×1024) or 5,000,000 bytes. Off-by-one failures at tier boundaries are common when product copy uses decimal but the backend counts binary. Always document which base your test matrix uses — and generate fixtures at exact byte counts, not rounded downloads.

Buy me a coffee