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.
So 1 GB = 1,000 MB, 1 GiB = 1,024 MiB, and a 1 TB drive holds about 931.32 GiB.
Worked examples
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.
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.
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.
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.
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.
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) | Megabytes (MB) | Mebibytes (MiB) | Gibibytes (GiB) |
|---|---|---|---|
| 0.5 | 500 | 476.837 | 0.465661 |
| 1 | 1,000 | 953.674 | 0.931323 |
| 2 | 2,000 | 1,907.35 | 1.86265 |
| 4 | 4,000 | 3,814.7 | 3.72529 |
| 5 | 5,000 | 4,768.37 | 4.65661 |
| 8 | 8,000 | 7,629.39 | 7.45058 |
| 10 | 10,000 | 9,536.74 | 9.31323 |
| 16 | 16,000 | 15,258.8 | 14.9012 |
| 32 | 32,000 | 30,517.6 | 29.8023 |
| 50 | 50,000 | 47,683.7 | 46.5661 |
| 64 | 64,000 | 61,035.2 | 59.6046 |
| 100 | 100,000 | 95,367.4 | 93.1323 |
| 128 | 128,000 | 122,070 | 119.209 |
| 256 | 256,000 | 244,141 | 238.419 |
| 500 | 500,000 | 476,837 | 465.661 |
| 512 | 512,000 | 488,281 | 476.837 |
| 1,000 | 1,000,000 | 953,674 | 931.323 |
Terabyte to gigabyte conversion chart
| Terabytes (TB) | Gigabytes (GB) | Gibibytes (GiB) | Tebibytes (TiB) |
|---|---|---|---|
| 0.25 | 250 | 232.831 | 0.227374 |
| 0.5 | 500 | 465.661 | 0.454747 |
| 1 | 1,000 | 931.323 | 0.909495 |
| 2 | 2,000 | 1,862.65 | 1.81899 |
| 3 | 3,000 | 2,793.97 | 2.72848 |
| 4 | 4,000 | 3,725.29 | 3.63798 |
| 5 | 5,000 | 4,656.61 | 4.54747 |
| 6 | 6,000 | 5,587.94 | 5.45697 |
| 8 | 8,000 | 7,450.58 | 7.27596 |
| 10 | 10,000 | 9,313.23 | 9.09495 |
| 12 | 12,000 | 11,175.9 | 10.9139 |
| 14 | 14,000 | 13,038.5 | 12.7329 |
| 16 | 16,000 | 14,901.2 | 14.5519 |
| 18 | 18,000 | 16,763.8 | 16.3709 |
| 20 | 20,000 | 18,626.5 | 18.1899 |
| 24 | 24,000 | 22,351.7 | 21.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
| Unit | Symbol | Value |
|---|---|---|
| Bits | bit | 8,000,000,000 |
| Bytes | B | 1,000,000,000 |
| Kilobits | kbit | 8,000,000 |
| Megabits | Mbit | 8,000 |
| Gigabits | Gbit | 8 |
| Kilobytes | kB | 1,000,000 |
| Megabytes | MB | 1,000 |
| Gigabytes | GB | 1 |
| Terabytes | TB | 0.001 |
| Petabytes | PB | 0.000001 |
| Exabytes | EB | 1×10⁻⁹ |
| Kibibytes | KiB | 976,562.5 |
| Mebibytes | MiB | 953.674316406 |
| Gibibytes | GiB | 0.931322574615 |
| Tebibytes | TiB | 0.000909494701773 |
| Pebibytes | PiB | 0.0000008881784197 |
| Exbibytes | EiB | 8.67361737988×10⁻¹⁰ |
Unit definitions
| Unit | System | Definition |
|---|---|---|
| Bit (bit) | Computing | A bit (binary digit) is the smallest unit of information, a single 0 or 1. Eight bits make one byte. |
| Byte (B) | Computing | A 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) | SI | A kilobit is 1,000 bits, which is 125 bytes. |
| Megabit (Mbit) | SI | A 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) | SI | A gigabit is 10⁹ bits, which is 125,000,000 bytes or 0.125 GB. DRAM chips are commonly rated in gigabits. |
| Kilobyte (kB) | SI | A 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) | SI | A 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) | SI | A 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) | SI | A 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) | SI | A petabyte is 10¹⁵ bytes, or 1,000 terabytes, a scale used for data centers and scientific archives. |
| Exabyte (EB) | SI | An exabyte is 10¹⁸ bytes, or 1,000 petabytes, used for global data traffic and storage estimates. |
| Kibibyte (KiB) | Computing | A kibibyte is 1,024 bytes (2¹⁰ B), the binary unit defined by the IEC. It is what older systems often labeled KB. |
| Mebibyte (MiB) | Computing | A 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) | Computing | A 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) | Computing | A 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) | Computing | A pebibyte is 2⁵⁰ bytes, 1,125,899,906,842,624 B, about 1.1259 PB. |
| Exbibyte (EiB) | Computing | An exbibyte is 2⁶⁰ bytes, about 1.1529 × 10¹⁸ B or 1.1529 EB. |
Popular data storage conversions
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
- Prefixes for binary multiples (opens in a new tab), National Institute of Standards and Technology
- IEC 80000-13: Quantities and units, Part 13: Information science and technology, International Electrotechnical Commission
- The International System of Units (SI Brochure), 9th edition (opens in a new tab), Bureau International des Poids et Mesures