Audited ·Last updated 28 Jul 2026·3 citations·Tier 2·0 uses

Storage Unit Converter (GB, GiB, TB, TiB, MB, MiB)

Convert bytes, bits, KB, MB, GB, TB and PB against KiB, MiB, GiB, TiB and PiB — and see why a 1 TB drive shows up as 931 GB.

Storage Unit Converter

How much storage you have. Fractions are fine — enter 0.5 for half a gibibyte. Negative amounts are rejected because a negative quantity of storage is not a thing.
From
To
Converted amount
931.3226
The amount expressed in the target unit, computed at full Decimal precision and rounded once at the end.
Bytes
1,000,000,000,000
Bits
8,000,000,000,000
Megabytes (MB, 10⁶)
1,000,000
Mebibytes (MiB, 2²⁰)
953,674.3164
Gigabytes (GB, 10⁹)
1,000
Gibibytes (GiB, 2³⁰)
931.3226
Terabytes (TB, 10¹²)
1
Tebibytes (TiB, 2⁴⁰)
0.9095
In words
1 TB is 931.322575 GiB. Both describe 1000000000000 bytes. You entered terabytes (decimal), a decimal power of ten and asked for gibibytes, a binary power of two. Because one side uses powers of ten and the other powers of two, the two numbers differ even though the amount of storage does not — that gap is the whole reason a drive never matches the number on its box.

Background.

There are two different meanings of the word gigabyte in daily use, and almost every complaint about a drive being smaller than advertised comes down to a collision between them. To a storage manufacturer a gigabyte is 10⁹ bytes, because in the International System of Units the prefix giga means a thousand million and nothing else. To an operating system a gigabyte is usually 2³⁰ bytes, because computer memory is addressed in powers of two and the industry borrowed the SI prefixes to describe them. The two differ by 7.374%, and the gap grows at every step up the ladder. This converter shows both at once so you can stop guessing which one a tool meant.

NIST puts the split plainly: manufacturers of computer memory use megabyte to mean 2²⁰ = 1,048,576 bytes, while manufacturers of computer storage devices usually use the term to mean 1,000,000 bytes. Neither is wrong; they are simply different conventions applied to different products, and the same vendor will use both in a single document. A Micron DDR4 memory module datasheet describes the part as 8GB — memory, so binary, 8 × 2³⁰ bytes — and quotes its transfer rate on the same line as 25.6 GB/s, which is decimal. That is not carelessness, it is the convention working exactly as documented.

The fix the standards bodies settled on was to give the binary powers their own names. IEC 60027-2 defines kibi (Ki, 2¹⁰), mebi (Mi, 2²⁰), gibi (Gi, 2³⁰), tebi (Ti, 2⁴⁰), pebi (Pi, 2⁵⁰) and exbi (Ei, 2⁶⁰), and NIST's reasoning for adopting them is characteristically blunt: computer professionals needed to talk to physicists, engineers and ordinary people, most of whom know that a kilometre is 1,000 metres. Linux tools, macOS since 10.6 and most storage documentation now use the IEC names correctly. Windows does not — it divides by powers of two and writes GB anyway, which is why a 1 TB drive appears there as roughly 931 GB when what it means is 931 GiB.

The second confusion this page settles is bits against bytes. A lower-case b is a bit and an upper-case B is a byte, and eight bits make one byte, so an 8 Mb file is a 1 MB file and a 100 Mb/s connection moves at most 12.5 MB/s. Network and memory-interface specifications quote bits; file sizes and disk capacities quote bytes. Both are in the dropdowns here, on the same ladder, so a figure copied from a datasheet can be compared directly with one copied from a file manager.

Everything is normalised to a byte count before being divided back out, so any of the sixteen units converts to any other without a special case, and the byte count itself is always shown. If the two numbers on your screen disagree, the byte count is the one to trust — the difference between them is a naming convention, not missing storage. What this page does not do is model filesystem overhead: formatting, reserved blocks, journals and metadata all consume real space on top of the arithmetic here, and how much depends on the filesystem rather than on the units.

What is storage unit converter?

A storage unit converter maps a quantity of digital information between the units used to describe it. Those units come in three families. Bit units count individual binary digits and use decimal SI prefixes: a kilobit is 1,000 bits, a megabit 10⁶, a gigabit 10⁹. Decimal byte units count groups of eight bits and use the same SI prefixes: a kilobyte is 10³ bytes, a megabyte 10⁶, a gigabyte 10⁹, a terabyte 10¹², a petabyte 10¹⁵. Binary byte units use the IEC prefixes standardised in IEC 60027-2 and count powers of two: a kibibyte is 2¹⁰ = 1,024 bytes, a mebibyte 2²⁰, a gibibyte 2³⁰, a tebibyte 2⁴⁰, a pebibyte 2⁵⁰. Because both families borrow the same spoken names — 'gigabyte' for both 10⁹ and 2³⁰ — the same figure can be written two ways that differ by an amount that grows with the prefix: 2.4% at the kilo tier, 4.858% at mega, 7.374% at giga, 9.951% at tera and 12.590% at peta. Converting between them is exact arithmetic on a byte count, with no approximation anywhere, which is why this page always reports the byte count alongside the answer.

How to use this calculator.

  1. Enter the amount and pick the unit it is currently written in. If you copied the figure off a drive, a network plan or an invoice it is almost certainly a decimal unit; if you copied it out of an operating system, a memory datasheet or a RAID controller it is almost certainly a binary one.
  2. Pick the unit you want it in. Any of the sixteen converts to any other, including bits to pebibytes, because everything routes through a byte count.
  3. Read the byte count as the arbiter. When two tools disagree about how big something is, converting both to bytes usually shows they agree completely and are just labelling the answer differently.
  4. Use the ladder below the main result to see the same quantity in MB, MiB, GB, GiB, TB and TiB at once. That is the fastest way to spot which convention a piece of software is using.
  5. Watch the case of the b. Mb is megabits and MB is megabytes, a factor of eight apart, and mixing them up is the single most common error when sizing a transfer against a link speed.

The formula.

result = value × bytesPer(from) ⁄ bytesPer(to)

Every conversion is two multiplications. First the input is turned into bytes by multiplying by the number of bytes in its unit; then that byte count is divided by the number of bytes in the target unit. There is no rounding in between, and no unit pair is special-cased, so bits-to-pebibytes goes through exactly the same path as megabytes-to-mebibytes.

The byte counts themselves come from two standards. The decimal prefixes are the SI prefixes defined by the BIPM: kilo is 10³, mega 10⁶, giga 10⁹, tera 10¹², peta 10¹⁵. The binary prefixes are those of IEC 60027-2, listed by NIST as kibi 2¹⁰, mebi 2²⁰, gibi 2³⁰, tebi 2⁴⁰, pebi 2⁵⁰ and exbi 2⁶⁰. Bit units use the decimal prefixes and are then divided by eight to reach bytes, so one megabit is 10⁶ ÷ 8 = 125,000 bytes.

The gap between a decimal unit and its binary neighbour is just the ratio of the two definitions, and because each binary step multiplies by 1,024 while each decimal step multiplies by 1,000, that ratio compounds. 2¹⁰ ÷ 10³ = 1.024, so a kibibyte is 2.4% larger than a kilobyte. At the mega tier it is 1.024² = 1.048576, or 4.858%. At giga, 1.024³ = 1.073741824, or 7.374%. At tera, 1.024⁴, or 9.951%. At peta, 1.024⁵, or 12.590%. The pattern is the reason the complaint gets louder as drives get bigger: nobody noticed on a 1.44 MB floppy, everybody notices on a 20 TB drive that reports 18.2.

Working an example the other way makes it concrete. A gibibyte is 2³⁰ = 1,073,741,824 bytes, so 1 GiB is 1.073741824 GB. Turn that around and 1 GB is 1 ÷ 1.073741824 = 0.9313225746 GiB. Multiply by a thousand and a 1 TB drive is 931.3225746155 GiB — which Windows will display as '931 GB'. The drive holds precisely the trillion bytes it was sold as; only the divisor changed.

One last note on precision. All the factors here are exact integers, and the arithmetic is carried at Decimal precision and rounded once at the end to ten decimal places. That is enough to keep every conversion between the units on this page exact to well beyond any practical need, but it does mean a genuinely microscopic result — one bit expressed in pebibytes, for instance — displays as zero rather than as 1.1 × 10⁻¹⁶. The byte count is always available if you need the exact figure.

A worked example.

Example

The question this page exists for: you bought a 1 TB drive and your computer says 931 GB. Start by normalising to bytes. A drive is sold in decimal terabytes — NIST notes that manufacturers of computer storage devices use the decimal convention — so 1 TB is 10¹² = 1,000,000,000,000 bytes. A gibibyte is 2³⁰ = 1,073,741,824 bytes. Divide: 1,000,000,000,000 ÷ 1,073,741,824 = 931.3225746155. So the drive holds 931.32 GiB, and Windows prints that as '931 GB' because it divides by powers of two but writes the SI symbol. Nothing has been lost, no space has been reserved, and no formatting overhead is involved yet. The same trillion bytes is 8,000,000,000,000 bits, 1,000,000 MB, 953,674.31640625 MiB, 1,000 GB, 1 TB and 0.9094947018 TiB. Notice that the answer is exact in every unit: these are integer factors, not measurements. If you want the number your filesystem will actually offer you, take 931.32 GiB and subtract whatever the filesystem reserves — but that is a separate subtraction, and it is much smaller than the 68.68 GiB people usually blame it for.

to UnitGiB
value1
from UnitTB

Frequently asked questions.

Why does my 1 TB drive show up as 931 GB?
Because the two numbers use different definitions of the prefix. The drive holds 10¹² = 1,000,000,000,000 bytes, which is what the manufacturer means by a terabyte, and NIST records that manufacturers of computer storage devices usually use the decimal convention. Windows divides that byte count by 2³⁰ = 1,073,741,824 and gets 931.32, then labels the result 'GB' even though the correct symbol for that unit is GiB. Nothing is missing and no space has been reserved. The same effect makes a 500 GB SSD show as 465.66, a 2 TB drive as 1.82 TiB and a 20 TB drive as 18.19 TiB.
What is the difference between GB and GiB?
A GB is 10⁹ = 1,000,000,000 bytes; a GiB is 2³⁰ = 1,073,741,824 bytes. The GiB is 7.374% larger. GiB and its relatives — kibi, mebi, gibi, tebi, pebi, exbi — were standardised in IEC 60027-2 precisely so that the powers of two would have unambiguous names of their own. Linux tools and macOS use them correctly; Windows still divides by powers of two while writing the SI symbols. When a figure is labelled GiB you know exactly what it means; when it is labelled GB you have to know where it came from.
Is a megabit the same as a megabyte?
No, they differ by a factor of eight. A lower-case b is a bit and an upper-case B is a byte, and there are eight bits to a byte, so 8 Mb is exactly 1 MB. This matters most when comparing a link speed with a file size: a 100 Mb/s connection carries at most 12.5 MB/s, so a 1 GB download takes at least 80 seconds even on a perfect link. Both families use decimal prefixes — a megabit is 10⁶ bits, never 2²⁰ — so there is no binary-versus-decimal ambiguity on the bit side, only the bit-versus-byte one.
Does formatting a drive lose capacity?
A little, but far less than the decimal-versus-binary gap people usually blame. A filesystem consumes space for its own structures — inode tables or a master file table, a journal, allocation bitmaps, and on some filesystems a percentage reserved for the superuser or for allocation performance. On a modern large volume this is typically a low single-digit percentage, and ext4 by default reserves 5% for the root user, which you can reduce with tune2fs if you do not need it. The 68.68 GiB apparently 'missing' from a 1 TB drive is not formatting overhead at all: it is the difference between dividing by 10¹² and dividing by 2⁴⁰.
Which convention should I use in my own documentation?
Use the IEC binary prefixes whenever you mean a power of two, and reserve the SI prefixes for powers of ten — that is what both NIST and the IEC recommend, and it is the only way to write a figure that cannot be misread. In practice: memory sizes and anything derived from an address space are binary, so write MiB and GiB. Drive capacities, network transfer rates and billed cloud storage are decimal, so write MB and GB. If you must use the ambiguous form, state the byte count once alongside it. NIST's stated motive for adopting the binary prefixes was that computer professionals needed to talk to physicists, engineers and ordinary people, most of whom know that a kilometre is 1,000 metres.
Why does the discrepancy get worse for bigger drives?
Because the two ladders diverge multiplicatively. Each binary step multiplies by 1,024 and each decimal step by 1,000, so the ratio between them is 1.024 raised to the number of steps: 2.4% at kilo, 4.858% at mega, 7.374% at giga, 9.951% at tera and 12.590% at peta. On a 1.44 MB floppy the gap was invisible. On a 1 TB drive it is 68.68 GiB, which looks like a lot of missing space. On a 20 TB drive it is 1.8 TiB. The percentage is fixed for a given tier — it is only the absolute number that grows, and it grows because the drives do.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 590 calculators remain free
  • No billing is enabled
Coming soon