AnyTool
Your files never leave your device. All processing happens locally in your browser.

How do I convert length between metric and imperial units?

Type a value into AnyTool Length Converter and pick the units. It instantly converts both ways between metres, kilometres, centimetres, millimetres, inches, feet, yards, miles, nautical miles and more, and shows the value in every unit at once in a copyable table. Everything is calculated in your browser, so nothing is uploaded.

  • Live two-way conversion — type in either field and the other updates
  • Metric (mm, cm, m, km, µm, nm), imperial (in, ft, yd, mi) and marine/astronomical units
  • See the value in every unit at once, each row copyable
  • Exact, internationally-defined factors through a metre base
  • 100% in your browser — no upload, no signup, works offline

What is

Length Conversion

Length conversion changes a distance from one unit to another — for example metres to feet. Because length units are linearly proportional, each one is defined by a single factor relative to a base unit (the metre): one inch is exactly 0.0254 m and one mile is exactly 1609.344 m, so converting is multiplying to metres and dividing into the target unit.

Converters

Related terms

Metres to feetInches to centimetresMiles to kilometresNautical mile

Frequently Asked Questions

One inch is exactly 2.54 centimetres, so multiply inches by 2.54 to get centimetres.

One inch is defined as exactly 2.54 centimetres (0.0254 metres). To convert inches to centimetres, multiply by 2.54 — for example 10 inches is 25.4 cm. To go the other way, divide centimetres by 2.54 to get inches.

Multiply metres by 3.280839895. So 1 metre is about 3.28084 feet.

A foot is exactly 0.3048 metres, so one metre equals 1 ÷ 0.3048 ≈ 3.280839895 feet. To convert metres to feet, multiply by 3.28084; for example 5 metres is about 16.404 feet. To convert feet back to metres, multiply by 0.3048.

A statute mile is 1609.344 m; a nautical mile is 1852 m, about 15% longer, used in marine and air navigation.

A statute (land) mile is exactly 1609.344 metres, while an international nautical mile is exactly 1852 metres — roughly one minute of latitude. The nautical mile is about 15 percent longer and is used for sea and air navigation. AnyTool converts both alongside kilometres, metres, yards and feet.

No. Every calculation runs in your browser, so nothing is sent to a server and it works offline.

AnyTool Length Converter computes every result locally in JavaScript using exact conversion factors through a metre base. No value is uploaded, there is no tracking, and the page keeps working offline after the first load.

Detailed Explanation

Methodology

How the Length Converter Works

AnyTool Length Converter performs every calculation in the browser. Each unit declares a single linear factor relative to a shared metre base — the exact number of metres in one of that unit — so any unit converts to any other through metres without an N-by-N table. The factors are the internationally-agreed definitions: one inch is 0.0254 m, one foot 0.3048 m, one yard 0.9144 m, one mile 1609.344 m, one nautical mile 1852 m, the astronomical unit 149,597,870,700 m and a light-year 9,460,730,472,580,800 m. A value is multiplied to metres and then divided into the target unit.

  • Sixteen units spanning metric, imperial, marine and astronomical scales
  • The metre is the shared base; each unit is one exact factor
  • Conversion is value to base to value, so any unit maps to any other
  • Editing either field converts both directions live
  • All arithmetic is client-side JavaScript — no server round-trip
How It Works

All Units, Precision and References

A single input is converted into every unit at once in a copyable table, with the source and target rows highlighted. A decimals control sets precision from 0 to 10 places, and magnitudes that are very large (light-years) or very small (ångströms, nanometres) automatically switch to scientific notation so results stay readable. A common-conversions list and a scale reference table accompany the converter.

  • Convert-to-all table shows the value in every unit simultaneously
  • Each unit row is individually copyable
  • Adjustable precision from 0 to 10 decimal places
  • Automatic scientific notation for extreme magnitudes
  • Built-in common conversions and a scale reference table
Privacy & Security

Privacy and Offline Use

Because all conversion runs in the browser, no value is sent to a server, there is no account or tracking, and the page works offline after first load. The converter is built on a shared, unit-tested conversion engine that other AnyTool unit converters reuse, so behaviour is consistent across the site.

Length conversion: in-browser (AnyTool) vs typical online converters
CapabilityAnyToolTypical online converters
ProcessingRuns in your browserOften server-side
Units16: metric, imperial, marine, astronomicalOften a smaller fixed set
Two-way inputEdit either field, both updateUsually one-direction with a button
All units at onceYes, copyable tableOften one target at a time
Precision controlAdjustable 0-10 decimalsFrequently fixed
Works offlineYes (PWA)No
Cost / signupFree, no signupOften ad-heavy or gated

AnyTool converts every unit locally through a metre base and uploads nothing.