Data Storage Converter

Updated July 2026

Enter a value in any unit to convert across bytes, KB, MB, GB, TB and PB — and switch between decimal (1000-based) and binary (1024-based) units with one toggle. It also shows bits vs bytes. Everything runs privately in your browser.

1000 vs 1024: In decimal (SI) units each step is ×1000, so 1 KB = 1000 bytes and 1 GB = 1000 MB. In binary (IEC) units each step is ×1024, so 1 KiB = 1024 bytes and 1 GiB = 1024 MiB. Drive makers advertise in decimal; many operating systems count in binary — which is why a "1 TB" drive shows as about 931 GiB.
Pick the unit your value is in.
Decimal is used by drive makers; binary is used by many operating systems.
In bytes
Bits
Kilobytes
Megabytes
Gigabytes
Terabytes
Petabytes

Mbps vs MB/s: network speeds are quoted in megabits per second (Mbps), but downloads are measured in megabytes per second (MB/s). Since 1 byte = 8 bits, divide a Mbps figure by 8 — a 100 Mbps link is about 12.5 MB/s.

How data storage units work

Computers store information in bits — single 0s and 1s. Eight bits make one byte, the basic unit of storage. Larger amounts are grouped into kilobytes, megabytes, gigabytes, terabytes and petabytes. The catch is that there are two ways to scale up, and they give different numbers.

In the decimal (SI) system each step multiplies by 1000: 1 KB = 1000 bytes, 1 MB = 1000 KB, 1 GB = 1000 MB, and so on. In the binary (IEC) system each step multiplies by 1024, using distinct names — kibibyte (KiB), mebibyte (MiB), gibibyte (GiB), tebibyte (TiB). The IEC names exist precisely to remove the ambiguity, because KB, MB and GB have historically been used loosely for both.

Reference (in bytes): 1 KB = 1000 bytes, 1 KiB = 1024 bytes · 1 MB = 1,000,000 bytes, 1 MiB = 1,048,576 bytes · 1 GB = 1,000,000,000 bytes, 1 GiB = 1,073,741,824 bytes.

Reference note: this tool computes exactly for the selected base. Very large or fractional inputs are shown using high-precision number handling, so converting MB to GB or TB to GB stays accurate.

Frequently asked questions

How many MB are in a GB?
In decimal (SI) units there are 1000 MB in 1 GB. In binary (IEC) units there are 1024 MiB in 1 GiB. Storage marketing uses the decimal figure; operating systems often report the binary one.
What is the difference between KB and KiB (1000 vs 1024)?
A kilobyte (KB) is 1000 bytes in decimal SI units; a kibibyte (KiB) is 1024 bytes in binary IEC units. The KiB / MiB / GiB names were introduced to remove the long-standing 1000-vs-1024 ambiguity.
How many bytes are in a KB?
A decimal kilobyte (KB) is 1000 bytes, while a binary kibibyte (KiB) is 1024 bytes. Use the 1000 / 1024 base toggle to switch between the two.
What is the difference between bits and bytes?
A byte is 8 bits. Bits (lower-case b) are used for transfer rates like Mbps; bytes (upper-case B) for storage like MB. So a 100 Mbps connection is about 12.5 MB/s.
Why does my drive show less space than advertised?
Makers advertise in decimal units (1 TB = 1,000,000,000,000 bytes) but many operating systems count in binary, so the same drive reads as about 931 GiB. No space is missing — it is just two ways of counting.
What is a terabyte (TB)?
A terabyte is 1000 gigabytes, or 1,000,000,000,000 bytes, in decimal units. A tebibyte (TiB) is 1024 gibibytes, or 1,099,511,627,776 bytes.
⚡ Data Storage Converter — by larely ↗

Related tools

Weight Converter

Convert weight between kg, lb, oz, grams and stone instantly.

Length Converter

Convert length between cm, inches, meters, feet, km and miles.

Angle Converter

Convert angles between degrees, radians, gradians and turns.

Pressure Converter

Convert pressure between psi, bar, kPa, atm and mmHg.

Speed Converter

Convert speed between mph, km/h, m/s, knots, ft/s and Mach.

Time Converter

Convert time between seconds, minutes, hours, days, weeks and years.

Volume Converter

Convert volume between liters, gallons, cups, fluid ounces, mL and more.

Area Converter

Convert area between square feet, square meters, acres, hectares and more.

Energy Converter

Convert energy between joules, calories, kWh, BTU and more.

Fuel Economy Converter

Convert between MPG, L/100km and km/L fuel economy units.

Inch Fraction Converter

Convert between decimal inches, fractional inches and millimeters.

Power Converter

Convert power between watts, kilowatts, horsepower and BTU/h.

Browse all 251 free tools →