One conversion, all equivalents
Enter a quantity and its unit to obtain the equivalent value in bits, bytes and decimal and binary multiples. The main result uses the unit of destination you select; the tables show the rest without forcing you to repeat the calculation.
The difference between upper and lower case matters:
bitrepresents one bit.Brepresents a byte, which contains eight bits.kB,MB,GBandTBuse powers of 1,000.KiB,MiB,GiBandTiBuse powers of 1,024.
The advertised-capacity shortcuts load common comparisons:
500 GB → 465.66 GiB, 1 TB → 931.32 GiB, and 2 TB → 1.82 TiB. Both
figures in each pair describe the same bytes. The result note separates that
unit difference from additional capacity used by partitions, metadata, or
system reserves.
Verifiable examples
One decimal terabyte in gibibytes
A decimal terabyte contains one trillion bytes:
1 TB = 1,000,000,000,000 B
1 GiB = 1,073,741,824 B
1 TB = 931.322574615478515625 GiB
The tool displays the full fraction because the conversion has a
finite decimal representation. If you only need a practical figure, you can
then round it to 931.32 GiB.
One gibibyte in bytes
1 GiB = 1.024 MiB
1 GiB = 1,073,741,824 B
1 GiB = 8,589,934,592 bit
Eight bits in bytes
8 bit = 1 B
1 bit = 0.125 B
The tool allows fractional results. It does not require that an amount represent an entire file nor does it automatically round to whole bytes.
How the calculation is done
Each unit has an exact factor expressed in bits. The input amount is first converted to a fraction of bits and then divided by the factor of the destination drive:
bits = amount × bits per source unit
result = bits ÷ bits per destination unit
For example, to convert 1 GB to GiB:
1 GB = 8,000,000,000 bit
1 GiB = 8,589,934,592 bit
8,000,000,000 ÷ 8,589,934,592
= 0.931322574615478515625 GiB
Exact precision, no floating point
The converter never turns the quantity into a JavaScript floating-point number.
It parses the text as a fraction and performs the operations with BigInt
integers. This preserves quantities larger than 9,007,199,254,740,991, the
maximum safe integer for Number, and avoids exact results ending incorrectly
in …999999.
The factors used only contain powers of two and five, so supported conversions produce finite decimals. The interface shows the exact result instead of choosing a number of decimal places for you.
GB does not mean GiB
The prefixes of the International System are decimal. Therefore:
1 kB = 10³ B
1 MB = 10⁶ B
1 GB = 10⁹ B
1 TB = 10¹² B
Binary prefixes were defined to express powers of two without reuse those symbols:
1 KiB = 2¹⁰ B
1 MiB = 2²⁰ B
1 GiB = 2³⁰ B
1 TiB = 2⁴⁰ B
NIST documents that SI prefixes must not represent powers of two and
collects Ki, Mi, Gi and Ti for the binary multiples recommended by
IEC: decimal and binary prefixes of
NIST and
binary prefix table.
The guide GB and GiB: differences and how to convert them explains why two different figures can describe the same amount of bytes and how to interpret an advertised capacity.
Relationship to transfer fees
This page converts static quantities. If you want to calculate how long it takes a copy, what speed you need or how much data fits in an interval, use the bandwidth and time calculator transfer. That tool adds a rate in bits or bytes per second, a time and a chosen efficiency.
Do not confuse GB with Gbit/s: the first expresses a number of bytes and the
second a rate of bits per second. Before dividing quantity by rate,
converts both magnitudes to compatible units.
Entry and limits
- Zero and any positive quantity is allowed within the length limit.
- You can use a comma or decimal point:
1,5and1.5are equivalent. - Do not use thousands separators in the input: write
1000, not1,000. - Exponents such as
1e9, negative signs,NaNor infinity are not allowed. - The entry supports up to 64 characters, 50 significant figures and 24 decimals.
- Leading zeros are normalized in the result.
Limits protect the tab against deliberately huge amounts. They do not represent a physical limit of the units.
What does not calculate
The converter does not inspect a disk or know its file system. Neither subtracts metadata, partitions, RAID redundancy, reserved space, compression or bad blocks. A difference between nominal capacity and space available may include those factors in addition to decimal or binary notation.
The tool also does not state which drive uses a particular interface. If a
The system displays the symbol GB for a quantity calculated in powers of
1,024, the label is ambiguous; check your documentation or compare the figure
of bytes.
Frequently asked questions
How many GiB is 1 TB?
Exactly 931.322574615478515625 GiB. For a shorter display, it is usually
rounded to 931.32 GiB.
How many bytes are in 1 GB?
A decimal gigabyte has exactly 1,000,000,000 B. One gibibyte has
1,073,741,824 B.
Are KB and KiB interchangeable?
No. 1 kB = 1,000 B and 1 KiB = 1,024 B. The difference is small in one
unit, but increases when moving to megabytes, gigabytes and terabytes.
Why does the result have so many decimal places?
The converter shows the exact equivalence, so you can round it for your use case without having precision silently discarded.
Is the entered amount saved?
No. The calculation is done in this tab and disappears when you reload or close the page.