Understanding digital data units is essential in everyday life: hard drive capacity, file size, internet connection speed, photo or video size. Confusion between KB/MB/GB/TB is common, especially since the introduction of binary units (kibibytes, mebibytes).
Data units use decimal prefix (1 KB = 1,000 bytes) or binary (1 KiB = 1,024 bytes) depending on context. Hard drive manufacturers use base 10 (a 1 TB drive = 1,000,000,000,000 bytes), while operating systems use base 2 (the same drive shows ~931 GiB). This difference explains why a 1 TB drive appears smaller once formatted.
๐ Formula
๐ Reference table
| Unit | Abbreviation | Value in bytes (decimal) | Value in bytes (binary) |
|---|---|---|---|
| kilobyte | KB | 1,000 | 1,024 (KiB) |
| megabyte | MB | 1,000,000 | 1,048,576 (MiB) |
| gigabyte | GB | 1,000,000,000 | 1,073,741,824 (GiB) |
| terabyte | TB | 1,000,000,000,000 | 1,099,511,627,776 (TiB) |
| petabyte | PB | 1,000,000,000,000,000 | ~1.13 ร 10ยนโต (PiB) |