Skip to content
PC Moment

Free tool

MB to GB Converter (MB, MiB, GB and GiB)

Convert megabytes to gigabytes in decimal and binary units side by side, and see why 1,024 MB is not quite 1 GB.

Decimal (SI, ×1,000)Binary (IEC, ×1,024)

To convert MB to GB, divide by 1,000: 1,024 MB is 1.024 GB. The catch is that “MB” is also used for the binary mebibyte (MiB) of 1,048,576 bytes, and in that system 1,024 of them make one GiB. This converter starts at 1,024 MB and shows the amount in every decimal and binary unit side by side, so you can see which number a file size, a download page, a phone spec or a RAM stick is really using.

How to use the MB to GB converter

  1. Enter a number. The converter starts at 1,024 MB.
  2. Pick its unit: bytes, KB, MB, GB, TB or PB (decimal), or KiB, MiB, GiB, TiB or PiB (binary).
  3. Read the same amount in every decimal unit (×1,000 per step) next to every binary unit (×1,024 per step).
  4. Check the line under the table to see what size Windows would show for that amount.

How it works

Decimal units use the SI prefixes, where mega means a million and giga a billion. Binary units use the prefixes the IEC approved in December 1998 for powers of 2: kibi, mebi, gibi, tebi and pebi. NIST notes that these binary prefixes are not part of the SI.

Decimal (SI)BytesBinary (IEC)Bytes
1 KB1,0001 KiB1,024
1 MB1,000,0001 MiB1,048,576
1 GB1,000,000,0001 GiB1,073,741,824
1 TB1,000,000,000,0001 TiB1,099,511,627,776

The formulas:

  • GB = MB ÷ 1,000
  • GiB = MiB ÷ 1,024
  • MiB = MB ÷ 1.048576
  • GiB = MB ÷ 1,073.741824

The familiar “1,024 MB = 1 GB” is the binary rule (1,024 MiB = 1 GiB) written with decimal labels. Read in decimal units it is off by 2.4%, because 1,024 MB is 1.024 GB.

Where you see MB and where you see MiB

  • Drives, memory cards and phone storage are labeled in decimal units. Apple’s capacity footnote, for example, reads “1GB = 1 billion bytes”.
  • RAM is sized in binary units. NIST notes that when discussing computer memory, most manufacturers use megabyte to mean 1,048,576 bytes. An “8 GB” memory module holds 8 GiB.
  • Windows calculates sizes in binary units but labels them KB, MB, GB and TB. Microsoft’s own documentation says a 2 TB drive appears as 1.82 TiB in Windows. That’s why a file or drive looks smaller in Windows than its decimal size.
  • Apple devices have changed over time: Apple says iOS 10 and earlier and OS X Leopard and earlier report storage in binary units, where 1 GB is 1,073,741,824 bytes.
  • Data plans and download pages usually just say MB or GB without saying which system they use. The converter shows both, so you can see how far apart the two readings are for your amount.

Note: Don’t confuse MB with Mb. Microsoft’s style guide uses MB for megabyte and Mb for megabit, and MBps versus Mbps for the speeds. A byte is 8 bits, so a 100 Mbps connection moves at most 12.5 MB of data per second.

Worked examples

1,024 MB → 1.024 GB

1,024 MB = 1,024,000,000 bytes. That is 1.024 GB, 976.5625 MiB, or 0.9537 GiB (1,024,000,000 ÷ 1,073,741,824). Windows shows it as about 976 MB.

1 GiB → 1,024 MiB or 1,073.741824 MB

1 GiB = 1,073,741,824 bytes = 1,024 MiB. In decimal units that is 1,073.741824 MB, or 1.073741824 GB. The converter rounds long decimals for display.

A 700 MB video file → 0.7 GB

700 MB = 700,000,000 bytes = 0.7 GB. In binary units it is 667.57 MiB (667.572, rounded), so Windows shows it as about 667 MB.

128 GB of storage → about 119 GB in Windows

A phone or memory card sold as 128 GB holds 128,000 MB = 128,000,000,000 bytes. Divided by 1,073,741,824 that is 119.21 GiB, so Windows shows that amount as about 119 GB.

8 GB of RAM → 8,192 MiB

Memory is binary, so 8 GB of RAM is 8 GiB = 8 × 1,024 = 8,192 MiB, which is 8,589,934,592 bytes, or 8,589.934592 MB in decimal units.

A 5 GB data plan → 5,000 MB or 5,120 MiB

Counted in decimal units, 5 GB is 5,000 MB. Counted in binary units, 5 GiB is 5,120 MiB, which is 5,368.70912 MB. The difference between the two readings is 368.70912 MB.

Frequently asked questions

How many MB are in a GB?

In decimal (SI) units, 1 GB is 1,000 MB. In binary (IEC) units, 1 GiB is 1,024 MiB. Both are correct; they are different units that often share the labels MB and GB.

Is 1,024 MB equal to 1 GB?

Only in binary units: 1,024 MiB is exactly 1 GiB. In decimal units, 1,024 MB is 1.024 GB, which is about 0.954 GiB.

What is the difference between MB and MiB?

A megabyte (MB) is 1,000,000 bytes and a mebibyte (MiB) is 1,048,576 bytes (2^20). A MiB is about 4.9% larger than an MB.

Is RAM measured in MB or MiB?

Memory is sized in binary units. NIST notes that most memory makers use megabyte to mean 1,048,576 bytes, so 8 GB of RAM is 8 GiB: 8,192 MiB or 8,589,934,592 bytes.

Why does Windows show a 700 MB file as 667 MB?

A file of 700,000,000 bytes is 700 MB in decimal units. Windows divides by 1,024 instead of 1,000, which gives 667.57 MiB, and shows that with the MB label.

Are MB and Mb the same?

No. MB is megabytes and Mb is megabits; a byte is 8 bits. Connection speeds are usually given in megabits per second (Mbps), file sizes in megabytes.

Related guides

PC Moment title card for Bytes to GB Converter

Free tool

Bytes to GB Converter (GB and GiB)

Convert bytes, KB, MB, GB, TB and PB in decimal and binary units side by side, and see what size Windows will show for a drive.

Free calculator

PC Moment title card for Binary to Decimal Converter

Free tool

Binary to Decimal Converter

Convert a binary number to decimal and see which powers of 2 add up to the result. Hex and octal are shown too.

Free calculator