File Size Converter (KB, MB, GB, TB)
Convert between bytes, KB, MB, GB, TB, and PB using both binary (1024) and decimal (1000) conventions.
What this calculates
File sizes are confusing because there are two competing standards: 1 KB = 1,024 bytes (binary, historical) vs 1 KB = 1,000 bytes (decimal, SI standard). Storage manufacturers use decimal (which makes drives look bigger), operating systems use binary. This converter handles both so you can settle the gap between what your hard drive claims and what Windows reports.
Formula & how it works
Binary (KiB, MiB, etc.): each step ×1024. 1 KiB = 2^10 bytes; 1 MiB = 2^20; 1 GiB = 2^30; 1 TiB = 2^40. Decimal (KB, MB, etc., SI prefixes): each step ×1000. 1 KB = 10^3 bytes; 1 MB = 10^6; 1 GB = 10^9. The two start to diverge at GB scale (~7 %), grow to ~10 % at TB scale.
Worked example
A 1 TB hard drive claims 1,000,000,000,000 bytes (decimal). Windows shows 931 GB because Windows uses binary: 1,000,000,000,000 / 2^30 = 931.3 GiB. Not a defect — just two definitions. A 500 MB MP3 file in iTunes (decimal) shows as 477 MiB in Linux (binary), same exact file.
Frequently asked questions
Which definition is 'right'?
SI prefixes (KB, MB, GB) are strictly decimal per international standard. IEC introduced KiB, MiB, GiB for binary. But everyday usage muddles them — most software shows binary values with decimal labels. Both 'work' for everyday math; just be consistent within one calculation.
Why do hard drives 'lose' space?
Not lost — never advertised. Manufacturers spec in decimal (more impressive number) while OS reports in binary. A '1 TB' drive really has 1 trillion bytes (decimal); Windows interprets that as 931 GiB (binary).
Network speeds — bits or bytes?
Bits (lowercase b). 1 Mbps = 1 megabit per second = 1,000,000 bits/sec = 125,000 bytes/sec = 122 KiB/sec. ISPs advertise in megabits; OS shows download speed in MB/s (bytes). 1 Gbps ≈ 125 MB/s peak.
What's a yottabyte?
10^24 bytes. Approximate total data ever created (estimated 2024: ~150 zettabytes globally). A yottabyte is currently theoretical at storage-system scale; no single device holds one.
Related calculators
- Unit ConverterConvert between metric and imperial units for length, mass, volume, and temperature. Fast, accurate, and works with any value.
- Base ConverterConvert between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Essential for programming, networking, and computer science.