BedrockCalculator
Figures cited to primary sourcesWritten by Aapt Dubey, MBA (Marketing & Banking), ISB 5 primary sourcesLast updated

Data Size Converter (KB, MB, GB, TB and KiB, MiB, GiB)

The Data Size Converter converts KB, MB, GB and TB, decimal or binary (KiB, MiB, GiB), and see why a 1 TB drive shows 931 GB. Also works out download time at your internet speed.

Quick Answer: A 1 TB drive holds 931.3226 GiB, which is the figure Windows shows, labelled GB. A megabyte is 1,000 kilobytes, 2,500 MB is 2.5 GB, and a 256 GB phone shows 238.4186 GiB in binary units.

Assumptions

Computed

Preset scenarios

Converted size
931.3226 GiB
Bytes
1,000,000,000,000 B
Kilobytes (decimal)
1,000,000,000 kB
Megabytes (decimal)
1,000,000 MB
Gigabytes (decimal)
1,000 GB
Terabytes (decimal)
1 TB
Kibibytes (binary)
976,562,500 KiB
Mebibytes (binary)
953,674.316406 MiB
Gibibytes (binary)
931.322575 GiB
Tebibytes (binary)
0.909495 TiB
Time to transfer at your speed
22 h 13 min 20 s
Your speed in megabytes per second
12.5 MB/s

Advertised capacity versus binary units

Download CSV
Each row is this converter run on a decimal size in gigabytes as printed on a drive or phone box (1,000 GB is 1 TB). Binary figures are rounded half up to two decimal places.
Advertised (GB)Gibibytes (GiB)Tebibytes (TiB)
1614.90.01
3229.80.03
6459.60.06
128119.210.12
256238.420.23
500465.660.45
512476.840.47
1,000931.320.91
2,0001,862.651.82
4,0003,725.293.64
8,0007,450.587.28
16,00014,901.1614.55

This table and its CSV are free to reuse with a link to this page, CC BY 4.0.

Time to download 1 GB at common speeds

Download CSV
Each row is this converter run on 1 GB (decimal) at the line rate in the first column, with no allowance for overhead. Seconds are rounded to one decimal place.
Speed (Mbps)Megabytes per second (MB/s)Time for 1 GB
50.62526 min 40 s
101.2513 min 20 s
253.1255 min 20 s
506.252 min 40 s
10012.51 min 20 s
2002540 s
30037.526.7 s
50062.516 s
1,0001258 s
2,0002504 s

This table and its CSV are free to reuse with a link to this page, CC BY 4.0.

Data Size Converter (KB, MB, GB, TB and KiB, MiB, GiB): Converted size 931.3226 GiB (Amount of data: 1; From: Terabytes (TB, 1,000 GB); To: Gibibytes (GiB, 1,024 MiB); Connection speed: 100; Speed unit: Megabits per second (Mbps)).

Save or share this result

A one-page summary of this calculator's default example, drawn from the same calculation as the result above.

The infographic is free to reuse with a link to this page, CC BY 4.0.

Illustration of slim external drives and a braided cable on a white desk beside a succulent and a mug
Quick Answer: A 1 TB drive holds 931.3226 GiB, which is the figure Windows shows, labelled GB. A megabyte is 1,000 kilobytes, 2,500 MB is 2.5 GB, and a 256 GB phone shows 238.4186 GiB in binary units.

What does this calculator do?

This data size converter changes an amount of data between bits, bytes, the decimal units (kilobytes, megabytes, gigabytes, terabytes) and the binary units (kibibytes, mebibytes, gibibytes, tebibytes). Pick the unit you have and the unit you want, and every common unit is listed under the answer, decimal and binary side by side.

There are two systems because computers count in powers of two. The SI prefixes kilo, mega and giga mean 1,000, 1,000,000 and 1,000,000,000, and that is how drive makers, phone makers and network providers use them. Memory and many operating systems count in powers of 1,024 instead. In 1998 the International Electrotechnical Commission gave those binary multiples their own names, kibi, mebi, gibi and tebi, now set out in IEC 80000-13, so that "kilobyte" could keep meaning exactly 1,000 bytes.

Who uses which? Drive and phone makers print decimal sizes: a 1 TB drive holds 1,000,000,000,000 bytes. Windows counts in binary but still labels the result GB and TB, which is why that drive shows up as roughly 931 GB. Current macOS and iOS report storage in decimal units, matching the box; Apple says the binary count was used up to OS X Leopard and iOS 10. Nothing is missing from the drive. The same bytes are being counted in two different units.

The converter also tells you how long the amount takes to move over a connection, given its speed in bits per second.

Using the Data Size Converter

  1. Type the amount of data.
  2. Choose its unit in From and the unit you want in To. Each unit in the list shows its size, so kB (1,000 B) and KiB (1,024 B) are easy to tell apart.
  3. Enter your connection speed and its unit if you want the transfer time. Internet plans are sold in megabits per second.
  4. Read the converted size at the top. The cards list bytes, the four decimal units, the four binary units, the transfer time, and your speed in megabytes per second.

The preset buttons load a megabyte in kilobytes, 2,500 MB in gigabytes, a 50 GB download on a 1000 Mbps plan, and a 256 GB phone.

How is this calculated?

  1. Choose the units. A negative amount is read as zero.
  1. Convert through the bit. Each unit is stored once as its exact size in bits. A byte is 8 bits. The decimal units are powers of 1,000 of the byte, so a gigabyte is 8 × 10⁹ bits. The binary units are powers of 1,024, so a gibibyte is 8 × 2³⁰ bits. The converter multiplies your number by the size of the unit you started in and divides by the size of the unit you want.

GiB = (TB × 10¹²)/2³⁰; MB = GB × 1000; KiB = bytes/1024

  1. Work out the transfer time. The amount is turned into bits and divided by the speed in bits per second. The result in seconds is split into days, hours, minutes and seconds, with seconds rounded to one decimal place.

seconds = (size in bits)/(speed in bits per second)

  1. Convert the speed to megabytes per second. Megabits per second divided by 8 gives megabytes per second, because a byte is 8 bits.
  1. Round for display only. The headline is shown to four decimal places and the cards to six, rounded half up with trailing zeros dropped.

Worked Example

The default, 1 TB to GiB:

  1. Bytes: 1 TB = 1,000,000,000,000 bytes.
  2. Gibibytes: 10¹² ÷ 2³⁰ = 931.3225746..., shown as 931.3226 GiB.
  3. Tebibytes: 0.909495 TiB. Mebibytes: 953,674.316406 MiB.
  4. At 100 Mbps: 8 × 10¹² bits ÷ 10⁸ bits per second = 80,000 seconds, which is 22 h 13 min 20 s. 100 Mbps is 12.5 MB/s.

How many kilobytes are in a megabyte? In decimal units, 1,000 kB. In binary units a mebibyte is 1,024 KiB; one decimal megabyte is 976.5625 KiB.

2,500 MB to GB: 2,500 ÷ 1,000 = 2.5 GB, or 2.328306 GiB.

A 50 GB game on a 1000 Mbps plan: 1000 Mbps is 125 MB/s, so the download takes at least 6 min 40 s. The game shows as 46.566129 GiB in Windows.

Advertised Size and What Your Computer Shows

Advertised Size and What Your Computer Shows
Advertised (GB)Binary (GiB)Binary (TiB)
6459.60.06
128119.210.12
256238.420.23
512476.840.47
1,000 (1 TB)931.320.91
2,000 (2 TB)1,862.651.82
4,000 (4 TB)3,725.293.64
16,000 (16 TB)14,901.1614.55

The gap grows with each prefix, because each binary step is 1,024 rather than 1,000 and the difference compounds. The table shows it directly: the binary figure falls further behind the advertised one as drives get bigger.

Download Time Calculator: 1 GB at Common Speeds

Download Time Calculator: 1 GB at Common Speeds
Speed (Mbps)MB per secondTime for 1 GB
101.2513 min 20 s
253.1255 min 20 s
506.252 min 40 s
10012.51 min 20 s
30037.526.7 s
50062.516 s
1,0001258 s

These are best cases at the full line rate. Real downloads add protocol overhead and depend on the server and the network.

How Many Kilobytes Are in a Megabyte?

In the decimal units used by drive makers and most software today, 1,000. A megabyte is 1,000 kilobytes, a gigabyte is 1,000 megabytes, and a terabyte is 1,000 gigabytes. If someone means the binary units, the answer is 1,024 kibibytes in a mebibyte.

When a figure is written as KB or MB without saying which, look at where it came from: a drive label or an internet speed is decimal; a memory chip or a file size in Windows Explorer is binary.

What Is 1000 Mbps in GB?

1000 Mbps is a speed, not a size, so it converts to a size per second, not to a number of gigabytes. 1000 megabits per second is 125 megabytes per second, which is also written 1 Gbps.

To see what that means for a real file, enter the file size and the speed: at 1000 Mbps a 50 GB download takes at least 6 min 40 s.

What does this calculator not account for?

  • Formatting and system space. A new drive or phone shows less free space than its binary capacity, because the file system and the operating system use some of it. That is separate from the unit difference.
  • Protocol overhead. TCP/IP, Wi-Fi and encryption all add bytes on the wire, so a real download is slower than the line-rate time shown.
  • Compression. A compressed file moves fewer bits than its unpacked size.
  • Petabytes and beyond. The units stop at terabytes and tebibytes.

What mistakes do people make with this?

  • Confusing bits and bytes. Speeds use a lowercase b (Mbps, megabits); sizes use an uppercase B (MB, megabytes). A byte is 8 bits, so a 100 Mbps line moves 12.5 MB each second.
  • Thinking a drive is short. A 1 TB drive showing 931 GB in Windows is not defective. Both figures describe 1,000,000,000,000 bytes.
  • Writing KiB as KB. If you mean 1,024 bytes, the IEC symbol is KiB. Writing KB for 1,024 bytes is what started the confusion.
  • Using 1,024 for network speeds. Network rates are always decimal: 1 Mbps is exactly 1,000,000 bits per second.

Frequently Asked Questions

Why does my 1 TB drive show 931 GB?

The drive holds 10¹² bytes. Windows divides by 2³⁰ and labels the result GB, giving 931.3226 GiB, which it shows as 931 GB.

How many MB are in a GB?

1,000 in decimal units. In binary units there are 1,024 MiB in a GiB.

How do I convert MB to GB?

Divide megabytes by 1,000. 2,500 MB is 2.5 GB.

How long does it take to download 1 GB at 100 Mbps?

At least 1 min 20 s. The 1 GB is 8,000 megabits, and 8,000 ÷ 100 is 80 seconds.

How many GB is a 256 GB phone really?

It holds 256,000,000,000 bytes, which is 238.4186 GiB in binary units. Some of that is taken by the system.

Does macOS use GB or GiB?

Current macOS and iOS count in decimal units, so their figures match the box. Windows counts in binary units but labels them GB.

What is a kibibyte?

A kibibyte (KiB) is 1,024 bytes. It is the binary unit the IEC defined so that kilobyte could mean exactly 1,000 bytes.

Sources

Did this calculator answer your question?

How this calculator is tested

This calculator is checked by 8 automated test cases: specific inputs whose correct result is known in advance, and rules the output must always obey. They run on every change to the site. See the testing and corrections policy.

Show the test cases
  • Default: 1 TB is 931.3226 GiB, and 22 h 13 min 20 s at 100 Mbps
  • 1 MB is 1,000 kB and 976.5625 KiB
  • 2,500 MB is 2.5 GB and 2.328306 GiB
  • a 50 GB download at 1000 Mbps takes 6 min 40 s at 125 MB/s
  • a 256 GB phone is 238.4186 GiB
  • bits and binary units round-trip exactly
  • handles a zero speed and a negative size
  • builds both reference tables from compute()

Add This Website as Preferred Source on Google

See Bedrock Calculator first in your Search results & AI Overviews