Skip to content
Converters

Bytes vs Bits vs KiB vs KB: The Full Explanation

Written and reviewed by Miguel Iglesias Valenzuela

Lead editor & developer

Last updated: September 11, 2026

Contact us

If you have ever purchased a hard drive advertised as 1 TB only to see 931 GB in Windows, or wondered why your 100 Mbps internet connection downloads at 12.5 MB/s, you have run into the decimal vs binary unit problem. This guide explains every digital measurement unit and why two competing standards exist.

Quick Comparison Table: Bits, Bytes, KB, KiB, MB, MiB

UnitAbbreviationBase 10 (Decimal / Storage)Base 2 (Binary / RAM)Equal in Bits
Bitb——1 bit
ByteB——8 bits
KilobyteKB10³ = 1,000 bytes—8,000 bits
KibibyteKiB—2¹⁰ = 1,024 bytes8,192 bits
MegabyteMB10⁶ = 1,000,000 bytes—8,000,000 bits
MebibyteMiB—2²⁰ = 1,048,576 bytes8,388,608 bits
GigabyteGB10⁹ = 1,000,000,000 bytes—8 × 10⁹ bits
GibibyteGiB—2³⁰ = 1,073,741,824 bytes8,589,934,592 bits

Storage vendors quote decimal units; RAM and operating systems measure in binary. To calculate your usable disk space with our Storage Calculator, open the Data Storage Converter, which shows both standards side by side.

Bit vs Byte: The Fundamental Difference

A bit (binary digit) is the smallest unit of data — it holds either a 0 or a 1. A byte is a group of 8 bits. This relationship is fixed and universal: 1 byte = 8 bits, always.

1 Byte = 8 Bits

1 Byte can represent values 0–255 (2⁸ = 256 possible values)

One ASCII character = 1 byte

The confusion arises because b (lowercase) means bits and B (uppercase) means bytes — a convention that ISPs and storage manufacturers often ignore or exploit for marketing.

The Decimal System (SI Units)

The International System of Units (SI) uses powers of 10. Hard drive manufacturers, network equipment vendors, and internet providers all use decimal units because the bigger numbers look better on packaging:

UnitFactorExact Value
KB (kilobyte)10³1,000 bytes
MB (megabyte)10⁶1,000,000 bytes
GB (gigabyte)10⁹1,000,000,000 bytes
TB (terabyte)10¹²1,000,000,000,000 bytes
PB (petabyte)10¹⁵1,000,000,000,000,000 bytes

The Binary System (IEC Units)

Operating systems, programming languages, and memory addressing work in binary (base-2). In 1998, the IEC (International Electrotechnical Commission) binary prefixes were introduced to eliminate ambiguity, using powers of 1024 (2¹⁰):

UnitFactorExact Value
KiB (kibibyte)2¹⁰1,024 bytes
MiB (mebibyte)2²⁰1,048,576 bytes
GiB (gibibyte)2³⁰1,073,741,824 bytes
TiB (tebibyte)2⁴⁰1,099,511,627,776 bytes

The Difference Between KB (Kilobyte) and KiB (Kibibyte)

A kilobyte (KB) is defined as 1,000 bytes (10³, SI decimal standard). A kibibyte (KiB) is defined as 1,024 bytes (2¹⁰, IEC binary standard). The 24-byte gap comes from computers addressing memory in powers of two: 2¹⁰ = 1,024 is the closest power of two to 1,000, so early computing conflated the two. Today the standards are distinct — the gap is 2.4% at KB/KiB, 4.9% at MB/MiB, 7.4% at GB/GiB, and 9.1% at TB/TiB. For quick conversions between the two scales, use our GB to GiB Converter and full storage unit converter.

These units are technically correct and widely used in Linux (via the --si flag in du), but Windows still labels binary values with decimal names (KB/MB/GB), which is the primary source of confusion.

Why Windows Shows 931 GB for a 1 TB Drive

A 1 TB hard drive contains 1,000,000,000,000 bytes (decimal). Windows interprets bytes using binary (powers of 1024), so it divides by 1,024 repeatedly:

1,000,000,000,000 ÷ 1,024 = 976,562,500 KiB

976,562,500 ÷ 1,024 = 953,674 MiB

953,674 ÷ 1,024 = 931.3 GiB (shown as "931 GB" in Explorer)

This 6.9% discrepancy grows with larger drives. A 4 TB drive shows 3.64 TB. The same mathematical gap appears with RAM, USB drives, and SSDs. Manufacturers are not lying — they use the SI standard — but the operating system interprets the same bytes differently.

Network Speeds: Mbps vs MB/s

Internet providers advertise speeds in Mbps (megabits per second), but file download managers show speeds in MB/s (megabytes per second). The conversion:

100 Mbps = 100 ÷ 8 = 12.5 MB/s (theoretical)

Real-world throughput is typically 5–15% lower due to TCP/IP overhead, protocol headers, and server-side throttling. A 100 Mbps connection usually delivers 10–11.5 MB/s. Use our Mbps to MB/s Converter to convert internet speeds between Mbps and MB/s, the MB/s to Mbps Converter for the reverse direction, or the Download Time Calculator to estimate how long a specific file will take.

When to Use Which Unit

  • Decimal (KB/MB/GB/TB) — storage devices, network speeds, file sizes, anything a manufacturer advertises.
  • Binary (KiB/MiB/GiB/TiB) — RAM, operating system file sizes, memory addressing, programming.
  • Bits (kbps/Mbps/Gbps) — network and telecommunication speeds only.

Interactive Conversion

Try our conversion tools to see the differences in real time:

References