Storage is counted in bits and bytes. SI prefixes (kilo, mega, giga) use powers of 1,000, while the IEC binary prefixes (kibi, mebi, gibi) use powers of 1,024. That difference is why a "1 TB" drive shows fewer gigabytes in some operating systems. This hub lists the 12 data storage units supported by the converter, shows the exact size of each one in bits, and gives a ready-made table for converting between the most common ones.
Data storage units and their definitions
Every data storage unit is a fixed multiple of the bit, so a conversion is a single multiplication and a division. The middle column shows how many bits one unit equals; values are rounded to ten significant digits.
| Unit | Size in bits | Definition |
|---|---|---|
| bit (b) | 1 | one binary digit |
| byte (B) | 8 | 8 bits |
| kilobit (kb) | 1,000 | 1,000 bits (SI) |
| kilobyte (kB) | 8,000 | 1,000 bytes (SI) |
| megabit (Mb) | 1,000,000 | 10⁶ bits |
| megabyte (MB) | 8,000,000 | 10⁶ bytes |
| gigabit (Gb) | 1,000,000,000 | 10⁹ bits |
| gigabyte (GB) | 8,000,000,000 | 10⁹ bytes |
| terabyte (TB) | 8 × 10¹² | 10¹² bytes |
| kibibyte (KiB) | 8,192 | 1,024 bytes (IEC binary prefix) |
| mebibyte (MiB) | 8,388,608 | 1,048,576 bytes |
| gibibyte (GiB) | 8,589,934,592 | 1,073,741,824 bytes |
Conversion table for the most common data storage units
Read across a row to see what one unit of the row label is worth in the column units.
| Convert 1 of… | in bit | in byte | in kilobyte | in megabyte | in gigabyte |
|---|---|---|---|---|---|
| 1 bit | — | 0.125 | 0.000125 | 1.25 × 10⁻⁷ | 1.25 × 10⁻¹⁰ |
| 1 byte | 8 | — | 0.001 | 1 × 10⁻⁶ | 1 × 10⁻⁹ |
| 1 kilobyte | 8,000 | 1,000 | — | 0.001 | 1 × 10⁻⁶ |
| 1 megabyte | 8,000,000 | 1,000,000 | 1,000 | — | 0.001 |
| 1 gigabyte | 8,000,000,000 | 1,000,000,000 | 1,000,000 | 1,000 | — |
Gigabyte and megabyte: quick reference
Round numbers are the ones people look up most often. The first column is the starting value; the next two columns convert it from gigabyte to megabyte and from megabyte to gigabyte.
| Gigabyte or megabyte | If it is gigabyte: in megabyte | If it is megabyte: in gigabyte |
|---|---|---|
| 0.1 | 100 | 0.0001 |
| 1 | 1,000 | 0.001 |
| 2 | 2,000 | 0.002 |
| 5 | 5,000 | 0.005 |
| 10 | 10,000 | 0.01 |
| 50 | 50,000 | 0.05 |
| 100 | 100,000 | 0.1 |
| 1,000 | 1,000,000 | 1 |
How the conversion works
Result = value × (size of the “from” unit ÷ size of the “to” unit). For example, 1 gigabyte = 1 × 8,000,000,000 ÷ 8,000,000 = 1,000 megabyte. The live converter above is set to this example; pick any other pair of data storage units to convert your own value.