💾 Data Sizes & Units
2 exercises — converting and expressing data sizes professionally: bytes, KB/KiB, MB/MiB, GB/GiB, TB — and the SI vs binary prefix distinction that trips up many developers.
0 / 2 completed
Quick reference — data size units
- KB = 1,000 bytes | KiB = 1,024 bytes
- MB = 1,000,000 bytes | MiB = 1,048,576 bytes
- GB = 1,000,000,000 bytes | GiB = 1,073,741,824 bytes
- TB = 10¹² bytes | TiB = 2⁴⁰ bytes
- Rule of thumb: 1 GiB ≈ 1.074 GB — a difference of ~7%
1 / 2
A client asks how big the new database backup will be. The backup is 1,572,864 KB. Which professional answer is most appropriate?
Option C is the most professional because it converts to the most natural unit for this size (gigabytes), shows the intermediate step in megabytes for clarity, and uses an exact conversion rather than rounding too aggressively. 1,572,864 KB ÷ 1,024 = 1,536 MB. 1,536 MB ÷ 1,024 = 1.5 GB exactly. Option B is acceptable in casual conversation but skips the intermediate unit. Option A leaves a technical client doing the mental conversion — unhelpful. Option D uses "approximately 1,500,000" when we can give the exact figure. General rule: always convert data sizes to the most human-readable unit. For storage discussions, use GB or TB. For memory, MB or GB. For file sizes, KB, MB, or GB depending on magnitude.