Length Converter

How do I convert a length?

  1. Type a number into either box. The converted value appears in the other box right away.
  2. Pick a unit for each box. Changing a unit keeps the number you typed and works out the other box again.
  3. Type into the box that holds the converted value to convert the other way.

Which units can I convert?

kilometer (km)
1,000 meters
meter (m)
the SI base unit of length
centimeter (cm)
0.01 meter
millimeter (mm)
0.001 meter
micrometer (μm)
0.000001 meter
nanometer (nm)
0.000000001 meter
mile (mi)
1,760 yards, which is 1,609.344 meters
yard (yd)
3 feet, which is 0.9144 meter
foot (ft)
12 inches, which is 0.3048 meter
inch (in)
25.4 millimeters
nautical mile (nmi)
1,852 meters, used at sea and in the air

How exact are the converted values?

Every unit uses its international definition as is, and the number you type is worked out as a decimal, so the rounding errors of computer floating point never creep in. Results are rounded to 10 significant digits, and very large or very small values are written like 1.5e-7.

Whichever of the two boxes you type into, the other one changes at once, and it is worked out from exact definitions such as 1 inch = 2.54 cm with no rounding error along the way.

Common questions

How many centimeters are in an inch?
Exactly 2.54 centimeters.
How many meters are in a foot?
Exactly 0.3048 meter, since a foot is 12 inches.
How many kilometers are in a mile?
Exactly 1.609344 kilometers.
Can I type a comma as the decimal mark?
Yes. 1,5 is read as 1.5.
How long is a nautical mile?
Exactly 1,852 meters, about 1.15 miles.