Understanding Data Size Units
Digital data is measured in bits and bytes. A bit is the smallest unit of data, representing a single binary value: 0 or 1. A byte consists of 8 bits and is the fundamental addressable unit of computer memory. Every file on your computer, every packet on your network, and every cell of RAM is measured in bytes and multiples of bytes.
As storage and transmission capacities have grown, we use larger unit prefixes: kilo, mega, giga, tera, and peta. However, there is a critically important distinction between two systems of measurement that frequently causes confusion: the decimal (SI) system and the binary (IEC) system.
Decimal (SI) Units: KB, MB, GB, TB, PB
The International System of Units (SI) defines prefixes based on powers of 1000. In this system:
- 1 Kilobyte (KB) = 1,000 Bytes
- 1 Megabyte (MB) = 1,000 KB = 1,000,000 Bytes
- 1 Gigabyte (GB) = 1,000 MB = 1,000,000,000 Bytes
- 1 Terabyte (TB) = 1,000 GB = 1,000,000,000,000 Bytes
- 1 Petabyte (PB) = 1,000 TB = 1,000,000,000,000,000 Bytes
These are the units used by hard drive manufacturers, network speed specifications, and telecommunications standards. When a hard drive is labeled “1 TB,” it contains 1,000,000,000,000 bytes according to the SI definition.
Binary (IEC) Units: KiB, MiB, GiB, TiB, PiB
Computers operate in binary, and memory is addressed in powers of 2. The International Electrotechnical Commission (IEC) established binary-specific prefixes in 1998 to eliminate ambiguity:
- 1 Kibibyte (KiB) = 1,024 Bytes
- 1 Mebibyte (MiB) = 1,024 KiB = 1,048,576 Bytes
- 1 Gibibyte (GiB) = 1,024 MiB = 1,073,741,824 Bytes
- 1 Tebibyte (TiB) = 1,024 GiB = 1,099,511,627,776 Bytes
- 1 Pebibyte (PiB) = 1,024 TiB = 1,125,899,906,842,624 Bytes
These are the units used internally by operating systems (Windows, macOS, Linux), RAM manufacturers, and file system metadata. When your OS reports a file as “1 GB,” it typically means 1 GiB (1,073,741,824 bytes), even though it does not always use the “GiB” label.
Why Your “1 TB” Drive Shows Less Space
This is the most common source of confusion in data storage. You buy a 1 TB hard drive, plug it in, and your operating system shows only about 931 GB of available space. Nothing is missing — it is a difference in measurement systems.
The manufacturer uses SI units: 1 TB = 1,000,000,000,000 bytes. Your operating system uses binary units: it divides by 1,073,741,824 (1 GiB) to display the capacity. The math: 1,000,000,000,000 / 1,073,741,824 = 931.32 GiB. The drive has exactly the bytes the manufacturer promised; the units are simply different.
This discrepancy grows with larger drives. A 2 TB drive shows as ~1,862 GiB, a 4 TB drive as ~3,725 GiB, and a 16 TB drive as ~14,901 GiB. The gap between decimal and binary measurement widens at every order of magnitude.
Bits vs. Bytes in Network Speeds
Network speeds are almost always measured in bits per second, while file sizes are measured in bytes. This means a 100 Mbps (megabits per second) internet connection has a theoretical maximum throughput of 100 / 8 = 12.5 MB/s (megabytes per second). In practice, protocol overhead reduces actual throughput further.
The distinction between bits (lowercase “b”) and bytes (uppercase “B”) is critical. Writing “MB” means megabytes; writing “Mb” means megabits. Confusing the two results in an 8x error, which can lead to incorrect capacity planning and misleading performance claims.
Data Size in Cloud Computing
Cloud storage providers like AWS, Google Cloud, and Azure use decimal (SI) units for billing. When you pay for 100 GB of storage, you get 100,000,000,000 bytes. Data transfer pricing also uses SI units. This is important for cost estimation: if your application transfers 1 TiB of data per month, that is approximately 1.1 TB in the billing unit, meaning your bill may be about 10% higher than you expected if you calculated in binary.
RAM, on the other hand, is always manufactured and addressed in binary units. A “16 GB” RAM stick contains exactly 17,179,869,184 bytes (16 GiB). RAM prices, specifications, and operating system reports all use binary measurement, even when they label it “GB” rather than “GiB.”
Historical Context: How We Got Here
In the early days of computing, the terms “kilobyte” and “megabyte” were used loosely to mean 1,024 and 1,048,576 bytes respectively, because these powers of 2 were close enough to their SI counterparts (1,000 and 1,000,000). For decades, this imprecision did not matter much because storage capacities were small and the percentage difference was negligible.
As capacities grew into the gigabyte and terabyte range, the discrepancy became significant. The IEC introduced the binary prefixes (kibi, mebi, gibi, tebi, pebi) in 1998, but adoption has been slow. Linux distributions like Ubuntu adopted IEC units in 2010, and macOS switched to SI units in 2009 (displaying 1,000,000,000 bytes as “1 GB”). Windows still uses binary calculation with SI labels, showing 1,073,741,824 bytes as “1 GB.”
How This Tool Works
This data size converter runs entirely in your browser. Enter a value, select a unit, and see conversions in all other units instantly. The tool shows both decimal (SI) and binary (IEC) results side by side, making it easy to understand the difference between the two systems.
All conversions use bytes as the intermediate unit. The input value is first converted to bytes, then from bytes to each target unit. Large numbers are formatted with commas for readability. Very small results use scientific notation to remain precise.
Frequently Asked Questions
Is 1 KB equal to 1000 or 1024 bytes?
It depends on context. In the SI (decimal) system used by storage manufacturers and network standards, 1 KB = 1,000 bytes. In the binary system used by operating systems and memory, 1 KiB = 1,024 bytes. This tool shows both so you can use whichever is appropriate for your situation.
Why do hard drives show less space than advertised?
Hard drive manufacturers measure capacity in decimal (SI) units where 1 GB = 1,000,000,000 bytes. Operating systems typically display capacity in binary units where 1 GiB = 1,073,741,824 bytes. The drive contains exactly the bytes stated on the label; the numbers differ because the measurement systems differ.
What is the difference between Mb and MB?
Mb (lowercase b) stands for megabits. MB (uppercase B) stands for megabytes. Since 1 byte = 8 bits, 1 MB = 8 Mb. Internet speeds are typically measured in Mbps (megabits per second), while file sizes are measured in MB (megabytes). To convert download speed to file transfer rate, divide by 8.
How many photos can I store in 1 GB?
It depends on the photo format and resolution. A typical 12-megapixel JPEG photo is about 3-5 MB. In 1 GB (1,000 MB decimal), you can store approximately 200-333 such photos. RAW photos are much larger (20-60 MB each), so 1 GB holds roughly 16-50 RAW files.
How long does it take to transfer 1 TB over a network?
At 1 Gbps (gigabit per second): 1 TB = 8,000 gigabits, so 8,000 seconds = approximately 2.2 hours at full throughput. At 100 Mbps: about 22 hours. Real-world speeds are typically 60-80% of the theoretical maximum due to protocol overhead and congestion.