# Length Converter

> Convert lengths between 12 metric, imperial and astronomical units, or turn a height in feet and inches into centimeters, with exact factors.

Use it online (free, runs in your browser): https://directory.milunir.com/unit-converters/common-converters/length-converter/

To convert a length, express it in meters first and then divide by the size of the target unit in meters. One inch is exactly 0.0254 meters and one foot exactly 0.3048 meters, so conversions between metric and imperial units are exact. For a height, multiply feet by 12, add the inches and multiply by 2.54 to get centimeters.

Lengths turn up in two systems at once: a room plan in feet, a parcel limit in centimeters, a race in miles, a map in kilometers. This converter has two modes. Unit to unit converts a length between any two of 12 units, from micrometers and mils to miles, nautical miles and light years. Feet and inches takes a height written the American way, such as 5 ft 9 in, and gives it in centimeters. Every factor comes from the exact definitions published by NIST, so the result is limited only by the digits shown, and the working lists the value in meters on the way.

## How to use

1. **Pick a mode**: Choose Unit to unit for any two length units, or Feet and inches for a height.
2. **Enter the length**: Type the value and choose the From and To units, or type the feet and the inches.
3. **Read the result and the factor**: The converted length, its value in meters and the conversion factor update as you type.

## Examples

### One inch in centimeters

- Mode: Unit to unit
- Length: 1
- From: Inches (in)
- To: Centimeters (cm)

Result: Converted length: 2.54 cm In meters: 0.0254 m Conversion factor: 1 in = 2.54 cm

Since 1959 the inch is defined as exactly 2.54 centimeters, so this result has no rounding at all.

### A height of 5 ft 9 in in centimeters

- Mode: Feet and inches
- Feet: 5
- Inches: 9

Result: Converted length: 175.26 cm In meters: 1.7526 m Conversion factor: 1 ft = 30.48 cm, 1 in = 2.54 cm

5 feet is 60 inches; adding 9 gives 69 inches, and 69 × 2.54 is 175.26 centimeters.

### One mile in kilometers

- Mode: Unit to unit
- Length: 1
- From: Miles (mi)
- To: Kilometers (km)

Result: Converted length: 1.609344 km In meters: 1,609.344 m Conversion factor: 1 mi = 1.609344 km

A mile is 5,280 feet of 0.3048 meters each, which is exactly 1,609.344 meters.

## How it works

`result = value × (size of From unit in meters ÷ size of To unit in meters)`

- `value`: the length you enter
- `size in meters`: the exact length of one unit, such as 0.0254 for an inch or 1,609.344 for a mile

Every unit is stored by its exact size in meters, taken from NIST tables. The converter multiplies your value by the From size to get meters, then divides by the To size. In Feet and inches mode it multiplies the feet by 12, adds the inches and multiplies the total by 2.54, because one inch is exactly 2.54 centimeters. Results show up to ten significant digits.

Sources:

- [NIST Guide to the SI, Appendix B: Conversion Factors](https://www.nist.gov/pml/special-publication-811/nist-guide-si-appendix-b-conversion-factors), National Institute of Standards and Technology

## When not to use it

- For US survey feet on old land records, which differ from the international foot by two parts per million.
- For screen sizes, which are measured on the diagonal, so converting the number alone does not give the width or height.

## Common mistakes

- Writing 5.9 feet for 5 ft 9 in; 9 inches is 0.75 of a foot, so the height is 5.75 feet.
- Mixing the nautical mile (1,852 m) with the ordinary mile (1,609.344 m) when converting sea or air distances.

## Questions

### How many centimeters are in an inch?

Exactly 2.54. The inch has been defined from the metric system since the 1959 international yard and pound agreement, so the factor has no rounding.

### How do I convert a height like 5 ft 9 in to centimeters?

Switch to Feet and inches mode and enter 5 and 9. The tool multiplies 5 by 12, adds 9 to get 69 inches, and multiplies by 2.54 to show 175.26 cm.

### What is the difference between a mile and a nautical mile?

A statute mile is 1,609.344 meters. A nautical mile is 1,852 meters, based on one minute of latitude, and is used at sea and in aviation.

### How many feet are in a meter?

About 3.28084. One foot is exactly 0.3048 meters, so one meter is 1 divided by 0.3048 feet, which does not end in a short decimal.

### Why are some results shown with an exponent?

Very small or very large values, such as a light year in millimeters, are shown in scientific notation so that the digits stay readable.

## Popular conversions

- [Centimeters to Inches](https://directory.milunir.com/unit-converters/common-converters/length-converter/cm-to-inches/)
- [Inches to Centimeters](https://directory.milunir.com/unit-converters/common-converters/length-converter/inches-to-cm/)
- [Feet to Meters](https://directory.milunir.com/unit-converters/common-converters/length-converter/feet-to-meters/)

## Use from code or an AI agent

Free JSON API, no key needed. The answer is in `result.stats.primary`.

```bash
curl -X POST https://api.tools-directory.workers.dev/v1/tools/length-converter \
  -H 'Content-Type: application/json' \
  -d '{"inputs":{"mode":"units","value":1,"from":"in","to":"cm"}}'
```

- Inputs (JSON Schema): https://directory.milunir.com/api/v1/tools/length-converter.json
- MCP server: https://api.tools-directory.workers.dev/mcp (tool `length_converter`)
- Docs: https://directory.milunir.com/docs/
