Length Unit Converter
Online length unit conversion tool - convert between km, m, cm, mm, miles, feet, inches and more
What is Length Unit Conversion?
A length unit converter quickly transforms one length measurement into another. It supports 16 common length units including metric (kilometer, meter, centimeter, millimeter), imperial (mile, yard, foot, inch), and Chinese traditional units (li, zhang, chi, cun). Whether for engineering measurements, scientific calculations, or everyday size conversions, this tool provides precise results instantly. All calculations happen locally in your browser, keeping your data private and secure. Length conversion is used constantly in daily life, engineering, education, travel, construction, and product specifications. Meters, kilometers, centimeters, millimeters, inches, feet, yards, and miles have fixed relationships, but rounding and precision depend on the task. A tiny difference may not matter for a rough travel estimate, yet it can matter for furniture, shipping dimensions, machining, maps, or scientific data. The converter gives quick results, while formal specifications should state the unit, precision, and rounding rule explicitly.
How to Use
How to use
- Enter the value you want to convert in the input field
- Select the source unit (From) and target unit (To)
- Click the "Convert" button or view the real-time result
- Click "Related Conversions" to see other unit combinations
Precision Notes
- Keep enough decimal places when converting between very small and very large units; early rounding can change the final value.
- For drawings, manufacturing, or construction, record the source unit and required tolerance with the converted result.
Use Cases
Technical Principle
Every length conversion in the tool collapses to a single multiplication by an exact rational factor relative to the SI metre. Since 2019 the metre has been defined by fixing the speed of light at c = 299,792,458 m/s, so 1 m is the distance light travels in vacuum during 1/299,792,458 of a second. Every other supported unit is then anchored to the metre by an exact conversion: 1 in = 0.0254 m (international yard and pound agreement, 1959), 1 ft = 12 in = 0.3048 m, 1 yd = 3 ft = 0.9144 m, 1 mi = 1,609.344 m, and 1 nmi = 1,852 m exactly (International Hydrographic Organization). Metric prefixes are decimal powers of ten over the metre: km = 10^3, dm = 10^-1, cm = 10^-2, mm = 10^-3, μm = 10^-6, nm = 10^-9. Chinese 市制 units follow GB 3102.1-1993: 1 里 = 500 m, 1 丈 = 10/3 m, 1 尺 = 1/3 m, 1 寸 = 1/30 m. Astronomical scales tie back to the same SI base: 1 AU = 149,597,870,700 m exactly (IAU 2012 redefinition), 1 light-year ≈ 9.4607 × 10^15 m, and 1 parsec ≈ 3.0857 × 10^16 m. The arithmetic is trivial; the trap is floating-point precision. IEEE 754 doubles carry roughly 15-17 significant decimal digits, so multiplying by 1/0.3048 introduces a sub-femtometre rounding error that does not matter for plumbing but starts to matter when crossing nanometres to light-years in the same calculation. For engineering output the result should be rounded to the tolerance the source drawing actually carries, not to the full double-precision string.
- SI base: 1 m is defined by fixing c = 299,792,458 m/s; every other supported unit is anchored to the metre by an exact conversion factor.
- Imperial exact factors (1959 agreement): 1 in = 0.0254 m, 1 ft = 0.3048 m, 1 yd = 0.9144 m, 1 mi = 1,609.344 m.
- Nautical mile: 1 nmi = 1,852 m exactly (IHO), about 15% longer than a statute mile; matters for waypoint timing and fuel planning.
- Chinese 市制 (GB 3102): 1 里 = 500 m, 1 丈 = 10/3 m, 1 尺 = 1/3 m, 1 寸 = 1/30 m, so 3 chi exactly equal 1 metre by definition.
- Astronomical anchors: 1 AU = 149,597,870,700 m exactly (IAU 2012), 1 ly ≈ 9.4607 × 10^15 m, 1 pc ≈ 3.0857 × 10^16 m ≈ 3.26 ly.
- Precision: IEEE 754 doubles hold 15-17 significant digits, so crossing nm and ly in one chain can drop the last decimal places; round to the source tolerance, not the full double.
Examples
Kilometers to meters
Input: 1 km
Output: 1,000 m = 100,000 cm = 1,000,000 mm
Use: quick metric scaling, mapping distancesFeet and inches to metric (imperial bridge)
1 ft = 30.48 cm; 1 in = 2.54 cm = 25.4 mm
Example: 6 ft = 1.8288 m (average human height)
Use: product spec sheets, international collaborationKilometers to miles and yards
1 km = 0.6214 mile = 1,093.6 yd
Example: 5 km ≈ 3.107 mi (typical 5K run)
Use: converting between metric odometers and imperial dashboardsMarathon distance (running reference)
42.195 km = 26.219 mi = 138,435 ft
Reference: a 400 m track ≈ 1,312.3 ft; a marathon is about 105.5 lapsSports court and room sizes
Basketball court (FIBA): 28 m x 15 m = 91.86 ft x 49.21 ft
Standard doorway: 80 cm wide ≈ 31.5 in
Use: shipping container dimensions, gym layout planningNautical vs. statute mile
1 nmi = 1,852 m exactly (used for air and sea navigation)
1 statute mile = 1,609.344 m (used on roads in the US/UK)
1 nmi ≈ 1.151 miFAQ
Which length units are supported?
Metric: mm, cm, m, km. Imperial/US: inch, foot, yard, mile. Nautical: nautical mile (1.852 km). Special: ångström (10^-10 m), light-year, parsec, astronomical unit. Chinese traditional: 寸/尺/丈/里 (with the modern conversion: 1 尺 = 1/3 m).
How accurate are imperial conversions?
1 inch = 25.4 mm exactly (since the international yard and pound agreement of 1959). 1 foot = 0.3048 m exactly. 1 mile = 1.609344 km exactly. The 'survey foot' used in some US land records is slightly different (1200/3937 m); the page uses the international foot unless explicitly noted.
Why does my measurement differ from another converter by a tiny amount?
Most likely you are seeing a different number of significant digits or a different definition. The page carries 10+ significant digits internally. Differences greater than ~1 part in 10^9 usually mean different unit definitions (international vs survey foot, statute vs nautical mile).
What's the difference between a statute mile and a nautical mile?
Statute mile = 5280 ft = 1.609 km, used on land. Nautical mile = 1852 m exactly, used in maritime and aviation contexts because it equals one minute of latitude. Speed in knots = nautical miles per hour.
How big is one Chinese 里 (li)?
Modern 里 = 500 m exactly. Historical 里 varied widely by dynasty (300-600 m); a Han-dynasty 里 was about 416 m, a Tang 里 about 530 m. The page uses the modern PRC value.
What is a parsec?
1 parsec ≈ 3.0857 × 10^16 m ≈ 3.262 light-years. It is the distance at which 1 AU subtends a parallax angle of 1 arcsecond. The nearest star, Proxima Centauri, is about 1.30 parsec away. Used in astronomy to avoid scientific-notation distances.
Is the conversion done locally?
Yes. Math runs in your browser. No values are uploaded.