Saved calculators
Conversion

KB to MB converter

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

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

A kilobyte (KB) and megabyte (MB) are units of digital information storage. However, their exact values depend on the measurement system used:

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

Confusion arises because “KB” and “MB” are often incorrectly used for both systems. For clarity, the IEC standard introduced distinct terms like “KiB” and “MiB” for binary measurements.

Decimal vs. Binary systems: Key differences

Decimal (SI) system

  • Used by storage manufacturers (e.g., hard drives, USB drives).
  • Aligns with 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

  • Used in computing (e.g., RAM, operating systems).
  • Aligns with 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

A 4,500 KB file converts to MB as:

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

Use case: A smartphone photo labeled as 4,500 KB equals 4.5 MB.

Example 2: Binary system

A 2,048 KiB file converts to MiB as:

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

Use case: A game installer requiring 2,048 KiB of RAM uses 2 MiB.

Historical context

The binary system originated from early computing, where memory addressing relied on powers of two. In 1998, the IEC standardized terms like “KiB” and “MiB” to resolve ambiguity. Despite this, many operating systems still report file sizes in “KB” or “MB” while using binary calculations, leading to discrepancies. For example, a “1 TB” hard drive marketed as 1 trillion bytes (SI) appears as ~931 GiB (binary) in Windows. Modern operating systems, such as macOS, use decimal units (SI) to display file sizes to avoid confusion with drive marketing.

Common applications

  1. File storage: Determine how many 5 MB (SI) files fit in a 16 GB (SI) USB drive.
  2. Internet speeds: Convert a 500 MB (SI) download to kilobits for speed calculations.
  3. RAM allocation: Calculate available memory in MiB for software optimization.

Notes

  • Check the context: Storage devices use SI units; operating systems often use binary.
  • Unit labels: Use “KiB” or “MiB” for clarity in technical writing.
  • Rounding errors: Binary-to-decimal conversions may show slight discrepancies (e.g., 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?

Storage manufacturers use SI units (256 GB = 256{,}000{,}000{,}000 bytes), but operating systems use 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. Convert KiB to bytes:
5,000 KiB×1,024=5,120,000 bytes5{,}000 \text{ KiB} \times 1{,}024 = 5{,}120{,}000 \text{ bytes}
  1. Convert bytes to 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 1,000 KB file equals approximately 976.56 KiB.

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

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