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
- Enter the value you want to convert.
- Set “From” and “To”, for example megabits to megabytes, or GB to GiB.
- 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 unit | Bytes | Binary unit | Bytes |
|---|---|---|---|
| 1 KB | 1,000 | 1 KiB | 1,024 |
| 1 MB | 1,000,000 | 1 MiB | 1,048,576 |
| 1 GB | 1,000,000,000 | 1 GiB | 1,073,741,824 |
| 1 TB | 10¹² | 1 TiB | 1,099,511,627,776 |
| 1 PB | 10¹⁵ | 1 PiB | 2⁵⁰ ≈ 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
- Prefixes for binary multiples, National Institute of Standards and Technology (NIST)
- The International System of Units (SI Brochure), Bureau International des Poids et Mesures (BIPM)
Last updated · Calculations checked by automated tests· Editorial policy