Data Size Converter
Convert digital information storage capacities between Decimal (base-10 KB, MB, GB, TB) and Binary (base-2 KiB, MiB, GiB, TiB) systems.
Your storage drive is advertised as 1 TB (Decimal: 1012 bytes), but standard OS filesystems like Windows will report it as only 0.91 TiB (Binary: 240 bytes). This represents an apparent loss of about 9.1% of usable space due to unit definitions.
How is this calculated? (View worked mathematical solution)
Data size conversions normalize inputs into bits first, and then divide by the target factor:
Step 1: Convert source value to base bits:
Bits = 1 TB × 8,000,000,000,000 = 8,000,000,000,000 b
Step 2: Convert base bits to target units:
Common data size conversions
Exact values, computed with the same function as the converter above. Binary units (KiB, MiB, GiB, TiB) use powers of 1024; decimal units (KB, MB, GB, TB) use powers of 1000.
| Conversion | Exact value | In words |
|---|---|---|
| 1 KB to B | 1,000 B | 1 Kilobyte equals 1,000 Bytes |
| 1 MB to KB | 1,000 KB | 1 Megabyte equals 1,000 Kilobytes |
| 1 GB to MB | 1,000 MB | 1 Gigabyte equals 1,000 Megabytes |
| 1 TB to GB | 1,000 GB | 1 Terabyte equals 1,000 Gigabytes |
| 1 KiB to B | 1,024 B | 1 Kibibyte equals 1,024 Bytes |
| 1 MiB to KiB | 1,024 KiB | 1 Mebibyte equals 1,024 Kibibytes |
| 1 GiB to MiB | 1,024 MiB | 1 Gibibyte equals 1,024 Mebibytes |
| 1 TiB to GiB | 1,024 GiB | 1 Tebibyte equals 1,024 Gibibytes |
| 1 MiB to MB | 1.048576 MB | 1 Mebibyte equals 1.048576 Megabytes |
| 1 GiB to GB | 1.073741824 GB | 1 Gibibyte equals 1.073741824 Gigabytes |
| 1 TB to GiB | 931.322574615479 GiB | 1 Terabyte equals 931.322574615479 Gibibytes |
This is why a 1 TB drive shows as about 931 GiB in Windows: the hardware is sold in decimal terabytes but reported in binary gibibytes.
Scientific & Hardware Standards Reference
Digital information is measured in two standard systems:
- Metric (SI) Decimal: Uses base-10 powers. Defined by NIST and BIPM (e.g. 1 Megabyte = 1,000,000 Bytes).
- IEC Binary: Uses base-2 powers. Standardized by the International Electrotechnical Commission in 1998 (e.g. 1 Mebibyte = 1,048,576 Bytes) to resolve naming conflicts.
- OS Discrepancy: Windows uses binary values for calculations but labels them using metric abbreviations (KB, MB, GB, TB). macOS and Linux use true decimal values for storage representations.
About the Data Size Converter
The Data Size Converter is a precision measurement instrument designed for software engineers, systems architects, network administrators, and digital storage professionals to translate capacities across SI metric decimal units (Bytes, KB, MB, GB, TB) and IEC binary units (KiB, MiB, GiB, TiB). Because computer operating systems and hardware manufacturers utilize fundamentally different mathematical base numbering systems when accounting for data storage, precise conversion is essential for resolving capacity discrepancies between hard drive labels and operating system reports.
Mathematical Formula & Logic
Step-by-Step Example
Example 1: Why does a 1 TB external hard drive show as only 931 GB on Windows? Step 1: Convert the manufacturer's 1 Terabyte capacity to base bits using the metric SI definition (`1 TB = 10^{12} Bytes × 8 = 8,000,000,000,000 bits`). Step 2: Microsoft Windows calculates drive capacities using binary IEC Tebibytes (`1 TiB = 2^{40} Bytes × 8 = 8,796,093,022,208 bits`) but displays the label as 'TB' or 'GB'. Step 3: Divide base bits by the binary Tebibyte factor (`8,000,000,000,000 / 8,796,093,022,208 = 0.93132257... TiB`), which equals exactly 931.32 GiB (displayed as 931 GB in Windows). Example 2: Converting 5 Gigabytes (GB) to Mebibytes (MiB). Step 1: Convert 5 GB to base bits (`5 × 8,000,000,000 = 40,000,000,000 bits`, or `5,000,000,000 Bytes`). Step 2: Divide base bits by the exact Mebibyte bit factor (`8,388,608 bits per MiB`): `40,000,000,000 / 8,388,608 = exactly 4,768.37158203125 MiB`.
Reference Data & Values
| rule name | formula | applicability |
|---|---|---|
| Bit (b) | 1 bit = 0 or 1 binary choice | The most fundamental unit of digital data in computing and communications, representing a single logical state. |
| Byte (B) | 1 Byte = exactly 8 bits | A contiguous sequence of 8 bits, established as the standard unit for encoding a single alphanumeric character in computer memory. |
| SI Decimal Prefixes (KB, MB, GB, TB) | Powers of 10 (10³, 10⁶, 10⁹, 10¹² Bytes) | Standardized metric prefixes universally used by storage device manufacturers (hard drives, SSDs, USB drives) and network communications. |
| IEC Binary Prefixes (KiB, MiB, GiB, TiB) | Powers of 2 (2¹⁰, 2²⁰, 2³⁰, 2⁴⁰ Bytes) | Standardized prefixes published by the International Electrotechnical Commission in 1998, specifically designed for computer RAM and operating system file accounting. |