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
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.
| Limit | Bytes | Generator |
|---|---|---|
| 1 MB (binary) | 1,048,576 | Open preset |
| 4 MB (binary) | 4,194,304 | Open preset |
| 5 MB (binary) | 5,242,880 | Open preset |
| 5 MB (decimal) | 5,000,000 | Open preset |
| 10 MB (binary) | 10,485,760 | Open preset |
| 25 MB (binary) | 26,214,400 | Open preset |
| 1 byte under 5 MB | 5,242,879 | Open preset |
| 1 byte over 5 MB | 5,242,881 | Open 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.
