Unit converter

Data storage converter

To convert data storage units, multiply or divide by 1,000 for decimal units (kB, MB, GB, TB), by 1,024 for binary units (KiB, MiB, GiB, TiB) and by 8 between bytes and bits.

GB

1 gigabyte equals

1,000megabytes

MB = GB × 1,000

1 GB × 1,000 = 1,000 MB

Exact conversion factor1 GB = 1,000 MB1 MB = 0.001 GB

So 1 GB = 1,000 MB, 1 GiB = 1,024 MiB, and a 1 TB drive holds about 931.32 GiB.

17 unitsBy Hira Noor, mathematicianLast reviewed Report a problem

Worked examples

  1. Convert 5 GB to MB, decimal and binary

    5 GB × 1,000 = 5,000 MB, and 5 GiB × 1,024 = 5,120 MiB

    Use 1,000 for GB and MB as storage makers and macOS count them, and 1,024 only for the binary GiB and MiB.

  2. Why a 1 TB drive shows 931 GB

    1 TB = 10¹² B, and 10¹² B ÷ 1,073,741,824 = 931.32 GiB

    Windows divides by 1,024³ but prints "GB", so no space is missing; only the unit changed.

  3. Convert 16 GiB of RAM to decimal GB

    16 × 1,073,741,824 B = 17,179,869,184 B, and 17,179,869,184 ÷ 10⁹ = 17.18 GB

    Memory is sold in binary sizes, so "16 GB" of RAM is 16 GiB.

  4. Convert 256 GB of phone storage to GiB

    256 × 10⁹ B ÷ 1,073,741,824 = 238.42 GiB

    Phones and SSDs are labeled in decimal gigabytes.

  5. Convert a 512 Mbit memory chip to megabytes

    512 Mbit ÷ 8 = 64 MB

    Divide bits by 8 to get bytes; the prefix stays the same.

  6. Time to download a 500 MB file at 100 Mbit/s

    500 MB × 8 = 4,000 Mbit, and 4,000 Mbit ÷ 100 Mbit/s = 40 s

    Convert bytes to bits before dividing by a network speed. Real downloads run slower because of protocol overhead.

Gigabyte to megabyte conversion chart

Gigabytes (GB) to megabytes (MB), mebibytes (MiB) and gibibytes (GiB). 1 GB = 1,000 MB exactly; the binary columns are rounded to 6 significant digits.
Gigabytes (GB)Megabytes (MB)Mebibytes (MiB)Gibibytes (GiB)
0.5500476.8370.465661
11,000953.6740.931323
22,0001,907.351.86265
44,0003,814.73.72529
55,0004,768.374.65661
88,0007,629.397.45058
1010,0009,536.749.31323
1616,00015,258.814.9012
3232,00030,517.629.8023
5050,00047,683.746.5661
6464,00061,035.259.6046
100100,00095,367.493.1323
128128,000122,070119.209
256256,000244,141238.419
500500,000476,837465.661
512512,000488,281476.837
1,0001,000,000953,674931.323

Terabyte to gigabyte conversion chart

Drive sizes as labeled in terabytes (TB), in decimal gigabytes (GB), and as Windows shows them in gibibytes (GiB) and tebibytes (TiB). Binary columns are rounded to 6 significant digits.
Terabytes (TB)Gigabytes (GB)Gibibytes (GiB)Tebibytes (TiB)
0.25250232.8310.227374
0.5500465.6610.454747
11,000931.3230.909495
22,0001,862.651.81899
33,0002,793.972.72848
44,0003,725.293.63798
55,0004,656.614.54747
66,0005,587.945.45697
88,0007,450.587.27596
1010,0009,313.239.09495
1212,00011,175.910.9139
1414,00013,038.512.7329
1616,00014,901.214.5519
1818,00016,763.816.3709
2020,00018,626.518.1899
2424,00022,351.721.8279

About data storage units

Data storage size is the amount of digital information a file or device holds, counted in bits and in bytes of eight bits.

Two prefix systems are in use. The SI prefixes kilo, mega, giga and tera mean powers of 1,000, so 1 kB = 1,000 B, 1 MB = 10⁶ B and 1 GB = 10⁹ B. The binary prefixes kibi, mebi, gibi and tebi, standardized by the IEC in 1998 and now part of IEC 80000-13, mean powers of 1,024: 1 KiB = 1,024 B, 1 MiB = 1,048,576 B and 1 GiB = 1,073,741,824 B. Every factor here is exact, because both systems are pure definitions.

To convert by hand, first decide which system each unit belongs to. Within one system, move one step per prefix: multiply by 1,000 (or 1,024) for each step to a smaller unit and divide for each step to a larger one, so 3 GB = 3,000 MB = 3,000,000 kB. Between the systems, go through bytes: 1 GB is 10⁹ bytes, and 10⁹ ÷ 1,073,741,824 ≈ 0.9313 GiB. Between bits and bytes, multiply or divide by 8. The converter does all of this with exact factors and shows the formula for each pair.

The gap between the systems grows with size: about 2.4% at the kilo level, 4.9% at mega, 7.4% at giga and 10% at tera. That is why a drive sold as 1 TB (10¹² bytes) appears as about 931 GB in Windows, which counts in gibibytes but labels them GB. A 2 TB drive shows about 1.82 "TB" (TiB), and a 256 GB phone about 238 GiB, before the system itself takes any space. macOS, iOS and drive manufacturers use decimal units, while RAM is built in binary sizes, so 16 GB of memory is really 16 GiB, or about 17.18 decimal GB.

The older JEDEC memory convention, still seen on RAM packaging and in some software, uses KB, MB and GB to mean 1,024, 1,024² and 1,024³ bytes. When a value is ambiguous, check whether the source is a storage vendor (decimal) or an operating system or memory specification (often binary). Also watch the letter case: a lowercase b means bits and an uppercase B means bytes, and 1 B = 8 bits. Network speeds are measured in bits per second, so a 100 Mbit/s connection moves at most 12.5 MB each second; see the data transfer rate converter. For prefixes on other units, use the metric prefix converter, and for binary and hexadecimal numbers, the number base converter.

Binary prefixes are powers of 2: a gibibyte is 2³⁰ bytes. The binary calculator and the number base converter work in base 2 and base 16. For download times, use the data transfer rate converter.

Every factor here is exact, because each unit is defined exactly in terms of the others. How unit conversion works explains the method.

One gigabyte in every unit

1 gigabyte in every data storage unit
UnitSymbolValue
Bitsbit8,000,000,000
BytesB1,000,000,000
Kilobitskbit8,000,000
MegabitsMbit8,000
GigabitsGbit8
KilobyteskB1,000,000
MegabytesMB1,000
GigabytesGB1
TerabytesTB0.001
PetabytesPB0.000001
ExabytesEB1×10⁻⁹
KibibytesKiB976,562.5
MebibytesMiB953.674316406
GibibytesGiB0.931322574615
TebibytesTiB0.000909494701773
PebibytesPiB0.0000008881784197
ExbibytesEiB8.67361737988×10⁻¹⁰

Unit definitions

Definitions of data storage units
UnitSystemDefinition
Bit (bit)ComputingA bit (binary digit) is the smallest unit of information, a single 0 or 1. Eight bits make one byte.
Byte (B)ComputingA byte is a group of eight bits (an octet), enough to store one character of basic text. File sizes and storage capacities are counted in bytes.
Kilobit (kbit)SIA kilobit is 1,000 bits, which is 125 bytes.
Megabit (Mbit)SIA megabit is 1,000,000 bits, which is 125,000 bytes or 0.125 MB. Memory chip densities and network speeds are often given in megabits.
Gigabit (Gbit)SIA gigabit is 10⁹ bits, which is 125,000,000 bytes or 0.125 GB. DRAM chips are commonly rated in gigabits.
Kilobyte (kB)SIA kilobyte is 1,000 bytes under the SI prefix definition. Some older software and memory specifications use KB to mean 1,024 bytes, which is properly called a kibibyte (KiB).
Megabyte (MB)SIA megabyte is 1,000,000 bytes (10⁶ B). Drive makers, network tools and macOS use this decimal meaning; the binary counterpart of 1,048,576 bytes is the mebibyte (MiB).
Gigabyte (GB)SIA gigabyte is 1,000,000,000 bytes (10⁹ B). Storage devices and data plans are sold in decimal gigabytes; the binary gibibyte (GiB) is about 7.4% larger.
Terabyte (TB)SIA terabyte is 10¹² bytes, one trillion bytes. A drive sold as 1 TB holds about 931.3 GiB, which some operating systems display as "931 GB".
Petabyte (PB)SIA petabyte is 10¹⁵ bytes, or 1,000 terabytes, a scale used for data centers and scientific archives.
Exabyte (EB)SIAn exabyte is 10¹⁸ bytes, or 1,000 petabytes, used for global data traffic and storage estimates.
Kibibyte (KiB)ComputingA kibibyte is 1,024 bytes (2¹⁰ B), the binary unit defined by the IEC. It is what older systems often labeled KB.
Mebibyte (MiB)ComputingA mebibyte is 1,048,576 bytes (2²⁰ B), exactly 1.048576 MB. RAM sizes and many Linux and Windows tools count in mebibytes.
Gibibyte (GiB)ComputingA gibibyte is 1,073,741,824 bytes (2³⁰ B), exactly 1.073741824 GB. Windows reports drive and file sizes in gibibytes but labels them GB.
Tebibyte (TiB)ComputingA tebibyte is 2⁴⁰ bytes, 1,099,511,627,776 B, which is 1,024 GiB or exactly 1.099511627776 TB. Windows, Linux disk tools and cloud block storage count large volumes in tebibytes, and Windows labels them "TB".
Pebibyte (PiB)ComputingA pebibyte is 2⁵⁰ bytes, 1,125,899,906,842,624 B, about 1.1259 PB.
Exbibyte (EiB)ComputingAn exbibyte is 2⁶⁰ bytes, about 1.1529 × 10¹⁸ B or 1.1529 EB.

Frequently asked questions

How do you convert data storage units?

Multiply by 1,000 for each step down the decimal ladder (TB, GB, MB, kB, B) and divide by 1,000 for each step up. For binary units (TiB, GiB, MiB, KiB) use 1,024 instead. To go between bytes and bits, multiply or divide by 8. For example, 2 GB = 2,000 MB = 2,000,000 kB, and 2 GiB = 2,048 MiB.

How many megabytes are in a gigabyte?

Exactly 1,000 MB in decimal units. In binary units, 1 GiB is exactly 1,024 MiB. Mixing the two, 1 GB is about 953.67 MiB.

What is 1 TB equal to?

One terabyte is exactly 1,000 GB, 1,000,000 MB or 10¹² bytes. In binary units it is about 931.32 GiB or 0.9095 TiB, which is why a 1 TB drive shows as about 931 GB in Windows.

Is a kilobyte 1,000 or 1,024 bytes?

Under the SI and IEC standards a kilobyte (kB) is 1,000 bytes and a kibibyte (KiB) is 1,024 bytes. Use 1,000 for kB, MB, GB and TB, the units on drive labels, data plans and macOS, and 1,024 for KiB, MiB, GiB and TiB and for RAM sizes. The older JEDEC memory convention and Windows still use KB, MB and GB for the 1,024-based sizes.

How many MiB are in a MB?

One megabyte is exactly 0.95367431640625 MiB, because 1,000,000 ÷ 1,048,576 = 0.95367431640625. In the other direction, 1 MiB = 1.048576 MB.

What is the difference between Mb and MB?

Mb (lowercase b) is a megabit and MB (uppercase B) is a megabyte. A byte is eight bits, so 1 MB = 8 Mb, a 512 Mbit memory chip stores 64 MB, and a 100 Mbit/s connection moves at most 12.5 MB per second.

Sources and further reading

  1. Prefixes for binary multiples (opens in a new tab), National Institute of Standards and Technology
  2. IEC 80000-13: Quantities and units, Part 13: Information science and technology, International Electrotechnical Commission
  3. The International System of Units (SI Brochure), 9th edition (opens in a new tab), Bureau International des Poids et Mesures