Home Guides Unit & Conversion

Unit & Conversion

How to Convert MB to GB and MiB to GiB

Understand decimal MB and GB versus binary MiB and GiB, with correct factors, worked examples, and practical guidance for storage comparisons.

In this guide Step-by-step explanations, practical examples and useful context to help you complete the task confidently.

MB, GB, MiB and GiB are related storage units, but they do not use the same definitions. Decimal units use powers of 1,000; binary units use powers of 1,024. This difference explains why a storage value may look different in a product specification and in some software displays.

Decimal and binary definitions

UnitDefinition in bytesPrefix system
1 kB1,000 bytesDecimal
1 MB1,000,000 bytesDecimal
1 GB1,000,000,000 bytesDecimal
1 KiB1,024 bytesBinary
1 MiB1,048,576 bytesBinary
1 GiB1,073,741,824 bytesBinary

Convert MB to MiB

Because 1 MB is 1,000,000 bytes and 1 MiB is 1,048,576 bytes:

MiB = MB × 1,000,000 ÷ 1,048,576

Equivalently, multiply MB by approximately 0.953674.

Convert GB to GiB

GiB = GB × 1,000,000,000 ÷ 1,073,741,824

Equivalently, multiply GB by approximately 0.931323. This is a unit conversion, not evidence that a drive has lost capacity.

Worked examples

Decimal valueApproximate binary value
1 MB0.9537 MiB
100 MB95.3674 MiB
1 GB0.9313 GiB
10 GB9.3132 GiB
500 GB465.6613 GiB

Convert in the other direction

To convert MiB to MB, multiply by 1,048,576 and divide by 1,000,000. To convert GiB to GB, multiply by 1,073,741,824 and divide by 1,000,000,000. The reverse factors are approximately 1.048576 and 1.073741824, respectively.

Why displays differ

Storage manufacturers commonly state capacity using decimal GB or TB. Operating systems and applications may display decimal or binary units, sometimes with inconsistent labels. File-system formatting, reserved partitions and system data can also affect the usable space shown; the MB-to-MiB or GB-to-GiB conversion alone does not account for all such differences.

Common mistakes

  • Treating MB and MiB or GB and GiB as identical.
  • Using 1,024 as the ratio between decimal GB and binary GiB without accounting for the 1,000-based definition.
  • Comparing values that use different unit conventions without checking labels.
  • Rounding intermediate calculations and then reusing rounded values.

Use a storage unit converter

Select the exact source and target units when comparing file sizes, memory, storage devices or bandwidth-related documentation. Keep decimal and binary prefixes distinct so the resulting comparison is meaningful.

You've reached the end

Use the related tools, FAQs and next guides below to continue from the topic you just learned.

Use the solution

Try the Tervilo Tools

Finish the task with a practical Tervilo tool related to this guide.

Learn more

Related Articles

Understand the wider topic with an informative Tervilo article.