💾 Data Storage converter

Convert between bytes, kilobytes, megabytes, gigabytes and terabytes, in decimal and binary units. Enter a value and pick its unit to see it in every other unit.

The value in every data storage unit
UnitValue
Bits (b)8,000
Bytes (B)1,000
Kilobytes (KB)1
Megabytes (MB)0.001
Gigabytes (GB)0.000001
Terabytes (TB)1 × 10⁻⁹
Petabytes (PB)1 × 10⁻¹²
Kibibytes (KiB)0.9765625
Mebibytes (MiB)0.00095367432
Gibibytes (GiB)9.3132257 × 10⁻⁷
Tebibytes (TiB)9.094947 × 10⁻¹⁰
Kilobits (kbit)8
Megabits (Mbit)0.008
Gigabits (Gbit)0.000008

Popular data storage conversions

ConversionRate
Kilobytes to megabytes1 KB = 0.001 MB
Megabytes to gigabytes1 MB = 0.001 GB
Gigabytes to megabytes1 GB = 1,000 MB
Gigabytes to terabytes1 GB = 0.001 TB
Terabytes to gigabytes1 TB = 1,000 GB
Gigabytes to bytes1 GB = 1,000,000,000 B
Gibibytes to gigabytes1 GiB = 1.0737418 GB
Megabytes to kilobytes1 MB = 1,000 KB

About data storage units

There are two systems. Storage makers use decimal units, where 1 GB is 1,000,000,000 bytes. Operating systems often count in binary units, where 1 GiB is 1,073,741,824 bytes, but Windows still labels them "GB".

This converter keeps the two apart: KB, MB, GB and TB are decimal (powers of 1,000), and KiB, MiB, GiB and TiB are binary (powers of 1,024).

Data Storage units

UnitSymbolIn bytes
Bitb0.125 B
ByteB1 B
KilobyteKB1,000 B
MegabyteMB1,000,000 B
GigabyteGB1,000,000,000 B
TerabyteTB1,000,000,000,000 B
PetabytePB1 × 10¹⁵ B
KibibyteKiB1,024 B
MebibyteMiB1,048,576 B
GibibyteGiB1,073,741,824 B
TebibyteTiB1,099,511,627,776 B
Kilobitkbit125 B
MegabitMbit125,000 B
GigabitGbit125,000,000 B

All data storage conversions

From bits

From bytes

From kilobytes

From megabytes

From gigabytes

From terabytes

From petabytes

From kibibytes

From mebibytes

From gibibytes

From tebibytes

From kilobits

From megabits

From gigabits

Data Storage unit definitions

Bit (b)
A bit is the smallest unit of digital information, a single 0 or 1. Eight bits make a byte.
Byte (B)
A byte is 8 bits, enough to store one character of plain text.
Kilobyte (KB)
A kilobyte (KB) is 1,000 bytes in the SI system that storage makers use. Older software often meant 1,024 bytes, which is now called a kibibyte (KiB).
Megabyte (MB)
A megabyte (MB) is 1,000,000 bytes. Windows shows sizes in binary units but labels them MB, so it reports 1,048,576 bytes as 1 MB.
Gigabyte (GB)
A gigabyte (GB) is 1,000,000,000 bytes. That is why a 1 TB drive shows up as about 931 GB in Windows, which counts in gibibytes.
Terabyte (TB)
A terabyte (TB) is 1,000,000,000,000 bytes, or 1,000 gigabytes. Hard drives are sold by the terabyte.
Petabyte (PB)
A petabyte (PB) is 1,000 terabytes. Data centers and research archives measure storage in petabytes.
Kibibyte (KiB)
A kibibyte (KiB) is 1,024 bytes, the binary counterpart of the kilobyte.
Mebibyte (MiB)
A mebibyte (MiB) is 1,024 kibibytes, or 1,048,576 bytes. RAM and many Linux tools report sizes in MiB.
Gibibyte (GiB)
A gibibyte (GiB) is 1,024 mebibytes, or 1,073,741,824 bytes, about 7.4% more than a gigabyte.
Tebibyte (TiB)
A tebibyte (TiB) is 1,024 gibibytes, about 1.1 terabytes.
Kilobit (kbit)
A kilobit is 1,000 bits, or 125 bytes.
Megabit (Mbit)
A megabit is 1,000,000 bits, or 125,000 bytes. Internet speeds are quoted in megabits per second.
Gigabit (Gbit)
A gigabit is 1,000,000,000 bits, or 125 megabytes.