UTILS.
100% in-browser
📏

Length & Distance Converter

Convert any length or distance between mm, cm, m, km, inches, feet, yards, miles and nautical miles — all units shown at once in a live grid.

About this tool

The Length & Distance Converter turns a single value into every common metric, imperial and nautical length unit at once. Type a number, pick the unit you are starting from, and the results grid instantly shows the same distance in millimetres, centimetres, metres, kilometres, inches, feet, yards, miles and nautical miles — plus microns, mils, furlongs, ångströms, light-years and astronomical units for scientific work.

Conversion uses an exact linear factor table with the metre as the base unit. Each unit stores how many of it fit in one metre (mm = 1000, in = 1/0.0254, ft = 1/0.3048, mi = 1/1609.344, nmi = 1/1852, and so on), all derived from the internationally exact definitions 1 inch = 0.0254 m and 1 mile = 1609.344 m. The tool converts your value to metres (value ÷ factor of the source unit) and then multiplies by each target factor, so results never drift from repeated rounding.

Everything runs entirely in your browser with plain JavaScript — nothing is uploaded and there is no network call. Very small or very large results (like light-years) are shown in scientific notation, while everyday values are rounded to six decimals for readability. The source unit is outlined in the grid so you can always see your starting point.

Frequently asked questions

Which length units are supported?
Millimetre, centimetre, metre, kilometre, inch, foot, yard, mile and nautical mile as the core set, plus micron (µm), mil/thou, furlong, ångström (Å), light-year and astronomical unit (AU) for scientific ranges.
How accurate is the conversion?
It uses the internationally exact definitions — 1 inch = 0.0254 m, 1 foot = 0.3048 m, 1 mile = 1609.344 m, 1 nautical mile = 1852 m — so conversions are exact to double-precision floating point, with no accumulated rounding error.
What is a nautical mile versus a statute mile?
A statute (land) mile is 1609.344 m. A nautical mile is exactly 1852 m — about 1.15 statute miles — and is used in aviation and marine navigation because it corresponds to one minute of latitude.
Is my data sent anywhere?
No. All parsing and conversion happen locally in your browser with vanilla JavaScript. Nothing you type is uploaded, so the tool works offline once loaded.

More tools