KB, MB, and GB are ordered from smallest to largest as KB < MB < GB. The reverse reference is GB MB KB. Different list orders do not change this hierarchy. Use the unit labels and a stated convention before comparing values.
Decimal storage units scale by 1,000 at each step. Binary IEC units use KiB, MiB, and GiB, with 1,024 at each step. KB, MB, and GB may be used loosely in some contexts for binary-sized values, but these conventions should not be mixed in one calculation.
KB, MB, and GB from Smallest to Largest
- Smallest: KB, or kilobyte
- Middle: MB, or megabyte
- Largest: GB, or gigabyte
Each unit represents a larger quantity of data than the one before it. In a decimal calculation, 1 MB equals 1,000 KB, and 1 GB equals 1,000 MB. Therefore, 1 GB contains 1,000,000 KB. To convert from a larger unit to a smaller unit, multiply. To convert from a smaller unit to a larger unit, divide.
Decimal Storage-Unit Conversions
The decimal convention uses powers of 1,000. It is common for drive capacity labels and for file-size displays that follow SI-style decimal measurements.
- 1 KB = 1,000 bytes = 103 bytes
- 1 MB = 1,000 KB = 1,000,000 bytes = 106 bytes
- 1 GB = 1,000 MB = 1,000,000,000 bytes = 109 bytes
For decimal conversions, move one unit step by multiplying or dividing by 1,000. Moving two steps uses 1,000,000.
- Large to small: 2.5 GB × 1,000 = 2,500 MB; 2.5 GB × 1,000,000 = 2,500,000 KB.
- Small to large: 6,400 KB ÷ 1,000 = 6.4 MB; 6,400 KB ÷ 1,000,000 = 0.0064 GB.
Binary KiB, MiB, and GiB: Powers of 1,024
The binary IEC convention uses different unit names to show that the multiplier is 1,024 rather than 1,000. The binary order is still smallest to largest: KiB < MiB < GiB.
- 1 KiB = 1,024 bytes = 210 bytes
- 1 MiB = 1,024 KiB = 1,048,576 bytes = 220 bytes
- 1 GiB = 1,024 MiB = 1,073,741,824 bytes = 230 bytes
KiB, MiB, and GiB are not interchangeable with KB, MB, and GB. For example, 1 GiB is larger than 1 GB because 1 GiB contains 1,073,741,824 bytes, while decimal 1 GB contains 1,000,000,000 bytes.
Worked File-Size Conversions in Both Directions
Label every result with its convention. These examples use decimal units unless marked as binary.
- Decimal, GB to MB: 4 GB × 1,000 = 4,000 MB.
- Decimal, MB to GB: 750 MB ÷ 1,000 = 0.75 GB.
- Decimal, KB to MB: 12,500 KB ÷ 1,000 = 12.5 MB.
- Binary, GiB to MiB: 3 GiB × 1,024 = 3,072 MiB.
- Binary, MiB to GiB: 512 MiB ÷ 1,024 = 0.5 GiB.
- Binary, KiB to MiB: 2,048 KiB ÷ 1,024 = 2 MiB.
To compare conventions, convert through bytes. Decimal 1 GB equals approximately 0.9313 GiB, while 1 GiB equals approximately 1.0737 GB. Those values differ because the first calculation uses powers of 1,000 and the second uses powers of 1,024.

