Data Storage unit converter

Data Storage: pick any two units below; every factor on this page is computed from the exact definition of each unit.

Result

Result—
—
Formula—

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.

UnitSize in bitsDefinition
bit (b)1one binary digit
byte (B)88 bits
kilobit (kb)1,0001,000 bits (SI)
kilobyte (kB)8,0001,000 bytes (SI)
megabit (Mb)1,000,00010⁶ bits
megabyte (MB)8,000,00010⁶ bytes
gigabit (Gb)1,000,000,00010⁹ bits
gigabyte (GB)8,000,000,00010⁹ bytes
terabyte (TB)8 × 10¹²10¹² bytes
kibibyte (KiB)8,1921,024 bytes (IEC binary prefix)
mebibyte (MiB)8,388,6081,048,576 bytes
gibibyte (GiB)8,589,934,5921,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 bitin bytein kilobytein megabytein gigabyte
1 bit—0.1250.0001251.25 × 10⁻⁷1.25 × 10⁻¹⁰
1 byte8—0.0011 × 10⁻⁶1 × 10⁻⁹
1 kilobyte8,0001,000—0.0011 × 10⁻⁶
1 megabyte8,000,0001,000,0001,000—0.001
1 gigabyte8,000,000,0001,000,000,0001,000,0001,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 megabyteIf it is gigabyte: in megabyteIf it is megabyte: in gigabyte
0.11000.0001
11,0000.001
22,0000.002
55,0000.005
1010,0000.01
5050,0000.05
100100,0000.1
1,0001,000,0001

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.

Related pages

Use the full Unit Converter for other values.