Skip to content

Data Converter: Bits, Bytes, KB, MB, GB, TB, KiB, MiB, GiB

Convert digital storage units between bits, bytes, kilobytes, megabytes, gigabytes, terabytes, petabytes and binary KiB, MiB, GiB and TiB. Explains 1,000 versus 1,024.

3 min read

Digital storage and data transfer use a family of units that looks simple but hides a common trap: some systems count in thousands and others in multiples of 1,024. Phone storage, cloud plans, file sizes, memory cards and internet speeds all depend on these units. Our data converter handles decimal and binary units side by side. This guide explains both systems, bits versus bytes and how to read storage figures correctly.

How to use the converter

Enter an amount, choose the unit you are converting from and the unit you want, and the result appears immediately. The default converts 10 gigabytes to 10,000 megabytes. Press the swap button to reverse the direction. Every conversion passes through the byte.

Units and their sizes

UnitSymbolIn bytes
Bitb0.125
ByteB1
KilobyteKB1,000
KibibyteKiB1,024
MegabyteMB1,000,000
MebibyteMiB1,048,576
GigabyteGB1,000,000,000
GibibyteGiB1,073,741,824
TerabyteTB10^12
TebibyteTiB1,099,511,627,776
PetabytePB10^15

Decimal and binary units

The decimal units (KB, MB, GB, TB, PB) follow the SI rule that each step is 1,000 times larger. Storage manufacturers, mobile networks and most modern operating systems on Apple devices use these. The binary units (KiB, MiB, GiB, TiB) step up by 1,024, which suits how computer memory is addressed. RAM is built in binary sizes, so a "16 GB" memory module actually holds 16 GiB.

The trouble is that Windows and some other software still calculate in binary but label the result with decimal names. That is why a "1 TB" drive appears as about 931 GB in Windows: 10^12 bytes divided by 1,073,741,824 is about 931. The difference is about 7% at the gigabyte level and nearly 10% at the terabyte level. Nothing is missing, as the MB to GB page explains in more detail.

How the conversion works

Multiply by the size of the starting unit in bytes, then divide by the size of the target unit. For 2.5 TB in GiB: 2.5 × 10^12 ÷ 1,073,741,824 = 2,328.3 GiB. For 700 MiB in MB: 700 × 1,048,576 ÷ 1,000,000 = 734 MB.

Bits and bytes

A byte is 8 bits. Storage is measured in bytes, with a capital B, while network speeds are measured in bits per second, with a lowercase b. A broadband plan of 100 Mbps can therefore move at most 12.5 MB per second. When estimating download times, divide the connection speed by 8 first, and allow for overheads that typically reduce real throughput by 5 to 10%. The bandwidth calculator works out download and upload times for any file size.

Shortcuts worth remembering

  • 1 GB = 1,000 MB, and 1 TB = 1,000 GB in decimal units.
  • 1 GiB = 1,024 MiB, and 1 GiB ≈ 1.074 GB.
  • Mbps to MB/s: divide by 8.
  • 1 TB drive ≈ 931 GiB as shown by Windows.

Everyday sizes

A plain text email is a few kilobytes, a smartphone photo 2 to 5 MB, a three-minute song about 3 to 5 MB as an MP3, and an hour of HD video 1 to 3 GB when streamed. A 256 GB phone can therefore hold tens of thousands of photos, but only a few dozen hours of 4K video. Cloud storage plans and mobile data allowances are sold in decimal gigabytes and terabytes.

Number systems

Binary units come from computers counting in base 2, where 1,024 is 2^10. The binary calculator, hex calculator and number base converter help when working with raw values, memory addresses or colour codes.

Why the binary names were introduced

In 1998 the International Electrotechnical Commission introduced the prefixes kibi, mebi, gibi and tebi to end the ambiguity between 1,000 and 1,024. Adoption has been gradual: Linux tools, macOS and many storage specifications now follow the standard, while some operating systems and older documentation still use the traditional names for binary values. When a precise figure matters, such as when sizing a server, a backup or a disk partition, check which system a tool uses before comparing numbers.

Frequently asked questions

Is a kilobyte 1,000 or 1,024 bytes?

Officially a kilobyte (KB) is 1,000 bytes and a kibibyte (KiB) is 1,024 bytes, though older software often used KB for 1,024.

How many MB are in a GB?

1,000 MB in decimal units; 1,024 MiB are in a GiB.

How many bits are in a byte?

Eight bits make one byte.

Why is my internet speed in Mbps but downloads in MB?

Networks are measured in bits per second and files in bytes. Divide Mbps by 8 to get MB per second.

Share

Try it yourself

Run your own numbers with our free tool: Data storage converter. No sign-up, and it works on any device.

Open the calculator