How Byte Size is Calculated
Byte size conversions in computing traditionally use powers of 1024 because memory and storage are built around binary addressing.
One kilobyte equals 1024 bytes, one megabyte equals 1024 kilobytes, one gigabyte equals 1024 megabytes, and one terabyte equals 1024 gigabytes.
This binary approach is also called the IEC standard, where the units are sometimes written as KiB, MiB, GiB, and TiB to remove ambiguity.
Some contexts, such as hard drive marketing and networking speeds, use powers of 1000 instead, which is why a drive sold as 1 TB shows up as roughly 931 GB in your operating system.
This converter applies the 1024-based math so the values match what most software reports.