Calcamaze

Data Storage Converter

Convert bits, bytes, KB, MB, GB and TB, including binary units (KiB, MiB, GiB, TiB) used by operating systems.

Result

1 GB in gibibytes (gib)
0.93132257 GiB
1 GB in every unit
UnitValue
Bits (bit)8,000,000,000
Kilobits (kbit)8,000,000
Megabits (Mbit)8,000
Gigabits (Gbit)8
Bytes (B)1,000,000,000
Kilobytes (KB, 1,000 B)1,000,000
Megabytes (MB)1,000
Gigabytes (GB)1
Terabytes (TB)0.001
Petabytes (PB)0.000001
Kibibytes (KiB, 1,024 B)976,562.5
Mebibytes (MiB)953.67432
Gibibytes (GiB)0.93132257
Tebibytes (TiB)0.0009094947
Pebibytes (PiB)8.8817842e-7

Convert file sizes and storage capacities between bits, bytes and every decimal (KB, MB, GB, TB) and binary (KiB, MiB, GiB, TiB) multiple. Use it to see why a “1 TB” drive shows as 931 GB, or how long a download will take in megabits.

Two things cause most confusion: bits versus bytes (8 bits make a byte), and decimal prefixes (1 KB = 1,000 bytes) versus binary ones (1 KiB = 1,024 bytes). Network speeds are quoted in bits; file sizes and drives in bytes.

Why are there two kinds of gigabyte?

A bit is a single 0 or 1, and a byte is 8 bits. Larger amounts use prefixes, and two sets are in use. The SI decimal prefixes step by powers of 1,000: a kilobyte (KB) is 1,000 bytes, a megabyte 1,000,000 and a gigabyte 1,000,000,000. Drive makers, network speeds and macOS use these.

Computer memory is built in powers of two, so in 1998 the IEC introduced binary prefixes that step by 1,024: the kibibyte (KiB) is 1,024 bytes, the mebibyte (MiB) 1,048,576 and the gibibyte (GiB) 1,073,741,824. Windows counts in these units but still labels them KB, MB and GB, which is why a new drive seems smaller than advertised.

How to use the data storage converter

  1. Enter the value you want to convert.
  2. Set “From” and “To”, for example megabits to megabytes, or GB to GiB.
  3. Read the result, and use the table to see the same amount of data in every other unit.

Formula

Result = Value × (bytes per “from” unit) ÷ (bytes per “to” unit)

A byte is 8 bits. Decimal prefixes step by 1,000 (1 GB = 1,000,000,000 bytes); the IEC binary prefixes step by 1,024 (1 GiB = 2³⁰ = 1,073,741,824 bytes).

Worked examples

Why a “1 TB” drive shows as 931 GB

Value
1
From
Terabytes (TB)
To
Gibibytes (GiB)
1 TB in gibibytes (gib)
931.32257 GiB

1 TB is 10¹² bytes. Dividing by 2³⁰ bytes per GiB gives 931.323 GiB, which Windows displays as “931 GB”.

Download speed in megabytes

Value
100
From
Megabits (Mbit)
To
Megabytes (MB)
100 Mbit in megabytes (mb)
12.5 MB

A 100 Mbit/s connection moves 100 ÷ 8 = 12.5 MB every second, so a 5 GB file takes about 400 seconds at full speed.

RAM in gigabytes

Value
16
From
Gibibytes (GiB)
To
Gigabytes (GB)
16 GiB in gigabytes (gb)
17.179869 GB

16 GiB of memory is 16 × 1,073,741,824 = 17,179,900,000 bytes, or 17.1799 decimal GB.

Decimal and binary units

Decimal unitBytesBinary unitBytes
1 KB1,0001 KiB1,024
1 MB1,000,0001 MiB1,048,576
1 GB1,000,000,0001 GiB1,073,741,824
1 TB10¹²1 TiB1,099,511,627,776
1 PB10¹⁵1 PiB2⁵⁰ ≈ 1.126 × 10¹⁵

How long will a download take?

Divide the connection speed in megabits per second by 8 to get megabytes per second. A 100 Mbit/s connection moves at most 12.5 MB/s, so a 4 GB (4,000 MB) file takes at least 320 seconds, about 5½ minutes. Real downloads are usually a bit slower because of overheads and other traffic.

Common mistakes

  • Confusing bits and bytes: Mbps (megabits per second) is eight times smaller than MB/s.
  • Assuming GB always means 1,024³ bytes. Drives and networks use 1,000³; only binary-labelled units (GiB) are exactly 1,024³.
  • Expecting the gap to stay small. It is 2.4% at the kilobyte level but almost 10% at the terabyte level.
  • Comparing a speed in Mbit/s with a file size in MB without dividing by 8.

Frequently asked questions

Why does my 1 TB drive show less space?

Drive makers use decimal units: 1 TB = 10¹² bytes. Windows counts in binary units but labels them “GB”, so it shows 10¹² ÷ 2³⁰ ≈ 931 “GB” (really GiB). No space is missing.

How many megabytes is 100 megabits?

Divide by 8: 100 Mbit = 12.5 MB. Internet speeds are quoted in megabits per second, file sizes in megabytes.

What is the difference between a KB and a KiB?

A kilobyte (KB) is 1,000 bytes; a kibibyte (KiB) is 1,024 bytes. Drive makers use the decimal units, while some operating systems report sizes in binary units, which is why the numbers differ.

How many gigabytes are in a terabyte?

1,000 GB in decimal units. In binary units, a tebibyte is 1,024 GiB.

Sources

  1. Prefixes for binary multiples, National Institute of Standards and Technology (NIST)
  2. The International System of Units (SI Brochure), Bureau International des Poids et Mesures (BIPM)

Last updated · Calculations checked by automated tests· Editorial policy