SavingBits

Data units, from bit to petabyte

The whole system rests on two facts: a byte is 8 bits, and every prefix has a decimal meaning (powers of 1,000) and a binary one (powers of 1,024).

A staircase of units: bit, byte, kilobyte, megabyte, gigabyte, terabyte, petabyte, each step a thousand times the last after the byte bit 0 or 1 byte 8 bits a letter ×8 KB 1,000 B a short email ×1000 MB 1,000 KB a photo or a song ×1000 GB 1,000 MB an hour of HD video ×1000 TB 1,000 GB a laptop drive ×1000 PB 1,000 TB a data-centre rack ×1000

Bits and bytes

A bit is a single 0 or 1. A byte is 8 bits, enough for 256 different values. File sizes and storage are counted in bytes (capital B). Network speeds are counted in bits per second (small b): 100 Mbps is 100 million bits per second, which is 12.5 million bytes per second.

Decimal and binary prefixes

The SI prefixes are exact powers of ten: a kilobyte is 1,000 bytes and a gigabyte 1,000,000,000. In 1998 the IEC added binary prefixes for the powers of two that computers use internally: a kibibyte (KiB) is 1,024 bytes and a gibibyte (GiB) 1,073,741,824. Storage, networking, macOS and iOS use decimal; RAM and Windows use binary, though Windows writes "GB".

Decimal and binary prefixes, in bytes
DecimalBytesBinaryBytesBinary is bigger by
kilobyte (KB)1,000kibibyte (KiB)1,0242.4 %
megabyte (MB)1,000,000mebibyte (MiB)1,048,5764.9 %
gigabyte (GB)1,000,000,000gibibyte (GiB)1,073,741,8247.4 %
terabyte (TB)1,000,000,000,000tebibyte (TiB)1,099,511,627,77610 %
petabyte (PB)1,000,000,000,000,000pebibyte (PiB)1,125,899,906,842,62412.6 %

Speeds: Mbps vs MB/s

Divide a speed in Mbps by 8 for MB/s. Downloads also lose about 5 % to TCP/IP packet headers, so a 100 Mbps line peaks at about 11.9 MB/s in a download window.

What a plan speed looks like in a download window
Plan speedTop speed in MB/sAfter TCP/IP overheadIn MiB/s
10 Mbps1.25 MB/s1.19 MB/s1.19 MiB/s
25 Mbps3.12 MB/s2.97 MB/s2.98 MiB/s
50 Mbps6.25 MB/s5.93 MB/s5.96 MiB/s
100 Mbps12.5 MB/s11.9 MB/s11.9 MiB/s
300 Mbps37.5 MB/s35.6 MB/s35.8 MiB/s
500 Mbps62.5 MB/s59.3 MB/s59.6 MiB/s
1,000 Mbps125 MB/s119 MB/s119 MiB/s
2,000 Mbps250 MB/s237 MB/s238 MiB/s