Skip to content
Dilawar Hussain

Data storage converter

Convert bits, bytes, decimal kilobytes and gigabytes, and binary kibibytes and gibibytes.

Browser compute / no account / no upload

Convert a data value between 10 units. Every result is computed through the byte, so the order of conversions does not change the answer.

Method

  • The byte is the base unit, and the bit is exactly 1/8 byte.
  • Decimal prefixes use powers of 1000; binary prefixes use powers of 1024.
  • The converter reports both families in the full-unit table.
Data units are ambiguous because two prefix systems share the same letters. A storage manufacturer sells a decimal terabyte of 10^12 bytes, while an operating system may report the same capacity in binary tebibytes. This converter shows both families and makes the difference explicit.

What the units measure

A bit is one binary digit, and a byte is eight bits. Decimal prefixes use powers of 1000: 1 kB = 1000 B, 1 MB = 10^6 B, and 1 GB = 10^9 B. Binary prefixes use powers of 1024: 1 KiB = 1024 B, 1 MiB = 1024² B, and 1 GiB = 1024³ B.

How the conversion works

Each data unit is stored as a factor relative to the byte. The conversion multiplies by the source factor and divides by the target factor. Keep bits and bytes separate: network speeds are usually quoted in bits per second, while file sizes use bytes.
Unit definitions, expressed in bytes.
UnitSymbolRelationship to B
Bitbit1 bit = 0.125 B
ByteB1 B = 1 B
KilobytekB1 kB = 1000 B
MegabyteMB1 MB = 1000000 B
GigabyteGB1 GB = 1000000000 B
TerabyteTB1 TB = 1000000000000 B
KibibyteKiB1 KiB = 1024 B
MebibyteMiB1 MiB = 1048576 B
GibibyteGiB1 GiB = 1073741824 B
TebibyteTiB1 TiB = 1099511627780 B

Worked example

Example 1

Gibibytes to gigabytes

Problem

A file is 1.00 GiB. How many decimal gigabytes is that?

Solution

  1. One gibibyte is 1024³ bytes, or 1,073,741,824 B.

  2. One gigabyte is 10^9 bytes.

  3. Divide: .

Answer

1.073741824 GB

Source: IEC binary prefix and SI decimal prefix definitions.

Common mistakes

  • Using GB and GiB as synonyms. The difference is about 7.4 percent for gigabytes and grows with each larger prefix.
  • Confusing bits and bytes. A 100 Mbit/s connection is 12.5 MB/s at best before protocol overhead.
  • Assuming an operating system reports decimal units. Many report binary units but label them with decimal letters.
  • Mixing 1000 and 1024 within one calculation.

Precision and significant figures

Decimal and binary prefixes are exact powers of 10 and 2, so the conversion factors carry no uncertainty. Reported drive capacities and file sizes are rounded, and filesystem overhead reduces the usable space below the raw capacity.

Key takeaways

  • Every data value is converted through the byte.
  • The result table shows the same quantity in all supported units, so you can check the conversion against a familiar value.
  • Exact definitions carry no uncertainty; the measured input determines how many digits are meaningful.