Data Size Converter (Bit, Byte, KB, MB, GB, TB)
Convert between bits, bytes, KB, MB, GB, TB and PB — switch between binary (1024-based, KiB/MiB/GiB) and decimal (1000-based, SI) modes to see exactly why your "1 TB" drive shows less.
215 views
How It Works
Enter a value, pick the unit you're converting from, pick the unit you want, and the result updates instantly. The tool covers the full ladder from a single bit up to petabytes: bit, byte, KB, MB, GB, TB, PB. The important choice is the mode switch above the fields — Binary (1024) or Decimal (1000) — because "kilobyte" has quietly meant two different things for decades, and picking the wrong one is the single most common reason a converted number looks "wrong."
In binary mode, each step is a multiplication by 1,024 (2¹⁰): 1 KiB = 1,024 bytes, 1 MiB = 1,024 KiB, 1 GiB = 1,024 MiB, and so on — this is how operating systems, RAM and most file managers actually report size, because computer memory is naturally organized in powers of two. In decimal mode, each step is a clean multiplication by 1,000: 1 kB = 1,000 bytes, 1 MB = 1,000,000 bytes, 1 GB = 1,000,000,000 bytes — the SI convention that hard drive and SSD manufacturers use on their packaging and spec sheets, because it is simpler to reason about and matches how every other metric unit scales. All the arithmetic runs as ordinary JavaScript numbers (not BigInt) — a standard double-precision float is exact for whole numbers up to 2⁵³, which comfortably covers petabyte-scale values without any precision loss.
Good to Know
This binary-vs-decimal split is not a modern quirk — it was formalized by the IEC 60027-2 standard in 1998, which introduced the prefixes kibi-, mebi-, gibi-, tebi- (and the units KiB, MiB, GiB, TiB) specifically to distinguish power-of-two values from the SI decimal kilo-, mega-, giga- prefixes that had already meant "exactly 1,000" everywhere else in science and engineering for over a century. Before that standard existed, "kilobyte" was used loosely for both meanings depending on context, which is exactly the ambiguity IEC 60027-2 was created to end — even though, in casual use, "KB/MB/GB" still gets used to mean either one today.
This is precisely why a brand-new drive labeled 1 TB shows up in your operating system as roughly 931.32 GiB (or "931 GB" in an OS that mislabels binary units with decimal names). The manufacturer sold you 1,000,000,000,000 bytes using the decimal definition — that part is accurate and matches the box. Your OS, however, reports free space in binary units: dividing that same byte count by 1,024³ instead of 1,000³ yields the smaller-looking 931.32 figure. No storage capacity actually went missing; the same physical bytes are simply being counted in two different unit systems, and the "used" space taken by the filesystem itself and pre-installed system files accounts for a small additional gap on top of that.
Frequently Asked Questions
Why does my new 1 TB hard drive show up as 931 GB in Windows or macOS?
Manufacturers advertise capacity in decimal terabytes: 1 TB = 1,000,000,000,000 bytes, exactly as sold. Your operating system, however, reports free space in binary units (dividing by 1,024 at each step instead of 1,000), so that same byte count displays as roughly 931.32 GiB — often just labeled "931 GB" by an OS that uses decimal names for binary math. No space is missing; it is the identical number of bytes measured with two different unit systems, plus a small amount genuinely used by the filesystem and pre-installed files.
What is the actual difference between a KB and a KiB?
1 KB (kilobyte, decimal/SI) = 1,000 bytes exactly. 1 KiB (kibibyte, binary) = 1,024 bytes exactly. The gap is small at the KB/KiB level (2.4%) but compounds at every step, so by the time you reach terabyte scale the difference between a decimal TB and a binary TiB is nearly 10%.
When was the KiB/MiB/GiB naming introduced, and why?
The IEC 60027-2 standard defined kibi-, mebi-, gibi- and tebi- in 1998 specifically to give binary (power-of-two) quantities their own unambiguous names, separate from the SI decimal kilo-, mega-, giga- prefixes that had already meant exactly 1,000/1,000,000/1,000,000,000 in every other scientific and engineering context for over a century.
Is 8 megabits the same as 1 megabyte?
Not quite, and this trips people up when reading internet speed ads. There are 8 bits in a byte, so 8 megabits (Mb) does equal 1 megabyte (MB) if both are measured in the same (decimal) system — but internet speeds are almost always advertised in decimal megabits per second, while file sizes are almost always shown in binary-flavored megabytes, so a "100 Mbps" connection downloads at roughly 12.5 MB/s in practice, not 100.
Which mode should I use — Binary or Decimal?
Use Binary (1024) when you're comparing against numbers your operating system, RAM specs, or a file manager reports, since those are almost always calculated in powers of two. Use Decimal (1000) when you're comparing against a storage device's advertised capacity, network/internet speed figures, or any spec sheet from a hardware manufacturer, since those follow the SI decimal convention.
Similar Tools
Report a Problem
Data Size Converter (Bit, Byte, KB, MB, GB, TB)
Comments
No comments yet — be the first to write one!