This data storage converter changes any amount of digital data between bits, bytes, kilobytes, megabytes, gigabytes, terabytes and petabytes. Pick the input unit — decimal (KB, MB, GB) or binary (KiB, MiB, GiB) — and choose whether the results use 1,000 or 1,024 as the step. Every conversion also shows the same size in both systems, which explains why a new 1 TB drive appears as about 931 “GB” on your computer.
How data storage units work
A byte is 8 bits. Larger units come in two families:
Decimal (SI): 1 KB = 1,000 B 1 MB = 1,000 KB 1 GB = 1,000 MB ... Binary (IEC): 1 KiB = 1,024 B 1 MiB = 1,024 KiB 1 GiB = 1,024 MiB ... value in target unit = value × (bytes per source unit) ÷ (bytes per target unit) bits = bytes × 8
The binary prefixes kibi, mebi, gibi and tebi were introduced by the IEC in 1998 so that “kilo” could keep its SI meaning of exactly 1,000. NIST recommends the same convention. In practice, software still often writes “GB” when it means GiB.
Decimal vs binary units
| Decimal | Bytes | Binary | Bytes | Binary is larger by |
|---|---|---|---|---|
| KB | 10001 = 1,000 B | KiB | 10241 = 1,024 B | +2.4% |
| MB | 10002 = 1,000,000 B | MiB | 10242 = 1,048,576 B | +4.9% |
| GB | 10003 = 1,000,000,000 B | GiB | 10243 = 1,073,741,824 B | +7.4% |
| TB | 10004 = 1,000,000,000,000 B | TiB | 10244 = 1,099,511,627,776 B | +10% |
| PB | 10005 = 1,000,000,000,000,000 B | PiB | 10245 = 1,125,899,906,842,624 B | +12.6% |
The gap grows with each step: 2.4% at the kilobyte level, 7.4% at the gigabyte level and almost 10% at the terabyte level.
Worked examples
- 1 TB to GiB: 1 TB = 1,000,000,000,000 bytes ÷ 1,073,741,824 = 931.32 GiB, so a 1 TB drive shows as 931.32 GiB.
- 500 GB to GiB: 500,000,000,000 ÷ 1,073,741,824 = 465.66 GiB.
- 1 GiB to MB: 1,073,741,824 bytes ÷ 1,000,000 = 1,073.74 MB.
- 100 megabits to megabytes: 100 ÷ 8 = 12.5 MB — why a 100 Mbps connection downloads at about 12.5 MB/s.
- 4 KB to bits: 4 × 1,000 × 8 = 32,000 bits (or 32,768 bits for 4 KiB).
Why your drive looks smaller than advertised
Drive makers count in decimal units (1 TB = 1012 bytes), as do macOS (since version 10.6) and most phone storage screens. Windows File Explorer divides by 1,024 but still labels the result “GB” or “TB”. Nothing is missing — the same number of bytes is simply divided by a bigger unit. A small additional amount is used by the file system and, on phones, by the operating system.
| Advertised | Bytes | Shown in binary units | Apparent loss |
|---|---|---|---|
| 128 GB | 128,000,000,000 bytes | 119.21 GiB | −6.9% |
| 256 GB | 256,000,000,000 bytes | 238.42 GiB | −6.9% |
| 500 GB | 500,000,000,000 bytes | 465.66 GiB | −6.9% |
| 512 GB | 512,000,000,000 bytes | 476.84 GiB | −6.9% |
| 1 TB | 1,000,000,000,000 bytes | 931.32 GiB | −9.1% |
| 2 TB | 2,000,000,000,000 bytes | 1.819 TiB | −9.1% |
| 4 TB | 4,000,000,000,000 bytes | 3.638 TiB | −9.1% |
| 8 TB | 8,000,000,000,000 bytes | 7.276 TiB | −9.1% |
| 16 TB | 16,000,000,000,000 bytes | 14.552 TiB | −9.1% |
| 20 TB | 20,000,000,000,000 bytes | 18.19 TiB | −9.1% |
Bits vs bytes: internet speeds
Network speeds are quoted in bits per second (Mbps, Gbps) with decimal prefixes, while file sizes are shown in bytes. Divide Mbps by 8 to get MB/s. Real downloads usually run 5–15% slower because of protocol overhead and Wi-Fi conditions.
| Connection | Max download | 1 GB file | 50 GB game |
|---|---|---|---|
| 10 Mbps | 1.25 MB/s | 13.3 min | 11.1 h |
| 25 Mbps | 3.125 MB/s | 5.3 min | 4.4 h |
| 50 Mbps | 6.25 MB/s | 2.7 min | 2.2 h |
| 100 Mbps | 12.5 MB/s | 1.3 min | 1.1 h |
| 300 Mbps | 37.5 MB/s | 26.7 s | 22.2 min |
| 500 Mbps | 62.5 MB/s | 16 s | 13.3 min |
| 1,000 Mbps (1 Gbps) | 125 MB/s | 8 s | 6.7 min |
| 2,500 Mbps | 312.5 MB/s | 3.2 s | 2.7 min |
Practical tips
- RAM is always binary. A “16 GB” memory module holds 16 GiB = 17,179,869,184 bytes.
- Cloud and data plans are usually decimal. A 100 GB plan is 100 × 109 bytes.
- Watch the case of the b. Lowercase b means bits (Mb, Gb); uppercase B means bytes (MB, GB). 1 Gb is only 125 MB.
- Photos and video: a 12-megapixel JPEG is about 3–5 MB, and one hour of 1080p streaming uses roughly 3 GB.
Related converters
Frequently Asked Questions
Is 1 GB 1,000 MB or 1,024 MB?
Both conventions exist. In SI (decimal) units 1 GB = 1,000 MB, used by drive makers and macOS. In binary units 1 GiB = 1,024 MiB, which Windows and RAM use, often still labeled GB.
Why does my 1 TB drive show only 931 GB?
The drive holds 1,000,000,000,000 bytes. Windows divides by 1,024³ instead of 1,000³, giving 931.32 GiB, but labels it GB. No space is missing.
How many bits are in a byte?
A byte has 8 bits. So 100 megabits per second (Mbps) equals 12.5 megabytes per second (MB/s).
What is the difference between MB and MiB?
A megabyte (MB) is 1,000,000 bytes; a mebibyte (MiB) is 1,048,576 bytes (1,024²), about 4.9% larger.
How many GB are in a TB?
In decimal units 1 TB = 1,000 GB. In binary units 1 TiB = 1,024 GiB.