Free converters tool

Convert length, weight and temperature with exact defined factors

A quick converter for everyday measurements: eight length units, six weight units and three temperature scales. The arithmetic runs in your browser as you type, with no page reload.

Exact factors (1 in = 25.4 mm)Metric and US customary unitsKelvin, Celsius and Fahrenheit
Unit Converter

Choose a unit group, type a value and pick the units. The result updates as you type.

Runs on your device
0.001
1 Meter in Kilometer

What the Unit Converter does

The Unit Converter has three groups selected by buttons at the top. Length covers meter, kilometer, centimeter, millimeter, mile, yard, foot and inch. Weight covers kilogram, gram, milligram, pound, ounce and tonne. Temperature covers Celsius, Fahrenheit and Kelvin. Type a value, choose the From and To units, and the result appears beside them.

Length and weight use exact defined factors rather than rounded approximations: the inch is 25.4 mm, the yard 0.9144 m, the mile 1609.344 m, the pound 0.45359237 kg and the ounce one sixteenth of that, 28.349523125 g. These are the international definitions in force since 1959 and listed by NIST, so a result is only as approximate as its display precision.

Temperature is handled separately because it is not a simple ratio. Every input is first converted to Celsius, then to the target scale, using F = C times 9/5 plus 32 and K = C plus 273.15. Temperature results are shown to at most eight decimal places; length and weight results to ten significant figures.

How to use it

Choose the group

Press Length, Weight or Temperature. Switching groups resets the units to the first two in that list, for example Kilogram to Gram.

Set the From and To units

Pick the unit you have and the unit you want from the two lists. There is no swap button here, so change both lists to reverse a conversion.

Type the value

Enter a number such as 5, 2.5 or 1e3. The result updates as you type; a value the browser cannot read as a number shows a dash instead.

The units and factors behind each group

Every length factor is expressed in meters and every weight factor in kilograms, so a conversion is value times factor(from) divided by factor(to). The factors are:

The pound and ounce are the avoirdupois units used for groceries and body weight, not troy ounces for precious metals. The tonne is the metric tonne of 1000 kg, not the US short ton (907.18474 kg) or the UK long ton (1016.0469088 kg). The mile is the statute mile, not the nautical mile; for that, use the knot in the Speed Converter or convert by hand with 1852 m.

  • Length: kilometer 1000 m, centimeter 0.01 m, millimeter 0.001 m, mile 1609.344 m, yard 0.9144 m, foot 0.3048 m, inch 0.0254 m
  • Weight: gram 0.001 kg, milligram 0.000001 kg, pound 0.45359237 kg, ounce 0.028349523125 kg, tonne 1000 kg
  • Temperature: Celsius to Fahrenheit multiply by 9/5 and add 32; Celsius to Kelvin add 273.15

How results are rounded

Length and weight results are trimmed to ten significant figures and trailing zeros are dropped, so 1 mile shows as 160934.4 centimeters and 1 pound as 0.45359237 kilograms. Very large or very small results switch to exponential notation, for example 1 milligram is 1e-9 tonne.

Temperature results are rounded to eight decimal places, which hides floating-point noise such as 37.00000000000001 and shows 37 for 98.6 Fahrenheit. The converter does not check for physically impossible inputs: -500 Celsius returns -226.85 Kelvin, below absolute zero, without comment.

Mass or weight?

The tool labels the second group Weight because that is what people search for, but the units are units of mass. A kilogram of flour has the same mass on the Moon; its weight, the force gravity exerts on it, does not. For cooking, shipping and body measurements the distinction never matters, and the pound is treated as the mass unit defined as exactly 0.45359237 kg.

Limits to know before you rely on it

  • Three groups only: there is no area, volume, speed, pressure, energy or time here. Area, Volume and Speed have their own converters on this site.
  • No stone, nautical mile, US survey foot, troy ounce, carat, short ton or long ton; only the units listed above are available.
  • No swap button; reverse a conversion by changing both unit lists.
  • Temperature input is not checked against absolute zero, so values below 0 K are returned without warning.
  • Input must use a dot as the decimal separator and no thousands separators; 1,000 is read as not a number and shows a dash.

Questions people ask about the Unit Converter

How do I convert Fahrenheit to Celsius?

Press Temperature, set From to Fahrenheit and To to Celsius, and type the value. The tool subtracts 32 and multiplies by 5/9, so 98.6 Fahrenheit shows 37 Celsius, 32 shows 0, and -40 is the same on both scales.

Is the pound here the same as a pound in the UK?

Yes. Since the 1959 international agreement the avoirdupois pound is defined as exactly 0.45359237 kg in the US, the UK and other countries, so 1 pound converts the same way everywhere.

Why does my result show something like 1e-9?

Results are limited to ten significant figures and JavaScript prints very small or very large numbers in exponential form. 1e-9 means 0.000000001; move the decimal point nine places to the left.

Can I convert kilometers to miles in one step?

Yes. In Length, choose Kilometer as From and Mile as To. 1 km gives 0.6213711922 miles, which is 1000 divided by 1609.344 to ten significant figures; 1 kg gives 2.204622622 pounds in the Weight group.

Does the converter work offline?

Once the page has loaded, yes. The conversion is a multiplication and a division in your browser with no network request, and nothing you type is stored or sent.

What happens if I type a negative length?

The tool multiplies it like any other number and returns a negative result. It does not validate that lengths and masses must be positive, so check the sign yourself if it matters.

Sources and further reading