Skip to main content

Convert MB, GB, MiB and GiB (Decimal vs Binary)

MB / GB ↔ MiB / GiB converter: exact definitions (decimal 1,000, binary 1,024), formulas, why a 1 TB drive shows about 931 GiB in Windows, the difference between bytes and bits (Mbit/s vs MB/s) and a conversion table.

Embed this widget

Customize the result, check the live preview, then copy the code.

Preview

Embed code type

Code to copy

Responsive and automatically resized by Bethemesh.

Conversion table

GB to MB conversion
GBMB
1 GB1,000 MB
4 GB4,000 MB
8 GB8,000 MB
16 GB16,000 MB
32 GB32,000 MB
64 GB64,000 MB
128 GB128,000 MB
256 GB256,000 MB
512 GB512,000 MB
1,000 GB1,000,000 MB
MB to GB conversion
MBGB
100 MB0.1 GB
250 MB0.25 GB
500 MB0.5 GB
700 MB0.7 GB
1,000 MB1 GB
4,700 MB4.7 GB
10,000 MB10 GB
25,000 MB25 GB

Was this tool useful?

How does this tool work?

This converter turns decimal megabytes and gigabytes (MB, GB) into binary mebibytes and gibibytes (MiB, GiB), and back: choose the two units, type a value, and the other field updates at once. It explains and quantifies the gap between the capacity printed on the box of a drive, USB stick or phone and the capacity your operating system displays.

Two families of units coexist. The decimal SI prefixes (kilo, mega, giga, tera) are powers of 1,000: 1 MB = 1,000,000 bytes and 1 GB = 1,000,000,000 bytes. The binary prefixes (kibi, mebi, gibi, tebi) were standardised by the IEC in the late 1990s (now IEC 80000-13) and are powers of 1,024: 1 MiB = 1,048,576 bytes and 1 GiB = 1,073,741,824 bytes.

The formulas: GiB = GB × 1,000,000,000 ÷ 1,073,741,824 ≈ GB × 0.931323; GB = GiB × 1.073742; MiB = MB × 0.953674; MB = MiB × 1.048576. Between units of the same rank the gap widens at every level: 2.4% at kilo, 4.9% at mega, 7.4% at giga, 10% at tera. One byte is 8 bits. The double arrow swaps the direction so you can check a result both ways.

For a mental estimate, subtract about 7% from a capacity in GB to get GiB: 500 GB ≈ 465 GiB (exact 465.66). A 1 TB (1,000 GB) drive therefore appears as about 931 GiB in Windows, which counts in binary but labels it "GB". Manufacturers advertise in decimal, which is consistent with SI; the space is not lost, it is just counted with a different unit.

Do not mix up bytes and bits either. Capacities are given in bytes (MB, GB), network speeds in bits per second (Mbit/s, Gbit/s): 1 byte = 8 bits, so 100 Mbit/s is 12.5 MB/s and 1 Gbit/s is 125 MB/s. The decimal kilo is a lowercase k (kB); the binary kilo is KiB. macOS (since 2009) and many Linux tools show decimal sizes, which is why the same drive can display different values on different systems.

How to use this tool

  1. Choose the two units

    In the left and right menus: decimal MB or GB, binary MiB or GiB; for a terabyte, enter 1,000 GB.

  2. Enter the capacity

    In either field, decimals accepted; the other field updates on every keystroke.

  3. Compare with the table

    The table under the converter lists typical storage sizes (from 1 to 1,000 GB) so you can find usual drive, memory card and USB stick capacities.

Decimal ↔ binary conversion formulas

Decimal and binary units both refer to the byte, which makes the conversion exact.

GB to GiB

GiB = GB × 10⁹ ÷ 2³⁰ ≈ GB × 0.931323

1 GB = 1,000,000,000 bytes and 1 GiB = 1,073,741,824 bytes.

MB to MiB

MiB = MB × 10⁶ ÷ 2²⁰ ≈ MB × 0.953674

1 MB = 1,000,000 bytes and 1 MiB = 1,048,576 bytes.

Rate in bytes

MB/s = Mbit/s ÷ 8

A byte holds 8 bits.

GB
decimal gigabyte (10⁹ bytes)
GiB
binary gibibyte (2³⁰ bytes)
MB / MiB
decimal megabyte (10⁶ bytes) / binary mebibyte (2²⁰ bytes)

Example: a 512 GB SSD holds 512 × 10⁹ ÷ 2³⁰ ≈ 476.84 GiB; a 2 TB (2,000 GB) drive gives about 1,862.65 GiB.

Use cases

Buying a drive or a phone

Predict the capacity your system will actually show before buying, allowing for the decimal / binary gap.

System administration

Reconcile a value in GB from a cloud console or vendor with a value in GiB shown by the OS or a monitoring tool.

Development and networking

Convert the size of an image, database or transfer between decimal and binary bytes, or estimate a download time.

Support and teaching

Explain why 1 TB is not 1,000 GB in a file explorer, with figures anyone can check.

Examples

A 1 TB hard drive

1,000 × 1,000,000,000 ÷ 1,073,741,824 ≈ 931.32 GiB: what Windows shows for a 1 TB drive.

Input

1,000 GB

Result

931.32 GiB

A 256 GB smartphone

256 × 0.931323 ≈ 238.42 GiB, before the operating system takes its share.

Input

256 GB

Result

238.42 GiB

A 16 GiB RAM module

16 × 1.073742 ≈ 17.18 GB: memory is sold in binary sizes.

Input

16 GiB

Result

17.18 GB

A 4.7 GB DVD

4.7 × 1,000,000,000 ÷ 1,048,576 ≈ 4,482.27 MiB, or 4.38 GiB.

Input

4.7 GB

Result

4,482.27 MiB

A 700 MB CD

700 × 1,000,000 ÷ 1,048,576 ≈ 667.57 MiB.

Input

700 MB

Result

667.57 MiB

Tips and best practices

  • Quick reference: 1 GB ≈ 0.93 GiB and 1 GiB ≈ 1.07 GB; for a TB drive, expect about 9% less in TiB.
  • A Mbit/s is not a MB/s: divide by 8. A 500 Mbit/s connection downloads at best 62.5 MB/s.
  • To estimate a download: 100 GB at 100 Mbit/s takes 100 × 8,000 ÷ 100 = 8,000 s, about 2 h 13 min.
  • MiB and GiB are unambiguous; MB and GB should mean decimal, but some software uses them for binary sizes.

Sources and references

Frequently asked questions

Why does a 1 TB drive show 931 GB?

The manufacturer counts in decimal: 1 TB = 1,000,000,000,000 bytes. Windows divides by 1,073,741,824 to show gibibytes, 931.32, but labels it "GB".

How many MB are in a GB?

In decimal, 1 GB = 1,000 MB. In binary, 1 GiB = 1,024 MiB. Mixing the two gives 1 GB ≈ 953.67 MiB.

How do you convert GB to GiB?

Multiply the gigabytes by 0.931323 (or by 1,000,000,000 ÷ 1,073,741,824). For example, 512 GB is 476.84 GiB.

What is the difference between MB and MiB?

A megabyte (MB) is 1,000,000 bytes, a mebibyte (MiB) is 1,048,576 bytes, 4.86% more. The MiB is the binary unit standardised by the IEC.

Mbit/s or MB/s: what is the difference?

A byte is 8 bits. 1 Mbit/s = 0.125 MB/s, and a 1 Gbit/s line transfers at most 125 MB/s.

Related tools

Tools similar or complementary to this one.

Similar tools

Convert length, weight, volume, temperature, pressure, energy, fuel economy, digital storage and electrical units with exact factors.

Mathematics & calculationFeaturedUse this tool

Convert an image to PNG, JPEG, or WebP and adjust output quality before download.

Mathematics & calculationFeaturedUse this tool

Convert audio files locally to MP3, WAV, FLAC, OGG, M4A or Opus.

Mathematics & calculationFeaturedUse this tool