Conversion

Kilobytes to Megabytes Converter

Settings
Reset
Share
Save
Embed
Report a bug

Share calculator

Add our free calculator to your website

Please enter a valid URL. Only HTTPS URLs are supported.


Use as default values for the embed calculator what is currently in input fields of the calculator on the page.


Input border focus color, switchbox checked color, select item hover color etc.


Please agree to the Terms of Use.

Preview

Save calculator

Calculator Settings

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Share calculator

What are kilobytes (KB) and megabytes (MB)?

A kilobyte (KB) and a megabyte (MB) are units that measure amounts of digital information. Their numeric values, though, depend on which counting system you apply:

  1. Decimal (SI) system: works in base-10, so 1 KB = 1,000 bytes and 1 MB = 1,000,000 bytes.
  2. Binary (IEC) system: works in base-2, so 1 kibibyte (KiB) = 1,024 bytes and 1 mebibyte (MiB) = 1,048,576 bytes.

The ambiguity appears because “KB” and “MB” are frequently applied to both systems interchangeably. To remove this overlap, the IEC defined separate names such as “KiB” and “MiB” specifically for base-2 quantities.

Decimal vs. Binary systems: Key differences

Decimal (SI) system

  • Adopted by storage vendors (for example, hard disks and flash drives).
  • Matches the standard metric prefixes (kilo = 10³, mega = 10⁶).
  • Formula:
1 MB (SI)=103 KB=1,000 KB1 \text{ MB (SI)} = 10^3 \text{ KB} = 1,000 \text{ KB}

Binary (IEC) system

  • Common inside computing (for example, RAM and many operating systems).
  • Matches powers of two (kibi = 2¹⁰, mebi = 2²⁰).
  • Formula:
1 MiB=210 KiB=1,024 KiB1 \text{ MiB} = 2^{10} \text{ KiB} = 1,024 \text{ KiB}

Conversion formulas

From KB to MB (SI)

MB=KB1,000\text{MB} = \frac{\text{KB}}{1,000}

From KiB to MiB (IEC)

MiB=KiB1,024\text{MiB} = \frac{\text{KiB}}{1,024}

Practical examples

Example 1: Decimal system

Converting a 4,500 KB file into MB:

4,500 KB1,000=4.5 MB\frac{4,500 \text{ KB}}{1,000} = 4.5 \text{ MB}

Use case: A phone photo reported as 4,500 KB is the same as 4.5 MB.

Example 2: Binary system

Converting a 2,048 KiB file into MiB:

2,048 KiB1,024=2 MiB\frac{2,048 \text{ KiB}}{1,024} = 2 \text{ MiB}

Use case: An installer that asks for 2,048 KiB of RAM needs 2 MiB.

Historical context

The base-2 convention grew out of early computer design, where memory addressing was built on powers of two. To end the resulting naming confusion, the IEC introduced the “KiB” and “MiB” labels in 1998. Even so, plenty of operating systems keep reporting sizes as “KB” or “MB” while computing them in binary, which produces mismatches. A drive sold as “1 TB” (1 trillion bytes, SI) shows up as roughly 931 GiB (binary) under Windows. By contrast, modern macOS reports file sizes in decimal (SI) units, which keeps them in line with how drives are advertised.

Common applications

  1. File storage: Work out how many 5 MB (SI) files fit on a 16 GB (SI) USB stick.
  2. Internet speeds: Translate a 500 MB (SI) download into kilobits for bandwidth math.
  3. RAM allocation: Express available memory in MiB when tuning software.

Notes

  • Check the context: Drives report in SI units, while operating systems often count in binary.
  • Unit labels: Prefer “KiB” or “MiB” when you need unambiguous technical wording.
  • Rounding errors: Crossing between binary and decimal can introduce small gaps (for instance, 1 MiB ≈ 1.049 MB).

Frequently Asked Questions

How many KB are in an MB?

SI system:

1 MB=1,000 KB1 \text{ MB} = 1,000 \text{ KB}

Binary system:

1 MiB=1,024 KiB1 \text{ MiB} = 1,024 \text{ KiB}

Why does my 256 GB SSD show only 238 GB?

Vendors label drives with SI units (256 GB = 256,000,000,000 bytes), yet operating systems count in binary:

256,000,000,0001,073,741,824238.42 GiB\frac{256,000,000,000}{1,073,741,824} \approx 238.42 \text{ GiB}

How to convert 5,000 KiB to MB?

  1. First turn KiB into bytes:
5,000 KiB×1,024=5,120,000 bytes5,000 \text{ KiB} \times 1,024 = 5,120,000 \text{ bytes}
  1. Then turn bytes into MB (SI):
5,120,0001,000,000=5.12 MB (SI)\frac{5,120,000}{1,000,000} = 5.12 \text{ MB (SI)}

Are KB and KiB interchangeable?

No. A file of 1,000 KB comes out to about 976.56 KiB.

How long does a 100 MB file take to download at 10 Mbps?

  1. Convert MB to megabits (providers quote speeds in megabits per second, Mbit/s, using the decimal system):
100 MB×8=800 megabits100 \text{ MB} \times 8 = 800 \text{ megabits}
  1. Work out the time:
800 Mb10 Mbps=80 seconds\frac{800 \text{ Mb}}{10 \text{ Mbps}} = 80 \text{ seconds}

Report a bug

This field is required.