Unit Converter

Convert between metric and US/imperial units — kilometers to miles, kilograms to pounds, Celsius to Fahrenheit, liters to gallons and more. Type a value and see it in every unit of the category at once.

Runs entirely in your browser. Nothing you enter is uploaded or stored.

All units

How to use the unit converter

  1. Pick a category: length, weight, temperature, volume, area, speed, data size or time.
  2. Enter a value and choose the units to convert from and to. Use ⇄ to swap them.
  3. The table below shows the same value in every unit of the category, so you can compare at a glance. Click Copy next to any line.

Results are shown with up to 10 significant digits and thousands separators. Very large or very small values switch to scientific notation (e.g. 1.5e-12).

Exact conversion factors

Since 1959 the inch, foot, yard, mile, pound and ounce have been defined in metric terms, so most conversions are exact:

UnitExact value
1 inch2.54 cm
1 foot0.3048 m
1 mile1,609.344 m
1 nautical mile1,852 m
1 pound0.45359237 kg
1 ounce (avoirdupois)28.349523125 g
1 US gallon3.785411784 L (231 cubic inches)
1 UK (imperial) gallon4.54609 L
°F from °C°F = °C × 9/5 + 32

US and UK volume units differ: a US gallon is about 17% smaller than an imperial one, and a US pint is 16 US fluid ounces versus 20 imperial ounces in a UK pint. Cooking measures here (cup, tablespoon, teaspoon) are US customary units: 1 cup = 8 fl oz ≈ 236.6 mL. Nutrition labels in the US round a cup to 240 mL, and the metric cup used in Australia and elsewhere is 250 mL.

Data sizes: KB vs KiB

Storage manufacturers use decimal units (1 GB = 1,000,000,000 bytes), while Windows and many programs count in binary units (1 GiB = 1,073,741,824 bytes) but label them “GB”. That's why a 1 TB drive shows up as about 931 GB in Windows. The data category lists both kinds, labeled by their exact size, so you can see the difference. A bit is ⅛ of a byte; internet speeds are quoted in bits per second (Mbps), file sizes in bytes.

Frequently asked questions

How many kilometers are in a mile?

Exactly 1.609344 km. To convert km to miles, divide by 1.609344 (or multiply by about 0.6214).

How do I convert Celsius to Fahrenheit?

Multiply by 9/5 and add 32. 20 °C × 1.8 + 32 = 68 °F. To go back, subtract 32 and multiply by 5/9. −40 is the same in both scales.

How many pounds is a kilogram?

1 kg ≈ 2.20462 lb. One pound is exactly 0.45359237 kg.

Why does my 1 TB drive show less space?

The drive has 1,000,000,000,000 bytes, but your computer divides by 1024³ and reports about 931 “GB” (really GiB). No space is missing.