Data Size Converter

Convert a data size into steps of 1,000 (KB, MB, GB, TB) and steps of 1,024 (KiB, MiB, GiB, TiB) at the same time. Bits and bytes are included.

Result (— equals) —
Steps of 1,000 (KB, MB, GB, TB; 1 KB = 1,000 bytes)
Steps of 1,024 (KiB, MiB, GiB, TiB; 1 KiB = 1,024 bytes)
The value copied is the large number (without commas and units). It is rounded to 6 decimal places, and trailing zeros are not shown. A value below 0.000001 cannot be copied.

Steps of 1,000 vs. steps of 1,024

There are two families of data size units, which differ in the ratio between one unit and the next.

Family Units Ratio to the next unit Example
Steps of 1,000 (SI prefixes) KB, MB, GB, TB 1,000 1 KB = 1,000 bytes, 1 GB = 1,000 MB
Steps of 1,024 (IEC binary prefixes) KiB, MiB, GiB, TiB 1,024 1 KiB = 1,024 bytes, 1 GiB = 1,024 MiB

Other relations:

This calculator always shows the results in both families.

Examples

When you connect a 1 TB hard disk to a computer, it may show about 931 GB. The capacity has not shrunk: a 1 TB disk in steps of 1,000 is displayed in steps of 1,024.

How it is calculated

The calculation uses exact fractions with no rounding error. At the end, the values are rounded to 6 decimal places for display.

Source

The two families of prefixes follow Wikipedia, "Binary prefix": https://en.wikipedia.org/wiki/Binary_prefix (read on November 1, 2026; only the first part of that long page could be read word for word): the binary prefixes kibi, mebi and gibi mean 2^10 = 1,024, 2^20 and 2^30, and they were defined in 1999 by the International Electrotechnical Commission (IEC 60027-2) to replace the ambiguous use of kilo, mega and giga. It is an explanatory article, not a standard.

Things to know

Frequently asked questions

How many MB are in a GB?

In steps of 1,000 (SI), 1 GB is 1,000 MB. In steps of 1,024, 1 GiB is 1,024 MiB. Some computers show the 1,024-based value with the label "GB", so you may see "1 GB = 1,024 MB" written.

What is the difference between GB and GiB?

1 GB is 1,000,000,000 bytes and 1 GiB is 1,073,741,824 bytes, so a GiB is about 7.4% larger. For TB and TiB, the difference is about 10%.

Why does a 1 TB hard disk show as 931 GB?

The capacity of the product is written in steps of 1,000 (1 TB = 1,000,000,000,000 bytes). The computer displays it in steps of 1,024, which gives about 931.

What is the difference between a bit and a byte?

1 byte is 8 bits. Connection speeds are usually written in bits (Mbps), and file sizes in bytes (MB), so be careful not to mix them up.