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 usIf 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
| Unit | Abbreviation | Base 10 (Decimal / Storage) | Base 2 (Binary / RAM) | Equal in Bits |
|---|---|---|---|---|
| Bit | b | — | — | 1 bit |
| Byte | B | — | — | 8 bits |
| Kilobyte | KB | 10³ = 1,000 bytes | — | 8,000 bits |
| Kibibyte | KiB | — | 2¹⁰ = 1,024 bytes | 8,192 bits |
| Megabyte | MB | 10⁶ = 1,000,000 bytes | — | 8,000,000 bits |
| Mebibyte | MiB | — | 2²⁰ = 1,048,576 bytes | 8,388,608 bits |
| Gigabyte | GB | 10⁹ = 1,000,000,000 bytes | — | 8 × 10⁹ bits |
| Gibibyte | GiB | — | 2³⁰ = 1,073,741,824 bytes | 8,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:
| Unit | Factor | Exact 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¹⁰):
| Unit | Factor | Exact 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:
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:
- Data Storage Converter — 12-unit converter covering both SI and IEC standards.
References
- NIST — Binary Prefixes for Units of Information (National Institute of Standards and Technology, official US government reference)
Related Tools
Comprehensive multi-unit data storage converter covering 12 standard SI decimal and IEC binary units with simultaneous real-time conversion.
Convert network bandwidth (Mbps) to operating system file download rates (MB/s).
Convert file transfer metrics into required network bandwidth.