Skip to content
Utilboxes

Data Storage Converter

Type a size in any box to convert between bytes, kB, MB, GB, TB and PB, and the binary KiB, MiB, GiB and TiB your computer reports. Decimal units step by 1,000 and binary units by 1,024, which is why a 1 TB drive shows as about 931 GB in Windows: the same capacity in a different unit.

Runs entirely in your browser

Updated

How to use the Data Storage Converter

  1. 1Type a value into any box — every other unit updates as you type.
  2. 2Use the swap button to flip the two headline units.
  3. 3Copy any result with the button beside it.
  4. 4Adjust the decimal places if you need more or less precision.

How it works

There are two families of units here, and confusing them is why a 1 TB drive shows up as 931 GB. Decimal units — kB, MB, GB, TB — step in powers of 1,000 and are what storage manufacturers use. Binary units — KiB, MiB, GiB, TiB — step in powers of 1,024 and are what operating systems actually measure with.

The gap widens as the numbers grow: a kilobyte and a kibibyte differ by 2.4%, but a terabyte and a tebibyte differ by nearly 10%. Windows adds to the confusion by displaying binary quantities with decimal labels — what it calls 931 GB is really 931 GiB. Both families are listed here with their correct names so you can see exactly which is which.

Conversion works by taking your value to a single base unit and then out again, so every pair of units is consistent with every other. Values are calculated at full double precision and only rounded for display, which means round-tripping a number through two conversions returns what you started with.

The formula

1 MB = 1,000² bytes = 1,000,000 1 MiB = 1,024² bytes = 1,048,576
byte
the base unit, eight bits
kB, MB, GB, TB
decimal units, powers of 1,000
KiB, MiB, GiB, TiB
binary units, powers of 1,024

Worked example

Why a 1 TB drive shows as 931 GB

  1. The manufacturer sells 1 TB = 1,000,000,000,000 bytes.
  2. The operating system divides by 1,024 three times.
  3. 1,000,000,000,000 ÷ 1,073,741,824 = 931.32

Result: 931 GiB — the same drive, measured with a different sized unit.

Tips and common mistakes

  • Check whether a figure is decimal (GB) or binary (GiB) before comparing two numbers.
  • Divide an internet speed in Mbps by 8 to get the most it can download in MB per second.
  • Expect the free space on a new device to be lower than the box says; the system takes a share.
  • RAM is sold in binary units, so 16 GB of memory really is 16 GiB.

Frequently asked questions

Why does my 1 TB drive show only 931 GB?
The drive really does hold a trillion bytes. Your operating system divides by 1,024 rather than 1,000 at each step, giving 931 gibibytes — the same capacity, a different unit.
What is the difference between MB and MiB?
A megabyte is 1,000,000 bytes; a mebibyte is 1,048,576. The binary version is about 4.9% larger.
How many megabytes are in a gigabyte?
1,000 in decimal terms, or 1,024 mebibytes in a gibibyte. Which one is meant depends on who is doing the counting.
What is the order from MB to GB to TB to PB?
Each step is 1,000 times the one before: 1 GB = 1,000 MB, 1 TB = 1,000 GB, 1 PB = 1,000 TB. In binary units each step is 1,024 instead: 1 GiB = 1,024 MiB, 1 TiB = 1,024 GiB.
How do I convert bytes to MB?
Divide by 1,000,000 for megabytes (MB), or by 1,048,576 for mebibytes (MiB). 5,000,000 bytes is 5 MB, or about 4.77 MiB.
How accurate are these conversions?
Decimal units use powers of 1,000 and binary units powers of 1,024, exactly as the standards define them. All arithmetic is done at full precision and rounded only when displayed, so results are exact to the digits shown.
How long will a download take?
Convert the speed to megabytes per second by dividing by 8, then divide the file size by it. A 50 GB download on a 100 Mbps line takes about 67 minutes at full speed.
Why does a Mac show 1 TB when Windows shows 931 GB?
macOS counts storage in decimal units, as drive makers do. Windows counts in binary units but labels them GB. Same drive, same bytes.
Is a kilobyte 1,000 or 1,024 bytes?
Strictly, a kilobyte is 1,000 bytes and a kibibyte is 1,024. In everyday use both meanings still appear, which is why this converter lists them separately.

Guides