Length Converter
Enter a length and its unit to see the equivalent in millimeters, centimeters, meters, kilometers, inches, feet, yards, and miles.
Enter a valid dot-decimal number and select a supported unit. Check positive denominators and absolute temperature.
One sign applies to the entire compound length. Feet must be nonnegative whole numbers; inches may be nonnegative decimals and may exceed 12. Conversion factors are exact. The compound display rounds absolute total inches to the nearest 0.1 in, halves upward, then carries 12 inches into a foot. Decimal unit conversion retains signed input; displayed numeric results have up to 12 significant digits.
How length conversion works
Enter a length and its unit to see the equivalent in millimeters, centimeters, meters, kilometers, inches, feet, yards, and miles.
y=x·aᵢ/aⱼ.
Select the input unit. Results are rounded to 12 significant digits; measurement accuracy depends on your inputs.
One sign applies to the entire compound length. Feet must be nonnegative whole numbers; inches may be nonnegative decimals and may exceed 12. Conversion factors are exact. The compound display rounds absolute total inches to the nearest 0.1 in, halves upward, then carries 12 inches into a foot. Decimal unit conversion retains signed input; displayed numeric results have up to 12 significant digits.
Frequently asked questions
How is the result calculated?
y=x·aᵢ/aⱼ.
How are numbers displayed?
Select the input unit. Results are rounded to 12 significant digits; measurement accuracy depends on your inputs.
How we verified this calculator
The calculator is checked against 6 reference cases computed independently of its code. Last passed: .
| # | Inputs | Expected result |
|---|---|---|
| 1 |
Unit = Millimeters (mm)
Value = 1
|
Millimeters (mm): 1
Centimeters (cm): 0.1
Meters (m): 0.001
Kilometers (km): 0.000001
|
| 2 |
Unit = Centimeters (cm)
Value = 1
|
Millimeters (mm): 10
Centimeters (cm): 1
Meters (m): 0.01
Kilometers (km): 0.00001
|
| 3 |
Unit = Meters (m)
Value = 1
|
Millimeters (mm): 1000
Centimeters (cm): 100
Meters (m): 1
Kilometers (km): 0.001
|
| 4 |
Unit = Kilometers (km)
Value = 1
|
Millimeters (mm): 1000000
Centimeters (cm): 100000
Meters (m): 1000
Kilometers (km): 1
|
| 5 |
Unit = Inches (in)
Value = 1
|
Millimeters (mm): 25.4
Centimeters (cm): 2.54
Meters (m): 0.0254
Kilometers (km): 0.0000254
|
| 6 |
Unit = Feet (ft)
Value = 1
|
Millimeters (mm): 304.8
Centimeters (cm): 30.48
Meters (m): 0.3048
Kilometers (km): 0.0003048
|