Length Converter

Convert meters, feet, inches, miles, yards and kilometers to every other length unit at once, with the exact 1959 definitions shown in the working.

The interactive tool loads here when JavaScript runs.

About this tool

What is the Length Converter?

Type one length and see it in every common unit at the same time: meters, kilometers, centimeters, millimeters, micrometers, nanometers, miles, yards, feet, inches and light years. There is no second dropdown to fight with; the table updates as you type, and picking any row shows the arithmetic that produced it.

The factors are the legal definitions, not rounded shortcuts. Since the international yard and pound agreement of 1959, one inch is exactly 25.4 mm, one foot exactly 0.3048 m, one yard exactly 0.9144 m and one mile exactly 1,609.344 m. Because those are definitions rather than measurements, converting 6 ft to 182.88 cm involves no rounding error at all, and the only rounding you ever see is the display precision you choose.

Everything runs locally in your browser, so no measurement leaves your machine. The working steps spell out which exact definition was applied to your number, and the report bar under the tool exports the full table as CSV or PDF or copies a link that reopens the page with your value filled in.

  • One input converted to all eleven length units simultaneously
  • Working steps that name the exact definition used, such as 1 in = 0.0254 m
  • Exact 1959 international yard factors, so inch, foot, yard and mile results carry no rounding error
  • Nanometers to light years in a single table, with scientific notation input
  • CSV and PDF export plus a share link, all computed in your browser
Read the guide: Unit Conversion Factors: Exact Definitions, Gallons and Temperature Offsets

Updated

How to use the Length Converter

  1. Enter the length you want to convert; decimals and scientific notation such as 1.5e6 both work.
  2. Pick the unit your number is in, from nanometers up to light years.
  3. Read the full table: every other length unit is computed from the same input at once.
  4. Select a target unit to open the working steps, which show the exact factor applied, for example 1 mile = 1,609.344 m.
  5. Export the table as CSV or PDF from the report bar, or copy the share link to send the exact conversion to someone else.

Worked examples

Kilometers to miles

Input

5 km

Output

3.106856 mi

5 km is 5,000 m, and a mile is exactly 1,609.344 m, so 5,000 / 1,609.344 = 3.106856 miles. A handy check: a kilometer is roughly 0.62 miles, so 5 km should land near 3.1.

Feet to centimeters

Input

6 ft

Output

182.88 cm

One foot is exactly 0.3048 m, so 6 x 0.3048 = 1.8288 m = 182.88 cm. The answer is exact because the foot is defined in meters, not measured.

Yards to meters

Input

100 yd

Output

91.44 m

The international yard is exactly 0.9144 m, so a 100 yard sprint is exactly 91.44 m. This is why 100 m races are slightly longer than 100 yard races by about 9.4 yards per 100.

A light year in kilometers

Input

1 ly

Output

9,460,730,472,580.8 km

Light covers 299,792,458 m each second, and a Julian year has 31,557,600 seconds, so one light year is 9,460,730,472,580,800 m. The same row in miles reads about 5.879 trillion.

Background and insight

The meter anchors every other length unit. It was first set in 1793 as one ten-millionth of the distance from the equator to the North Pole through Paris, then tied to a platinum-iridium bar, and since 1983 it has been defined as the distance light travels in a vacuum in 1/299,792,458 of a second. The SI Brochure builds kilometers, centimeters, millimeters, micrometers and nanometers from it with decimal prefixes, which is why the metric side of the table is just the decimal point moving.

The customary side took longer to settle. Before 1959 the US inch and the UK inch differed by about two parts per million, enough to matter in surveying and precision machining. The yard-and-pound agreement between the US, UK, Canada, Australia, New Zealand and South Africa fixed the international yard at 0.9144 m, which makes the chain from inch to mile exact: 12 inches to the foot, 3 feet to the yard, 1,760 yards to the mile. The US kept a separate survey foot (1200/3937 m) for land records until NIST and NOAA deprecated it at the end of 2022; this converter uses the international foot throughout.

The light year is the odd one out: it is a distance, not a time, equal to the length light covers in one Julian year of 365.25 days. That comes to exactly 9,460,730,472,580,800 m, about 9.46 trillion kilometers or 5.88 trillion miles, and it is why astronomical distances dwarf anything else in the table.

Common use cases

  • Plans and datasheets

    Move between millimeter drawings, inch fasteners and foot room dimensions without re-deriving factors.

  • Sport and training

    Translate race distances, pool lengths and field markings between meters, yards and miles.

  • Shopping abroad

    Check whether a 180 cm sofa or a 32 inch screen fits a space you measured in the other system.

  • Science homework

    Convert wavelengths in nanometers, cell sizes in micrometers and astronomical distances in light years with the steps written out.

Tips and limitations

  • Metric to metric is just a decimal shift: 1 km = 1,000 m = 100,000 cm, so if an answer looks off by a factor of 10 you likely picked the wrong prefix.
  • A quick sanity check for miles and kilometers: multiply miles by 1.6 for a rough figure, then let the tool give the exact 1.609344 factor.
  • US land surveys recorded before 2023 may use the US survey foot, which differs from the international foot by 2 parts per million; it only matters over miles, not around the house.
  • For feet-and-inches heights, convert the whole thing in inches (5 ft 10 in = 70 in) and read the centimeter row.
  • Scientific notation keeps very small or very large lengths readable: 450 nm is easier to compare as 4.5e-7 m than as a string of zeros.

Sources and further reading

  1. NIST Special Publication 811: Guide for the Use of the International System of Units, National Institute of Standards and Technology. Appendix B lists the exact conversion factors used here
  2. The International System of Units (SI Brochure), BIPM. Definition of the meter and the SI prefixes
  3. International yard and pound, Wikipedia. The 1959 agreement that fixed the yard at 0.9144 m

Frequently asked questions

How many feet are in a meter?

One meter is 3.280840 feet, because a foot is defined as exactly 0.3048 m and 1 / 0.3048 = 3.280839895. A quick mental version is 3 feet 3 and a bit inches, or 39.37 inches.

How many kilometers are in a mile?

Exactly 1.609344 km. The mile is 1,760 yards, each exactly 0.9144 m, so the factor is a definition and the conversion is exact in both directions: 1 km is 0.621371 miles.

Why is an inch exactly 25.4 millimeters?

Because the 1959 international yard and pound agreement defined the yard as 0.9144 m, which makes the inch 0.9144 / 36 = 0.0254 m. Before that the US and UK inches differed slightly, which caused real problems in precision engineering.

Is a US survey foot different from an international foot?

Slightly. The survey foot is 1200/3937 m, about 2 parts per million longer than the international 0.3048 m foot, and it was used in some US state plane coordinate systems. NIST deprecated it at the end of 2022, and this converter uses the international foot.

How many miles is a light year?

About 5.879 trillion miles, or exactly 9,460,730,472,580,800 m. It is the distance light travels in one Julian year of 365.25 days at 299,792,458 m per second.

How many yards are in a mile?

1,760 yards, which is also 5,280 feet or 63,360 inches. The figure comes from the 1593 English statute that fixed the mile at eight furlongs of 220 yards each.

Is there an in-depth guide to the Length Converter?

Yes. “Unit Conversion Factors: Exact Definitions, Gallons and Temperature Offsets” covers the background, how it works, common pitfalls and worked examples. Read the full guide.