Data Storage Converter

Convert a size between bits, bytes, decimal units from kB to PB and binary units from KiB to PiB — every unit at once, with the gap between GB and GiB worked through.

Your details

The size to convert, in the unit chosen above.

Tebibytes (binary)

0.9094947 TiB

Bits
80,00,00,00,00,000 bit
Bytes
10,00,00,00,00,000 B
Kilobytes (decimal)
1,00,00,00,000 kB
Megabytes (decimal)
10,00,000 MB
Gigabytes (decimal)
1,000 GB
Terabytes (decimal)
1 TB
Petabytes (decimal)
0.001 PB
Kibibytes (binary)
97,65,62,500 KiB
Mebibytes (binary)
9,53,674.3 MiB
Gibibytes (binary)
931.3226 GiB
Pebibytes (binary)
0.0008881784 PiB

Visual breakdown

1 TB

  • Bytes1 B to 1 kB
  • Kilobytes1 kB to 1 MB
  • Megabytes1 MB to 1 GB
  • Gigabytes1 GB to 1 TB
  • Terabytes1 TB to 1 PB

  1. 1

    Convert to bytes

    B = TB × 10,00,00,00,00,000

    = 1 × 10,00,00,00,00,000

    = 10,00,00,00,00,000 B

    A terabyte (TB) is decimal: 1,000 GB, or 1,000,000,000,000 bytes.

  2. 2

    Bytes to bits

    bit = B × 8

    = 10,00,00,00,00,000 × 8

    = 80,00,00,00,00,000 bit

    A byte is 8 bits, so a bit is an eighth of a byte.

  3. 3

    Bytes to kilobytes

    kB = B ÷ 1,000

    = 10,00,00,00,00,000 ÷ 1,000

    = 1,00,00,00,000 kB

    A kilobyte (kB) is decimal: 1,000 bytes.

  4. 4

    Bytes to megabytes

    MB = B ÷ 10,00,000

    = 10,00,00,00,00,000 ÷ 10,00,000

    = 10,00,000 MB

    A megabyte (MB) is decimal: 1,000 kB, or 1,000,000 bytes.

  5. 5

    Bytes to gigabytes

    GB = B ÷ 1,00,00,00,000

    = 10,00,00,00,00,000 ÷ 1,00,00,00,000

    = 1,000 GB

    A gigabyte (GB) is decimal: 1,000 MB, or 1,000,000,000 bytes.

  6. 6

    Bytes to petabytes

    PB = B ÷ 1,00,00,00,00,00,00,000

    = 10,00,00,00,00,000 ÷ 1,00,00,00,00,00,00,000

    = 0.001 PB

    A petabyte (PB) is decimal: 1,000 TB, or 1,000,000,000,000,000 bytes.

  7. 7

    Bytes to kibibytes

    KiB = B ÷ 1,024

    = 10,00,00,00,00,000 ÷ 1,024

    = 97,65,62,500 KiB

    A kibibyte (KiB) is binary: 1,024 bytes.

  8. 8

    Bytes to mebibytes

    MiB = B ÷ 10,48,576

    = 10,00,00,00,00,000 ÷ 10,48,576

    = 9,53,674.3 MiB

    A mebibyte (MiB) is binary: 1,024 KiB, or 1,024 × 1,024 = 1,048,576 bytes.

  9. 9

    Bytes to gibibytes

    GiB = B ÷ 1,07,37,41,824

    = 10,00,00,00,00,000 ÷ 1,07,37,41,824

    = 931.3226 GiB

    A gibibyte (GiB) is binary: 1,024 MiB, or 1,024³ = 1,073,741,824 bytes.

  10. 10

    Bytes to tebibytes

    TiB = B ÷ 10,99,51,16,27,776

    = 10,00,00,00,00,000 ÷ 10,99,51,16,27,776

    = 0.9094947 TiB

    A tebibyte (TiB) is binary: 1,024 GiB, or 1,024⁴ = 1,099,511,627,776 bytes.

  11. 11

    Bytes to pebibytes

    PiB = B ÷ 1,12,58,99,90,68,42,624

    = 10,00,00,00,00,000 ÷ 1,12,58,99,90,68,42,624

    = 0.0008881784 PiB

    A pebibyte (PiB) is binary: 1,024 TiB, or 1,024⁵ = 1,125,899,906,842,624 bytes.

What this calculates

Enter a size in bits, bytes, kilobytes, megabytes, gigabytes, terabytes, petabytes, kibibytes, mebibytes, gibibytes, tebibytes or pebibytes, and this shows it in all twelve at once, with each conversion worked through. It also places the size on a scale running from a single byte to a petabyte, so a short text and a large drive can be read against each other.

Decimal units (kB to PB) and binary units (KiB to PiB) share their first letters but not their sizes, so each one is labelled decimal or binary. Every figure comes from exact definitions — nothing is converted with a rounded shortcut factor.

The formula

Every conversion goes through bytes: into bytes with one unit's size, then out again with another's.

Into bytes

bytes = size × bytes in one unit

Out of bytes

size = bytes ÷ bytes in one unit

The bit

1 byte = 8 bits

The decimal units go up in powers of 1,000.

Decimal

1 kB = 1,000 B · 1 MB = 1,000,000 B · 1 GB = 1,000,000,000 B

Decimal, larger

1 TB = 1,000,000,000,000 B · 1 PB = 1,000,000,000,000,000 B

The binary units go up in powers of 1,024.

Binary

1 KiB = 1,024 B · 1 MiB = 1,024² = 1,048,576 B · 1 GiB = 1,024³ = 1,073,741,824 B

Binary, larger

1 TiB = 1,024⁴ = 1,099,511,627,776 B · 1 PiB = 1,024⁵ = 1,125,899,906,842,624 B

Because every factor is a whole number of bytes, or an eighth of one, a conversion is exact until it is rounded for display — and the calculator rounds each result once, from the exact figure.

Worked example

Going the other way, 1 TiB is 1,099,511,627,776 B, which is 1.099512 TB: a binary unit is always the larger of its pair.

Within one family the steps are exact. 1,000 MB is exactly 1 GB, and 1,024 MiB is exactly 1 GiB.

When to use it, and the mistakes to avoid

Use it when a storage size, a file size or a transfer allowance is given in a unit you do not think in, when two figures for the same size do not match and you want to know why, and when a figure is given in bits and you want it in bytes, or the other way round.

The mistakes that cost the most:

  • Treating GB and GiB as the same. 1 TB is 1,000 GB but 931.3226 GiB, and 2 TB is 1,862.645 GiB. When the same size is shown in both, the binary figure is smaller because each binary unit holds more bytes — no space has gone anywhere. Check which unit a figure is in before comparing it with another.
  • Mixing up bits and bytes. A byte is 8 bits, so a figure in bits is eight times the same figure in bytes. A lowercase b usually means bits and an uppercase B bytes: 100 Mb (megabits) is 100,000,000 bits, which is 12.5 MB, not 100 MB.
  • Expecting the gap to stay the same size. It grows at every step, because each binary unit multiplies by 1,024 where the decimal one multiplies by 1,000. 1 KiB is 1.024 kB — 2.4% more — but 1 MiB is 1.048576 MB, 1 GiB is 1.073742 GB, 1 TiB is 1.099512 TB and 1 PiB is 1.1259 PB. So 1 TB is only 0.9094947 TiB.
  • Expecting every digit of every result. Results are shown to seven significant figures — 1 GiB shows as 1.073742 GB — while the working keeps the exact byte figure. A size far too small for a unit, such as a thousandth of a bit in terabytes, petabytes, tebibytes or pebibytes, reads as 0, and a note under the result says so rather than leaving a silent zero.
  • Entering a negative size. A size cannot be less than zero, so the calculator refuses one with a message instead of converting it.

FAQ

How do I convert GB to GiB?

Multiply by 1,000,000,000 to get bytes, then divide by 1,073,741,824, the number of bytes in a GiB. So 1 GB is 0.9313226 GiB and 500 GB is 465.6613 GiB. Choose gigabytes above and every other unit comes back at once, with the working shown.

How do I convert GiB to GB?

Multiply by 1,073,741,824 to get bytes, then divide by 1,000,000,000. So 1 GiB is 1.073742 GB, shown to seven significant figures; the working keeps the exact figure, 1,073,741,824 bytes.

Why does a 1 TB drive show as about 931 GiB?

Because the two figures use different units for the same number of bytes. 1 TB is 1,000,000,000,000 bytes; divided by 1,073,741,824 bytes to the GiB, that is 931.3226 GiB, or 0.9094947 TiB. No space is missing - the same bytes are counted in larger units.

How many MB are in a GB, and MiB in a GiB?

1,000 MB make a GB, because decimal units go up in powers of 1,000. 1,024 MiB make a GiB, because binary units go up in powers of 1,024. Mixing the two is where most differences come from: 1,000 MiB is not a GiB, and 1 GB is 953.6743 MiB.

How do I convert bits to bytes?

Divide by 8, because a byte is 8 bits. So 100,000,000 bits is 12,500,000 bytes, or 12.5 MB. Going the other way, multiply by 8: 1 TB is 8,000,000,000,000 bits.

What is the difference between kB and KiB?

A kilobyte (kB) is decimal, 1,000 bytes; a kibibyte (KiB) is binary, 1,024 bytes. So 1 KiB is 1.024 kB. The 'i' in the symbol marks the binary unit, and the same pairing runs up through MB and MiB, GB and GiB, TB and TiB, PB and PiB.

Related calculators