Data size conversion in 3 steps
- Pick the base unitEvery size is converted through bytes (B)
- Convert to Bvalue × (bytes in that unit)
- Convert to targetbyte value ÷ (bytes in the target unit)
result = value × factor[from] ÷ factor[to]
Decimal vs binary units (byte base)
- Decimal (SI): 1 KB = 1000 B, 1 MB = 1000² B, 1 GB = 1000³ B, 1 TB = 1000⁴ B
- Binary (IEC 80000-13): 1 KiB = 1024 B, 1 MiB = 1024² B, 1 GiB = 1024³ B, 1 TiB = 1024⁴ B
KB and KiB look similar but are different units: 1 KB is 1000 bytes while 1 KiB is 1024 bytes, and the gap grows at each step. This converter lists decimal and binary units separately and labels each base (1000 B / 1024 B), so a decimal result is never silently swapped for a binary one. The classic example: drive makers use decimal GB, while operating systems show binary GiB labelled "GB", which is why capacities look different.
Worked examples
- 1 GB → 1 × 1000 = 1000 MB
- 1 GiB → 1 × 1024 = 1024 MiB
- 1 GiB → about 1.07374 GB (1024³ ÷ 1000³)
- 500 GB → about 465.66 GiB