Data Storage Converter

How do I convert data units?

How it is calculated

The tool converts through bytes using binary multiples: 1 byte = 8 bits, 1 KB = 1,024 B, 1 MB = 1,024 KB = 1,048,576 B, 1 GB = 1,073,741,824 B and 1 TB = 1,099,511,627,776 B. Your value is multiplied by the factor of its unit to get bytes, then divided by the factor of each target unit, giving all six units at once with two decimals, and more digits below 1.

This is the binary convention (strictly KiB, MiB, GiB) used by many operating systems for memory and file sizes. Drive makers often use decimal units, where 1 GB = 1,000,000,000 B, so a drive sold as 500 GB shows less in an operating system that counts in binary.

Worked example

Convert 2 GB. In bytes this is 2 × 1,073,741,824 = 2,147,483,648 B. Divide by 1,024 for KB: 2,097,152 KB, and again for MB: 2,048 MB. In bits it is 2,147,483,648 × 8, which the tool shows as 17,179,869,184.00 bit. In terabytes it is only 0.001953 TB.

Try this example →

Common mistakes

  • Confusing bits and bytes: internet speeds are in megabits per second, file sizes in megabytes, and a megabyte is 8 megabits.
  • Dividing by 1,000 instead of 1,024 and wondering why the tool shows other values than a manufacturer.
  • Expecting a drive sold as 1 TB to show 1 TB in the system; binary counting makes it appear smaller.

About this calculator

This converter moves a data size between bits, bytes, kilobytes, megabytes, gigabytes and terabytes, using the binary convention where 1 KB = 1024 bytes (the convention Windows uses when reporting file and disk sizes, where macOS and many Linux file managers report decimal instead) rather than the decimal 1000-byte kilobyte used in some marketing contexts. That distinction is exactly why a drive labeled "1 TB" shows up as roughly 931 GB in your file explorer — the manufacturer used decimal units, the OS displays binary ones.

It's used by anyone estimating whether a file, video or backup will fit on a given drive or upload allowance, by developers calculating memory or storage requirements, and by people comparing internet plans or cloud storage tiers quoted in different units. Converting bits to bytes specifically also matters for reading network speeds correctly, since connection speeds are quoted in bits per second while file sizes are quoted in bytes.

Was this helpful?

You can pick up to 3 reactions.

Comments (1)

  • Editorial team

    For download times, mind the mismatch: this tool counts in binary steps, but network speeds are quoted in decimal bits per second. One GB here is 8,589,934,592 bit, and at 100 Mbit/s, meaning 100,000,000 bit per second, that takes about 85.9 s with no overhead. Real transfers are slower. Are you sizing a download, a backup or a drive? Tell us what you are converting.

Popular calculators

All Calculators