Conversion & Everyday

Length converter

This length converter lets you convert length units between metric and imperial, from millimeter to light-year. Enter a value and choose your units for an instant result.

length converter comparing metric and imperial units
—

How to use this length converter

  1. Enter a value in the field at the top of the converter.
  2. Choose your starting unit from the From list and your target unit from the To list.
  3. Read the result instantly, or tap the swap button to flip the two units and convert length units the other way around.

Metric versus imperial

Most of the world uses the metric system (millimeter, centimeter, meter, kilometer), based on powers of 10. The United States, and to a lesser extent the United Kingdom, still primarily uses the imperial system (inch, foot, yard, mile), with less regular ratios between units. This length converter switches effortlessly between both systems, whether you need meters to feet, inch to cm, or miles to km. Most everyday confusion between the two systems comes down to a handful of common pairings — a home improvement project might need inches and feet, a road trip abroad might need kilometers, and a recipe or fabric measurement might mix centimeters with inches in the same sentence.

Commonly used length conversions

FromToMultiply by
1 inchCentimeter2.54
1 footMeter0.3048
1 yardMeter0.9144
1 mileKilometer1.609344
1 nautical mileKilometer1.852
1 meterFeet≈ 3.28084 (1 ÷ 0.3048)

Apart from the last row, which is a rounded reciprocal, these exact figures come from the international yard and pound agreement, which NIST documents in the official conversion tables published in its Handbook 44. That 1959 agreement is also why an inch converts to exactly 2.54 centimeters rather than some rounded approximation — the relationship was fixed by treaty, not just measured.

Astronomical distances

For extremely large distances, such as in astronomy, ordinary length units become impractically large. The astronomical unit (AU) is the average distance between Earth and the Sun (about 93 million miles), and is used for distances within our solar system. NASA’s Center for Near Earth Object Studies defines the AU as exactly 149,597,870,700 meters — a fixed value set by the International Astronomical Union rather than an approximation. The light-year is the distance light travels in one Julian year of 365.25 days: exactly 9,460,730,472,580,800 meters, or about 5.88 trillion miles. The length converter uses that IAU value, and it is used for distances between stars and galaxies.

Length converter accuracy and limits

This length converter uses exact international definitions wherever one exists — such as the inch, foot, yard, and nautical mile — so metric-to-imperial results are as precise as floating-point arithmetic allows.

  • Extremely large or small results — for example, converting nanometers to light-years — are shown in scientific notation rather than a long string of digits, to keep the result readable.
  • The astronomical unit and light-year are based on fixed astronomical definitions rather than everyday measurement, so they convert exactly like any other unit once you understand what they represent.
  • Swapping the From and To units, using the button between the two dropdowns, is a quick way to check a conversion in reverse without retyping the value.

Frequently Asked Questions

How many centimeters is an inch?

One inch is exactly 2.54 centimeters, so 12.5 inches is 31.75 cm. You can type 12.5 or 12,5 into the length converter; both are read as twelve and a half.

What’s the difference between a mile and a nautical mile?

A regular (land) mile is exactly 1.609344 kilometers, while a nautical mile is 1.852 kilometers. Nautical miles are used in maritime and aviation navigation and are based on the Earth’s circumference.

Are these conversions exact?

Yes, the conversion factors used are based on officially established international standards. The metric-to-metric conversions, such as millimeters to kilometers, are all exact by definition, since the metric system is built entirely on powers of 10.

Can this length converter handle scientific or engineering length units?

Yes — alongside everyday units like meters and feet, it also covers nanometers and micrometers on the small end, and astronomical units and light-years on the large end. That range spans roughly twenty-five orders of magnitude in a single tool, from the width of a virus measured in nanometers up to distances between galaxies measured in light-years, without ever needing to switch to a different calculator.