Unit converter

What to convert

1 GB = 953.67431640625 MiB1 MiB = 0.001048576 GB

Exact result

1 GB in every unit

Select a unit to convert to it
UnitSymbolValue
bit8,000,000,000
nibble2,000,000,000
B1,000,000,000
kB1,000,000
MB1,000
GB1
TB0.001
PB0.000001
EB1 × 10⁻⁹
KiB976,562.5
MiB953.67431640625
GiB≈ 0.931322574615
TiB≈ 0.000909494701773
PiB≈ 0.0000008881784197
EiB≈ 8.67361737988 × 10⁻¹⁰
kbit8,000,000
Mbit8,000
Gbit8
Tbit0.008
Kibit7,812,500
Mibit7,629.39453125
Gibit7.450580596923828125
Guide

How to convert units

  1. Choose what you're measuring: data storage, data rate, length, weight, temperature and more.
  2. Pick the units to convert from and to, then type a value into either box. Both boxes convert as you type, and ⇄ swaps the units.
  3. Check the table under the converter for the same value in every unit, and select any unit to convert to it.

Worked example

Why a 1 TB drive shows about 931 GB in Windows:

StepBytes
1 TB (decimal)1,000,000,000,000
1 GiB (binary)1,073,741,824
1 TB ÷ 1 GiB931.322574615

1 TB ≈ 931.322574615 GiB

  • A kilobyte (kB) is 1,000 bytes and a kibibyte (KiB) is 1,024. Operating systems often show binary sizes but label them KB, MB and GB.
  • Imperial and US units are defined exactly in metric: an inch is 25.4 mm and a pound is 0.45359237 kg.
  • Results that end are exact. Others are rounded to 12 significant digits and marked with ≈.

Decimal and binary data units

1 byte = 8 bits
PrefixDecimal (SI)BytesBinary (IEC)BytesDifference
kilokB1,000KiB1,024+2.4%
megaMB1,000,000MiB1,048,576+4.9%
gigaGB1,000,000,000GiB1,073,741,824+7.4%
teraTB1,000,000,000,000TiB1,099,511,627,776+10.0%
petaPB1,000,000,000,000,000PiB1,125,899,906,842,624+12.6%
Learn

How unit conversion works

Base units and factors, metric prefixes, KB versus KiB, exact imperial definitions and temperature formulas.

A unit converter turns a measurement in one unit into the same amount in another: gigabytes into mebibytes, meters into feet, Celsius into Fahrenheit. This one covers 11 categories and 116 units, converts in both directions as you type, and uses exact arithmetic, so results like 1 GB = 953.67431640625 MiB come out exactly instead of rounded. Below is how unit conversion works, why storage sizes have two sets of units, and which conversions are exact by definition.

How unit conversion works

Every category has a base unit, and every other unit is a fixed multiple of it. A kilometer is 1,000 meters and a foot is 0.3048 meters, so converting means multiplying into the base unit and dividing back out. To turn 1 km into feet, multiply by 1,000 to get 1,000 meters, then divide by 0.3048 to get about 3,280.84 feet. The converter does exactly this for every pair of units, and shows the conversion factor both ways under the result. Temperature is the one exception, because its scales also start from different zero points.

Metric prefixes

Metric units share the same prefixes, each a power of ten:

PrefixSymbolFactorAs a number
nanon10⁻⁹0.000000001
microµ10⁻⁶0.000001
millim10⁻³0.001
centic10⁻²0.01
kilok10³1,000
megaM10⁶1,000,000
gigaG10⁹1,000,000,000
teraT10¹²1,000,000,000,000

So a milligram is a thousandth of a gram, a kilometer is a thousand meters, and a gigabyte is a billion bytes.

Bits, bytes and data rates

A byte is 8 bits. Storage is measured in bytes, written with a capital B, while network speeds are measured in bits per second, written with a lowercase b. That's why a 100 Mbit/s connection downloads at most 12.5 megabytes per second, and a 1 Gbit/s link moves 125 MB/s. Use the Data rate category to compare a connection speed with a download speed, or the binary calculator to work with the bits themselves.

KB versus KiB

Computers address memory in powers of two, so 1,024 bytes (2¹⁰) became a "kilobyte" long before anyone standardized it. To end the confusion, the IEC introduced binary prefixes in 1998: kibi (KiB) for 1,024, mebi (MiB) for 1,048,576 and gibi (GiB) for 1,073,741,824, leaving kilo, mega and giga with their usual decimal meanings. Drive makers use decimal units, while Windows reports sizes in binary units but still labels them KB, MB and GB. A 1 TB drive therefore shows up as about 931 GB. macOS has used decimal units since 2009, so the same drive appears there as 1 TB. The gap is 2.4% at the kilo level and grows to 10% at tera, as the table above shows. The binary to decimal converter explains the powers of two behind these numbers.

Imperial and US units are defined in metric

Since the international yard and pound agreement of 1959, imperial and US units have exact metric definitions. The yard is exactly 0.9144 meters and the pound exactly 0.45359237 kilograms, which makes the inch exactly 25.4 mm, the foot 0.3048 m and the mile 1,609.344 m. That's why the converter can give exact answers for these units. Volumes are trickier because the US and the UK kept different gallons: a US gallon is 231 cubic inches, or 3.785411784 liters, while an imperial gallon is 4.54609 liters, about 20% more. Their fluid ounces differ as well, at about 29.57 mL in the US and 28.41 mL in the UK.

Temperature needs a formula

Temperature scales don't share a zero point, so you can't just multiply. Fahrenheit is °F = °C × 9/5 + 32, and kelvin is K = °C + 273.15. Water boils at 100 °C, or 212 °F, normal body temperature is about 37 °C, or 98.6 °F, and the scales cross at −40, where Celsius and Fahrenheit read the same. Absolute zero, the coldest possible temperature, is 0 K, which is −273.15 °C or −459.67 °F. For the same reason, 40 °C isn't twice as hot as 20 °C. The converter shows the formula for whichever two scales you choose.

Exact results and rounding

Most calculators store numbers in binary floating point, which can't represent values like 0.1 exactly and produces results such as 0.30000000000000004. This converter stores every unit as an exact fraction instead. When a result ends, like 1 GB = 953.67431640625 MiB, you see every digit. When it never ends, like 1 meter in feet, which is 1 ÷ 0.3048, it's rounded to 12 significant digits and marked with ≈.

Ways to use the converter

  • Type in either box. The converter works backwards just as well as forwards.
  • Values like 1,000,000, 1.5e9 and negative numbers are all accepted.
  • The swap button flips the two units and keeps your value, so 1 GB → MiB becomes 1 MiB → GB.
  • For number bases rather than units, use the decimal to binary converter or the hex converter.

If a number looks off, check two things: bits or bytes, and decimal or binary units. Those two mix-ups explain most surprising storage and download figures.

FAQ

Frequently asked questions

Quick answers about the unit converter and how it works.

How do I use the unit converter?

Pick a category, such as Data storage or Temperature, choose the two units, and type a value into either box. The other box updates as you type, and the table underneath shows the same value in every unit of that category.

What's the difference between KB and KiB?

A kilobyte (kB) is 1,000 bytes, using the decimal SI prefix. A kibibyte (KiB) is 1,024 bytes, or 2¹⁰, using the binary IEC prefix. The gap grows with size: a megabyte is 1,000,000 bytes but a mebibyte is 1,048,576, and a gigabyte is 1,000,000,000 bytes but a gibibyte is 1,073,741,824.

Why does a 1 TB drive show only about 931 GB?

Drive makers count in decimal: 1 TB is 1,000,000,000,000 bytes. Windows counts in binary units but labels them GB, and 1,000,000,000,000 bytes is 931.32 GiB. Nothing is missing; it's the same number of bytes in a different unit.

Is a megabit the same as a megabyte?

No. A byte is 8 bits, so a megabyte is 8 megabits. Internet speeds are quoted in bits per second, which is why a 100 Mbit/s connection downloads at most 12.5 MB per second. Use the Data rate category to convert speeds.

How do I convert Celsius to Fahrenheit?

Multiply by 9/5 and add 32: °F = °C × 9/5 + 32. So 100 °C is 212 °F and 37 °C is 98.6 °F. To go back, subtract 32 and multiply by 5/9. At −40 the two scales read the same.

How many pounds are in a kilogram?

One kilogram is about 2.20462 pounds. The pound is defined as exactly 0.45359237 kg, so 1 kg is 1 ÷ 0.45359237 = 2.20462262185 lb, rounded to 12 significant digits.

Are US and UK gallons the same?

No. A US gallon is exactly 3.785411784 liters and a UK (imperial) gallon is exactly 4.54609 liters, so the US gallon is about 17% smaller. US and UK pints and fluid ounces differ too, and the converter lists them separately.

How accurate are the conversions?

Every unit is stored as an exact fraction, so results that end, like 1 GB = 953.67431640625 MiB, are exact. Results that never end, like 1 ÷ 0.3048 for meters to feet, are rounded to 12 significant digits and marked with ≈.

Still have a question?Contact us