Length Converter
CV-31Type a length such as 12.5 km or 6 ft and see it in millimeters, centimeters, meters, kilometers, inches, feet, yards, miles and nautical miles.
Runs in your browser. Nothing is uploaded.
Values, one per line
Converted
How to use it
- Type one length per line, for example 12.5 km, 6 ft or 100 in.
- Leave the unit off to use the one under "Unit when none is typed".
- Choose All units or a single target and set the significant digits.
- Press Convert and copy or download the result.
Exact definitions, not rounded factors
Since 1959 the international yard has been defined as exactly 0.9144 meters. From that, an inch is 0.0254 m, a foot is 0.3048 m and a mile is 1609.344 m. A nautical mile is exactly 1852 m. The tool multiplies with those exact values as whole-number fractions, so 1 mi to km shows 1.609344 with nothing lost. Rounding only happens at the end, to the number of significant digits you pick.
Which feet and miles
These are the international foot and mile. The older US survey foot, still used in some land surveying data, is about 2 parts per million longer and is not offered. For everyday distances and for engineering drawings the two agree to many digits. If you work with state plane coordinates or old survey records, check which foot the data uses before converting.
Typing units
Units are read without regard to case, except that a capital prefix such as Mm is refused because it would change the unit, and common spellings work, such as meter, metre, inches, feet and nautical miles. A line takes one value and one unit. Compound lengths such as 5 ft 3 in are not read as one value, so put the feet and the inches on separate lines or convert 63 in. Numbers can use e-notation (2e3 m) or thousands commas (1,000 m).
Error messages and what to do
| Message | What it means | Fix |
|---|---|---|
Line 1: unknown unit "foo". Known units: mm, cm, m, km, in, ft, yd, mi, nmi. | The text after the number is not a unit this tool knows, so it cannot tell what the number measures. | Use one of the units named in the message, or its full name, such as the spelled-out unit. |
Line 1: could not find a number at the start of "abc". Write a value such as 12.5 km, or just 12.5. | The line does not start with a number, so there is nothing to convert. | Start each line with a value such as 12.5, with the unit after it if you want one. |
Questions people ask
How many feet are in a meter?
One meter is about 3.280840 feet. The exact relation is 1 ft = 0.3048 m, so 1 m = 1 / 0.3048 ft. Type 1 m and read the ft row for as many digits as you set.
How many kilometers is a mile?
One mile is exactly 1.609344 km, because the mile is defined as 1609.344 meters. Type 1 mi, choose km as the target, and the result is 1.609344.
How do I convert inches to centimeters?
Multiply by 2.54. One inch is defined as exactly 2.54 cm, so 10 in is 25.4 cm. Type 10 in and read the cm row.
What is a nautical mile?
A nautical mile is exactly 1852 meters, about 1.1508 statute miles. It is used in sea and air navigation. Type the value with nmi or nautical miles after it.
Does it include light years or microns?
No. The list is millimeters through kilometers plus inches, feet, yards, miles and nautical miles. Units for very small or astronomical lengths are not included.
Can it add 5 ft 3 in as one value?
Not in one line. Convert 5 ft and 3 in on separate lines and add the meters, or enter 63 in, which is the same length. Mixed-unit input is not parsed.
About this tool
Converts with the exact international definitions: 1 inch is 0.0254 m, 1 foot is 0.3048 m, 1 yard is 0.9144 m, 1 mile is 1609.344 m and 1 nautical mile is 1852 m. These are the international units, not the older US survey foot, which differs by about 2 parts per million and is not included. Results are rounded to the number of significant digits you choose, half up, with trailing zeros removed. Typed units are read without regard to case (km, Km), except that a capital prefix that would change the unit, such as Mm or Mg, is refused with an error instead of being read as the lowercase unit. The tool does not do compound values such as 5 ft 3 in; convert each part on its own line.