Home › Calculators & Converters › Unit Converter

Unit Converter

Length, weight, temperature, volume, area, speed, time and data sizes. Conversions use exact definitions, not rounded factors.

Numbers can use a decimal point, a comma as a thousands separator (1,000), or scientific notation (2.5e-4).

Enter a value.
Precision-

All units in this category

UnitValue

Definitions

Each conversion uses the exact definition below. Where a unit is defined by a rule rather than a fixed factor, that rule is given.

UnitDefinition
Results are exact when the answer has a finite number of digits. Otherwise they are rounded to 15 significant digits, and the page says so. Everything runs in your browser; no numbers are sent or stored.

How to use

  1. Choose a Category: length, weight (mass), temperature, volume, area, speed, time or data size. The From and To lists change to match.
  2. Type a Value. You can use a decimal point, a comma as a thousands separator (1,000) or scientific notation (2.5e-4). Negative numbers work for temperature.
  3. Pick the From and To units. The result appears at once. Press Swap units to reverse the direction.
  4. Check the Precision tile, which says whether the answer is exact or has been rounded.
  5. Look at the table of all units in the category to see your value in every unit at once, and at the definitions table to see the exact rule behind each one.

Worked examples

ConversionResult
26.2 miles to kilometres42.1648128 km (exact)
150 pounds to kilograms68.0388555 kg (exact)
11 stone to pounds154 lb
98.6 °F to °C37 °C
100 °C to °F212 °F
1 US gallon to litres3.785411784 L (exact)
70 mph to km/h112.65408 km/h (exact)
1 acre to hectares0.40468564224 ha (exact)
500 GB to GiBabout 465.661287307739 GiB (rounded)

Take the first one by hand. A mile is defined as 1,609.344 metres, so 26.2 × 1,609.344 = 42,164.8128 m, which is 42.1648128 km. The tool gets the same digits because it multiplies exact fractions.

How it works

Every value is held as an exact fraction of two whole numbers, and every unit has an exact definition relative to a base unit for its category: metre, kilogram, kelvin, litre, square metre, metre per second, second or byte. A conversion multiplies by the first unit's factor and divides by the second's. Nothing is rounded along the way.

result = value x (factor of From unit) / (factor of To unit)

Celsius to Kelvin:     K = C + 273.15
Fahrenheit to Kelvin:  K = (F + 459.67) x 5/9

Temperatures are not simple multiples, because the scales start at different zeros, so they use offset rules rather than one factor. That is how 100 °C is exactly 212 °F, and why -40 °C and -40 °F are the same temperature.

Results are exact whenever the answer has a finite number of digits. A value like 1 ÷ 3 never ends, so the tool shows 15 significant digits and says it has rounded. The page runs in your browser and sends nothing.

Decimal and binary data sizes

Data units cause more confusion than any other. A kilobyte, megabyte or gigabyte uses the decimal SI prefixes: 1 GB is 109 bytes. A kibibyte, mebibyte or gibibyte is binary: 1 GiB is 230 bytes, or 1,073,741,824 bytes. Drive makers use decimal units, while some operating systems show binary sizes under the older decimal-looking names. That is why a 500 GB drive appears as roughly 465.66 GiB. The tool keeps the two families separate, so you always see which one you chose.

Other things worth knowing

Common mistakes

Frequently asked questions

How many kilometres is a mile?

1.609344 kilometres, by definition.

Is the conversion exact?

Yes, whenever the answer has a finite decimal form. When it does not, the tool rounds to 15 significant digits and says so.

Why is 1 TB not 1 TiB?

Because TB is 1012 bytes and TiB is 240 bytes. 1 TB is about 0.909 TiB.

What is the formula for Fahrenheit to Celsius?

Subtract 32 and multiply by 5/9. The tool uses an equivalent exact rule through kelvin.

Are my numbers sent anywhere?

No. The conversion runs in your browser.

Related tools