# Centimeters to Inches

> Turn centimeters into inches using the exact factor of 2.54, handy for screen sizes, clothing tags and product dimensions listed in metric.

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

Product sizes from Europe and Asia are usually listed in centimeters, while many buyers think in inches. Dividing by 2.54 is exact, so the only rounding is in how many decimals you keep.

## Worked example

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

Result: Converted length: 0.3937007874 in In meters: 0.01 m Conversion factor: 1 cm = 0.3937007874 in

## 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

## 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":{"value":1,"from":"cm","to":"in"}}'
```

- 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/
