Skip to content
>_ TrueFileSize.com

MB to KB converter

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.

MBKB (decimal × 1000)KB (binary × 1024)
0.5 MB500 KB512 KB
1 MB1,000 KB1,024 KB
5 MB5,000 KB5,120 KB
10 MB10,000 KB10,240 KB
25 MB25,000 KB25,600 KB
50 MB50,000 KB51,200 KB
100 MB100,000 KB102,400 KB
250 MB250,000 KB256,000 KB
500 MB500,000 KB512,000 KB
1000 MB1,000,000 KB1,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:

  • Storage devices & macOS: decimal (1 GB = 1,000,000,000 bytes).
  • Windows Explorer:binary (1 GB = 1,073,741,824 bytes), labeled inconsistently as “GB”.
  • RAM and CPU caches: always binary.
  • Most cloud storage APIs (S3, R2, GCS): decimal.
  • Most email providers: decimal — see email attachment size limits.

Conversion formulas

// Decimal (SI)
1 KB = 1,000 bytes
1 MB = 1,000,000 bytes        (1e6)
1 GB = 1,000,000,000 bytes    (1e9)
1 TB = 1,000,000,000,000 bytes (1e12)

// Binary (IEC)
1 KiB = 1,024 bytes           (2^10)
1 MiB = 1,048,576 bytes       (2^20)
1 GiB = 1,073,741,824 bytes   (2^30)
1 TiB = 1,099,511,627,776 bytes (2^40)

// JS one-liner (decimal)
const mbToKb = (mb) => mb * 1000;
const kbToBytes = (kb) => kb * 1000;

// JS one-liner (binary)
const mibToKib = (mib) => mib * 1024;
const kibToBytes = (kib) => kib << 10;

Test with real files at the size you need

Once you know the size you need, skip the math and grab a real sample file. Every file we host is sized to match its filename:

Frequently Asked Questions

Is 1 MB equal to 1000 KB or 1024 KB?
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.