Blog
Unit converters

Length unit converter

Enter a value, pick a source unit and a target unit, and the converter recalculates the length between any pair of nine units: millimeters, centimeters, meters, kilometers, inches, feet, yards, miles and nautical miles.

Your data never leaves this device

Result

Result

This page has no server side at all. The table you paste is parsed by JavaScript inside your own browser, the chart is drawn on a canvas element on your machine, and the export file is assembled locally. Nothing is uploaded, stored or written to any log. You can disconnect from the network after the page has loaded and everything will still work — which is the simplest way to verify the claim yourself.

Facts and limits of this method

Base unit Meter — every other unit is converted through it
1 inch 0.0254 meter (exact international definition)
1 foot 0.3048 meter (12 inches)
1 mile (land) 1609.344 meters
1 nautical mile 1852 meters (international definition)
Total units 9 — mm, cm, m, km, inches, feet, yards, miles, nautical miles

When it misleads you

How it is calculated

Each of the nine units has a pre-defined conversion factor to meters — for example, 1 foot = 0.3048 meters, 1 nautical mile = 1852 meters.

The entered value is multiplied by the "from" unit's factor — this gives the length in meters.

The length in meters is divided by the "to" unit's factor — this gives the result in the target unit.

The result is rounded to the chosen number of decimal places and updates instantly on any change to the value, units, or precision.

Questions and answers

How is a mile different from a nautical mile in this converter?

They're two different units with different factors: a land mile is 1609.344 m, a nautical mile is 1852 m. Both appear separately in the unit list — pick whichever you need.

Can I convert between two imperial units, like feet to yards?

Yes, the converter works for any pair out of the nine units, including conversions within the same measurement system.

Why does the result match the value I entered?

The same unit is probably selected for both "from" and "to" — in that case the conversion doesn't change the number.

Is my data sent anywhere?

No, the whole calculation runs in your browser.

Related tools

All tools