Decimal and binary data sizes, kept apart
There are two ways to count large amounts of data, and they share almost the same names. The decimal way uses the SI prefixes from the metric system. A kilobyte is 1,000 bytes, a megabyte 1,000,000, a gigabyte 1,000,000,000 and a terabyte 1,000,000,000,000. The binary way counts in powers of 1,024, because computer memory is built in powers of two. Its units are the kibibyte, mebibyte, gibibyte and tebibyte, written KiB, MiB, GiB and TiB, names the IEC set out in 1998.
The gap between the two grows with each step. A KiB is 2.4% bigger than a kB. A MiB is 4.9% bigger than a MB, a GiB 7.4% bigger than a GB, and a TiB 10% bigger than a TB. That is why the confusion gets worse as drives get larger.
Here is the worked example most people need. A drive sold as 1 TB holds 1,000,000,000,000 bytes. Divide by 1,024 to get 976,562,500 KiB. Divide again to get 953,674.3 MiB, and once more to get 931.3225746 GiB. Windows shows that last number and calls it 931 GB. Type 1 TB into this page and both figures appear, in their own groups, with the bytes and bits beside them.
Who uses which? Drive and memory card makers, network speeds and macOS since 2009 use decimal units. Windows File Explorer uses binary values with decimal labels. RAM is sized in binary units, even when the label says GB. Linux tools vary; many write a size such as 4.0G and mean GiB. When two figures for the same file do not match, the units are almost always the reason.
The tool has limits. It goes up to terabytes and tebibytes, with no petabyte or larger row. It has bits and bytes but no kilobit or megabit units, so a network speed needs dividing by hand. It does not work out download times. A typed "mb" is read as megabytes. Results are rounded to 10 significant digits, so a very large byte count copied from here may lose its last digits.