Unit Converter

Convert length, weight, temperature, volume and more. Type in either box and the other updates instantly.

Common conversions

All units

Click a unit to convert to it. Results are rounded to 7 significant digits.

How to use the unit converter

  1. Pick a kind of unit at the top: length, weight, temperature and so on.
  2. Choose the units to convert from and to. The ⇅ button swaps them.
  3. Type a number in either box. The other box, the sentence below it and the table of every unit all update as you type.

You can type whole numbers, decimals, negative numbers, thousands separators (1,500) and fractions such as 1/2 or 1 1/2, which is handy for recipes. The page address updates as you go, so you can bookmark or share a conversion.

What you can convert

  • Length: millimeters, centimeters, meters, kilometers, inches, feet, yards, miles and nautical miles.
  • Weight: milligrams, grams, kilograms, metric tons, ounces, pounds, stone, US and UK tons, and carats.
  • Temperature: Celsius, Fahrenheit and kelvin.
  • Volume: milliliters, liters, cubic meters, teaspoons, tablespoons, cups, fluid ounces, pints, quarts and gallons (US and UK), cubic inches and feet.
  • Area: square centimeters, meters and kilometers, hectares, square inches, feet, yards and miles, and acres.
  • Speed: km/h, mph, m/s, ft/s and knots.
  • Time: milliseconds to years.
  • Data: bits and bytes, decimal units (KB, MB, GB, TB) and binary units (KiB, MiB, GiB, TiB), plus megabits and gigabits for internet speeds.
  • Fuel economy: mpg (US and UK), km/L and L/100 km.
  • Pressure: psi, bar, kPa, hPa (millibar), atmospheres, mmHg, inHg and torr.
  • Energy: joules, calories, food Calories (kcal), watt-hours, kWh, BTU, therms, foot-pounds and electronvolts.
  • Cooking: cups, tablespoons and teaspoons to grams, ounces and pounds for common ingredients.

Handy conversion factors

FromToMultiply by
InchesCentimeters2.54 (exact)
FeetMeters0.3048 (exact)
MilesKilometers1.609344 (exact)
PoundsKilograms0.45359237 (exact)
OuncesGrams28.3495
US gallonsLiters3.78541
AcresSquare feet43,560 (exact)
mphkm/h1.609344
barpsi14.5038
kWhBTU3,412.14

Temperature doesn't use a single factor, because the scales start at different points: °F = °C × 9/5 + 32 and K = °C + 273.15.

Cooking conversions: cups to grams

Cups, tablespoons and teaspoons measure volume, while grams and ounces measure weight, so converting between them depends on how dense the ingredient is. A cup of flour weighs far less than a cup of honey. Pick the ingredient and the converter uses a typical weight per cup. For baking, weighing is more accurate than measuring by volume, because how you fill the cup (scooped, spooned or packed) can change the amount by 10–20%.

Frequently asked questions

How do I convert Celsius to Fahrenheit?

Multiply by 9/5 (or 1.8) and add 32. For example, 20 °C × 1.8 + 32 = 68 °F. To go back, subtract 32 and multiply by 5/9: 68 °F − 32 = 36, × 5/9 = 20 °C.

Why does my 1 TB drive show only 931 GB?

Drive makers count 1 TB as 1,000,000,000,000 bytes. Many operating systems divide by 1,024 instead of 1,000 at each step, which gives about 931 GiB, and they label it “GB.” No space is missing; it is the same number of bytes counted two ways.

Is a US gallon the same as a UK gallon?

No. A US gallon is 3.785 liters and a UK (imperial) gallon is 4.546 liters, about 20% larger. US and UK pints, quarts and fluid ounces differ too, which is why the converter lists them separately.

How many grams are in a cup?

It depends on the ingredient, because a cup measures volume and grams measure weight. A US cup of water is about 237 g, all-purpose flour about 125 g, granulated sugar about 200 g and butter about 227 g. Choose the ingredient in the Cooking converter.

How do I convert mpg to L/100 km?

Divide 235.215 by the US mpg figure (or 282.481 by UK mpg). For example, 30 mpg (US) is 235.215 ÷ 30 = 7.84 L/100 km. Because one measures distance per fuel and the other fuel per distance, a higher mpg means a lower L/100 km.