Skip to content

Data Storage Converter: Bits, Bytes, MB, GB, TB

Convert bits, bytes, MB, GB, TB and MiB, GiB, TiB exactly, in decimal or binary units.

Your details

Units with an “i” (KiB, MiB, GiB…) count in powers of 1024; that is what Windows shows under the names KB, MB, GB.

Results update as you type

Result

≈ 931.322574615 GiB

Exact value
931.322574615478515625 GiB
In bytes
1,000,000,000,000 B
In bits
8,000,000,000,000 bit

Rounded to 12 significant digits; the exact value is: 931.322574615478515625

At this size, a binary (IEC) unit is 10 % larger than the decimal (SI) unit with the same prefix —this is why a “1 TB” drive appears as about 931 GiB in an operating system that counts in powers of 1024.

Step-by-step solution
  1. 1 TB × 8,000,000,000,000 bit = 8,000,000,000,000 bit
  2. 8,000,000,000,000 bit ÷ 8,589,934,592 = 931.322574615478515625 GiB

The same quantity in every unit

How many megabytes are in a gigabyte? It depends on who is counting. Storage makers, network engineers and the International System of Units use decimal prefixes: 1 GB is exactly 1,000,000,000 bytes. Many operating systems and memory chips count in powers of two, where the proper name is the gibibyte (GiB), 1,073,741,824 bytes. Both are legitimate; mixing them up is what makes a new drive look "smaller" than advertised.

This converter handles both families plus bits, from a single bit up to petabytes and pebibytes. The arithmetic is done with exact integer maths rather than floating point, so converting 1 TB to GiB gives the true decimal expansion instead of a rounded approximation. A table shows the same quantity in all 22 units at once, which is handy when you need a value in megabits for a network link and in mebibytes for a file system.

If what you really need is how long a file takes to transfer, the download time calculator uses these same units together with connection speeds.

How to use this calculator

  1. Type the value you want to convert (whole or decimal, up to 10^15).
  2. Choose the unit you are converting from: bits or bytes, decimal (kB, MB, GB…) or binary (KiB, MiB, GiB…).
  3. Choose the unit you are converting to.
  4. Read the result. When the exact value has more than 12 significant digits, the headline is rounded and the full exact value is shown just below.
  5. Scroll the table to see the same quantity in every unit, and open the steps to follow the conversion through bits.

The formula

Each unit is a fixed number of bits. With b(u)b(u) the size of unit uu in bits:

xto=xfrom×b(from)b(to)x_{\text{to}} = x_{\text{from}} \times \frac{b(\text{from})}{b(\text{to})}

Decimal (SI) prefixes: k=103\text{k} = 10^3, M=106\text{M} = 10^6, G=109\text{G} = 10^9, T=1012\text{T} = 10^{12}, P=1015\text{P} = 10^{15}. Binary (IEC) prefixes: Ki=210=1024\text{Ki} = 2^{10} = 1024, Mi=220\text{Mi} = 2^{20}, Gi=230\text{Gi} = 2^{30}, Ti=240\text{Ti} = 2^{40}, Pi=250\text{Pi} = 2^{50}. And 1 byte=8 bits1\ \text{byte} = 8\ \text{bits}.

Because every factor is a product of powers of 2 and 5, the quotient always has a finite decimal expansion, which the calculator writes out exactly.

Worked example

Why a 1 TB drive shows as 931 GiB. The maker sells 101210^{12} bytes. An operating system that divides by 2302^{30} shows:

10121 073 741 824=931.322574615478515625\frac{10^{12}}{1\,073\,741\,824} = 931.322574615478515625

That is about 931.32 GiB, often displayed as "931 GB". Nothing is missing: the same bytes are counted with a larger unit.

Other quick checks: 1 GB = 1,000 MB, 1 GiB = 1,024 MiB, a 256 GB phone holds 238.42 GiB, a 2 TB disk is 1.819 TiB, and 500 megabits are 62.5 megabytes.

Decimal versus binary units

Decimal (SI) Bytes Binary (IEC) Bytes Gap
kB 1,000 KiB 1,024 2.4 %
MB 1,000,000 MiB 1,048,576 4.9 %
GB 10^9 GiB 1,073,741,824 7.4 %
TB 10^12 TiB 1,099,511,627,776 10 %
PB 10^15 PiB 1,125,899,906,842,624 12.6 %

The gap grows with each step, which is why the difference is barely noticeable on a USB stick but obvious on a multi-terabyte drive. The binary prefixes were standardised by the IEC in 1998 precisely to end the ambiguity; NIST and the SI keep k, M, G for powers of ten only.

Bits or bytes?

A bit (lowercase b) is a single 0 or 1; a byte (uppercase B) is 8 bits. Internet plans and network gear are rated in bits per second (Mbit/s, Gbit/s), while file sizes are in bytes. Divide a megabit figure by 8 to get megabytes: a 100 Mbit/s line moves at most 12.5 MB of data per second, before protocol overhead. Memory chips are traditionally sized in binary units, so an "8 GB" RAM module actually holds 8 GiB.

Frequently asked questions

How many MB are in a GB?

Exactly 1,000 MB in decimal units. In binary units, 1 GiB is 1,024 MiB. Windows labels binary units as "GB" and "MB", so it divides by 1,024 while most drive makers and macOS divide by 1,000.

Why does my 1 TB hard drive only show 931 GB?

The drive holds 10^12 bytes. Windows divides that by 1,073,741,824 (2^30) and shows about 931, calling the unit "GB" when it is really GiB. Formatting overhead and recovery partitions take a little more, but the bulk of the "missing" space is just the unit.

Is a kilobyte 1,000 or 1,024 bytes?

By the SI and IEC standards, a kilobyte (kB) is 1,000 bytes and a kibibyte (KiB) is 1,024 bytes. The older habit of using KB for 1,024 bytes is still common in software, so check which convention a program uses.

How do I convert megabits to megabytes?

Divide by 8, because a byte has 8 bits. 80 Mbit = 10 MB. Choose Mbit as the "from" unit and MB as the "to" unit to do it here.

Are the results exact?

Yes. The calculator works with whole-number arithmetic on bits, and because all factors are powers of 2 and 10 every result terminates. Long results are rounded to 12 significant digits for display, with the exact value shown separately.

Sources

Last updated:

More Conversion calculators

People also use