Skip to content
The Calculatorz
Computing & text

Data Storage Converter

Convert between 26 data storage units: bits, bytes, kilobytes, megabytes, gigabytes, terabytes, petabytes and binary KiB, MiB, GiB and TiB.

Data storage to convert

Conversion

How to use this calculator

Enter a data size, choose the unit you have and the unit you want. Decimal (SI) units such as MB and GB use powers of 1,000; binary (IEC) units such as MiB and GiB use powers of 1,024. Drive makers and networks use decimal units, while many operating systems report binary sizes, which explains why a "1 TB" drive shows about 931 GB.

Formula

Every unit is defined by its exact size in bits (bit). Result = value × (size of the unit you convert from ÷ size of the unit you convert to). For example, 1 GB = 0.9313225746 GiB.

Decimal and binary data units

This data storage converter includes 26 units grouped as Bits & bytes, Decimal (SI) bytes, Binary (IEC) bytes, Decimal (SI) bits and Binary (IEC) bits. It removes the confusion between MB and MiB, GB and GiB, and bits and bytes when comparing drives, memory, downloads and internet plans.

Common data storage conversions

FromTo
1 B8 bit
1 kB1,000 B
1 KiB1,024 B
1 GB1,000 MB
1 GiB1,024 MiB
1 TB931.3225746 GiB
1 GB0.9313225746 GiB
1 MB8 Mbit

All 26 data storage units in this converter

UnitSymbolValue
Bits & bytes
Bitbit1 bit = 1 bit
Nibble (4 bits)nibble1 nibble = 4 bit
Byte (8 bits)B1 B = 8 bit
Decimal (SI) bytes
KilobytekB1 kB = 8,000 bit
MegabyteMB1 MB = 8,000,000 bit
GigabyteGB1 GB = 8,000,000,000 bit
TerabyteTB1 TB = 8,000,000,000,000 bit
PetabytePB1 PB = 8 × 10¹⁵ bit
ExabyteEB1 EB = 8 × 10¹⁸ bit
ZettabyteZB1 ZB = 8 × 10²¹ bit
YottabyteYB1 YB = 8 × 10²⁴ bit
Binary (IEC) bytes
KibibyteKiB1 KiB = 8,192 bit
MebibyteMiB1 MiB = 8,388,608 bit
GibibyteGiB1 GiB = 8,589,934,592 bit
TebibyteTiB1 TiB = 8,796,093,022,208 bit
PebibytePiB1 PiB = 9.007199255 × 10¹⁵ bit
ExbibyteEiB1 EiB = 9.223372037 × 10¹⁸ bit
Decimal (SI) bits
Kilobitkbit1 kbit = 1,000 bit
MegabitMbit1 Mbit = 1,000,000 bit
GigabitGbit1 Gbit = 1,000,000,000 bit
TerabitTbit1 Tbit = 1,000,000,000,000 bit
PetabitPbit1 Pbit = 1 × 10¹⁵ bit
Binary (IEC) bits
KibibitKibit1 Kibit = 1,024 bit
MebibitMibit1 Mibit = 1,048,576 bit
GibibitGibit1 Gibit = 1,073,741,824 bit
TebibitTibit1 Tibit = 1,099,511,627,776 bit

Calculator credits

Calculator developmentJulia Edwards

Editorial supervision

Expert reviewWasiMathematics and Physics Instructor, Mechanical Engineer

Published byThe Calculatorz

Last updated

Read how we research, test, review and correct our calculators in our editorial policy.

Frequently asked questions

How many MB are in a GB?

In decimal (SI) units, 1 GB = 1,000 MB. In binary (IEC) units, 1 GiB = 1,024 MiB. Many apps write GB when they mean GiB.

Why does my 1 TB drive show 931 GB?

The drive is 1,000,000,000,000 bytes. The operating system divides by 1,024³ and shows the result as "GB", which is really 931.3225746 GiB.

What is the difference between a bit and a byte?

A bit is a single 0 or 1. A byte is 8 bits. Internet speeds are given in bits per second (Mbps), file sizes in bytes (MB), so divide Mbps by 8 to get MB per second.

What are KiB, MiB and GiB?

They are binary prefixes defined by the IEC in 1998: kibi (2¹⁰ = 1,024), mebi (2²⁰), gibi (2³⁰), tebi (2⁴⁰). They remove the ambiguity of using kilo, mega and giga for powers of two.

How many bytes are in a kilobyte?

1 kB (kilobyte) is 1,000 bytes; 1 KiB (kibibyte) is 1,024 bytes.

How many GB is a terabyte?

1 TB = 1,000 GB in decimal units; 1 TiB = 1,024 GiB in binary units.

What is a nibble?

A nibble is 4 bits, half a byte. One hexadecimal digit represents exactly one nibble.

How many megabits are in a megabyte?

One megabyte is 8 megabits. A 100 Mbps connection can move at most 12.5 MB per second, before overheads.

Which units does RAM use?

Memory is built in powers of two, so 16 GB of RAM is really 16 GiB (17,179,869,184 bytes).

How big is a petabyte?

A petabyte is 1,000 terabytes, or 10¹⁵ bytes. A pebibyte is 2⁵⁰ bytes, about 12.6% larger.

References & methodology sources

These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.

  1. National Institute of Standards and Technology. (n.d.). Prefixes for binary multiples. NIST Reference on Constants, Units, and Uncertainty. View source
  2. International Electrotechnical Commission. (2025). IEC 80000-13: Quantities and units—Part 13: Information science and technology (2nd ed.). View source
  3. Bureau International des Poids et Mesures. (2019). The International System of Units (SI) (9th ed.). View source
  4. Institute of Electrical and Electronics Engineers. (n.d.). Bit rate. View source