Convert between bytes, KB, MB, GB, and TB instantly. Toggle between decimal (1000-based, what storage vendors use) and binary (1024-based, what Windows displays) to get the exact value the platform you care about expects.
Base
B
1,000,000
KB
1,000
MB
1
GB
0.001
TB
0.000001
Decimal (SI) units use 1000 as the multiplier — what storage vendors and most operating systems advertise.
MB to KB quick reference table
Common file sizes converted in both decimal and binary bases.
MB
KB (decimal × 1000)
KB (binary × 1024)
0.5 MB
500 KB
512 KB
1 MB
1,000 KB
1,024 KB
5 MB
5,000 KB
5,120 KB
10 MB
10,000 KB
10,240 KB
25 MB
25,000 KB
25,600 KB
50 MB
50,000 KB
51,200 KB
100 MB
100,000 KB
102,400 KB
250 MB
250,000 KB
256,000 KB
500 MB
500,000 KB
512,000 KB
1000 MB
1,000,000 KB
1,024,000 KB
Decimal vs binary — which one should I use?
The IEC standard says decimal units (KB, MB, GB) should mean 1000-based, and binary units (KiB, MiB, GiB) should mean 1024-based. In practice, the labels are used interchangeably and the right choice depends on the system you’re talking to:
Both, depending on the system. Decimal (SI) units, used by storage vendors and most modern operating systems, treat 1 MB as 1000 KB. Binary (IEC) units, used by Windows Explorer and RAM specifications, treat 1 MB as 1024 KB. Strictly the binary version should be labeled MiB (mebibyte) and KiB (kibibyte), but the MB/KB labels are used loosely in practice.
How many KB in a 10 MB file?
10,000 KB in decimal units (10 × 1000) or 10,240 KB in binary units (10 × 1024). For testing email attachment limits, decimal is what most providers report.
Why does my OS report a different size than the file system?
Windows displays sizes in binary (1024-based) while macOS and most Linux distributions switched to decimal (1000-based) years ago. Storage vendors always advertise in decimal because the numbers look bigger — a '1 TB' drive holds 1,000,000,000,000 bytes, which Windows displays as ~931 GiB.
How do I convert between units in code?
Multiply or divide by the right factor. For decimal: 1 MB = 1e6 bytes, 1 GB = 1e9 bytes. For binary: 1 MB = 2^20 bytes, 1 GB = 2^30 bytes. Use Math.pow(1024, n) or shorthand 1 << (n * 10) where safe in JS.
What size is right for my upload limit?
Common upload caps are 5MB, 10MB, 25MB, and 100MB. We host real sample files at every common size — see /sample-files. Test with the actual binary content rather than synthetic blobs so MIME type and edge-case handling get exercised.