Whether you are planning a road trip in miles, buying fabric measured in meters, or wondering how far a light-year really is, a good distance and length converter should give you the answer in seconds. This free online tool instantly converts kilometers to miles, meters to feet, inches to centimeters, and 27 units in total across the metric, imperial, nautical and astronomical systems, in six languages, on any device.
On this page:
- How to use the converter
- Why unit conversion matters
- The metric system
- Imperial & US units
- Nautical units
- Astronomical units
- Conversion formulas
- Worked examples
- Quick reference charts
- Popular conversions
- Frequently asked questions
Distance & Length Converter Embed Code for Your Website:
Distance shapes our world. It tells us how far we've traveled, how close we are to our goals, and how vast the universe truly is. But here's the thing - distance speaks in many dialects. A kilometer means something different to a runner than a mile does to a driver, and an inch tells a story that a centimeter might not capture. This tool was created to unite these measurements, making distance a universal language we can all understand.
You can copy this code and embed it on your website, offering your visitors a practical, elegant tool that transforms how they think about distance. Whether they're planning a road trip, calculating the dimensions of a room, comparing product sizes while shopping, or exploring the wonders of astronomy, this Distance & Length Converter makes every measurement feel familiar and accessible.
The Distance & Length Converter is a beautifully simple, interactive tool that allows your website visitors to instantly convert between millimeters, centimeters, meters, kilometers, inches, feet, yards, and miles. Enter a value in any unit, and watch as all other units update in perfect harmony - turning what could be a frustrating mental math exercise into a moment of effortless clarity.
This tool is invaluable for travel blogs, construction and home improvement sites, educational resources, fitness and running communities, mapping applications, or any website where distance and measurement matter. It's not just a converter - it's a bridge that connects people across different measurement traditions and ways of seeing the world.
The code is available in six global languages to welcome visitors from every corner of the earth: English - Spanish - French - Arabic - Chinese - Hindi.
You can easily switch the converter language by changing the parameter in the URL: ?lang=en
Available languages: en - es - fr - ar - zh - hi
1- Isolated iFrame Code (Ideal for Articles and Pages):
If you're writing about travel adventures, DIY projects, geographic explorations, or scientific measurements, this method allows you to embed the tool directly within your content. The isolated iframe ensures a clean, focused experience, so your readers can experiment with distance conversions alongside your stories - connecting the numbers to the real-world experiences they represent.
<iframe id="tq_distance_converter" src="https://tools.tooliqo.co/distance-converter/?lang=en" title="Tooliqo" loading="lazy" scrolling="no" style="width:100%;max-width:100%;height:1048px;border:0;overflow:hidden;display:block;margin:0 auto;"></iframe>
<script>(function(){var i="tq_distance_converter",b="https://tools.tooliqo.co/distance-converter/",dl="en";function L(){try{var h=(document.documentElement.getAttribute("lang")||"").toLowerCase();var ok=["ar","en","fr","es","zh","hi"];for(var k=0;k<ok.length;k++){if(h.indexOf(ok[k])===0)return ok[k];}}catch(e){}return dl;}function R(){var f=document.getElementById(i);if(!f)return;var lg=L();if(lg){var want=b+"?lang="+lg;if((f.getAttribute("src")||"").indexOf("lang="+lg)===-1)f.setAttribute("src",want);}window.addEventListener("message",function(e){var d=e.data;if(!d||typeof d.tqHeight!=="number"||d.tqHeight<50)return;try{if(f.contentWindow&&e.source&&e.source!==f.contentWindow)return;}catch(x){}f.style.height=(d.tqHeight+20)+"px";},false);}if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",R);}else{R();}})();</script>
2- Flexible Script (Suitable for Sidebars and Templates):
This method is perfect for sidebars, footers, or widget areas where you want the tool to be always accessible. The converter loads smoothly and gracefully, becoming a trusted companion that helps your visitors navigate the world of measurement - whether they're comparing product dimensions before making a purchase, planning a journey across countries with different measurement systems, or simply satisfying their curiosity about how far away something really is.
Just add these lines to your website's code, and the Distance & Length Converter will appear instantly, ready to help. It's fully responsive, offering a flawless experience on desktops, tablets, and mobile phones alike.
<div class="tooliqo-tool" data-tool="distance-converter" data-lang="en"></div> <script src="https://tools.tooliqo.co/embed.js" async></script>
Note: The Distance & Length Converter works in real-time, instantly updating all units as your visitors type or adjust values. No page refreshes needed - just a smooth, intuitive experience that makes distance feel less like a calculation and more like a connection. Because the more we understand measurement, the closer we feel to the world around us.
How to use the distance converter
The tool is designed so that anyone can use it without instructions, but here is the full flow so you get the most out of it:
- Type a value. Enter any number in the input field. You can use a decimal point or a comma, and the result updates the instant you type.
- Choose the unit to convert from. The "From" menu groups every unit under a clear heading: Metric, Imperial & US, Nautical and Astronomical.
- Choose the unit to convert to. Pick the "To" unit the same way. The large result and its symbol appear immediately.
- Swap in one tap. The circular swap button flips the two units and moves the result back into the input, so you can chase a conversion back and forth without retyping.
- Copy the answer. The copy button places a clean, ungrouped number on your clipboard, ready to paste into a spreadsheet, message or document.
- Set the precision. Leave it on "Auto" for smart significant figures, or lock it to a fixed number of decimals when you need a tidy figure.
- Use the quick chips. Below the result, the most common everyday units are shown at a glance. Tap any chip to make it the new target unit.
Tip: the converter automatically detects your language from the page and your browser, and you can override it any time from the language menu in the top corner. It supports English, Arabic, French, Spanish, Chinese and Hindi, including full right-to-left layout for Arabic.
Why unit conversion matters
Length is the most measured quantity in daily life, and the world has never agreed on a single way to measure it. Most countries use the metric system, but the United States and, to a lesser degree, the United Kingdom still lean on imperial units. Sailors and pilots navigate in nautical miles. Engineers work in millimeters, machinists in thousandths of an inch, and astronomers in units so large that ordinary numbers stop being useful. A reliable converter is the bridge between all of these worlds.
Getting a conversion wrong is not just inconvenient, it can be expensive or dangerous. In 1999 the Mars Climate Orbiter was lost because one team worked in metric units and another in imperial ones, and the mismatch sent a 300-million-dollar spacecraft too close to the planet. On a smaller scale, ordering the wrong length of pipe, misreading a running pace, or cutting a board to the wrong size all come down to the same thing: a number attached to the wrong unit. Converting carefully, and double-checking with a tool, removes that risk.
There is also a quieter, everyday reason conversion matters: fluency. When you can move comfortably between systems, a distance in an unfamiliar unit stops being abstract. Reading that a trail is 8 kilometers long means something concrete once you know it is about 5 miles, or roughly an hour and a half of walking. A ceiling height of 2.4 meters becomes real when you recognize it as just under 8 feet. Conversion is not only about producing a number; it is about building the intuition that lets you picture a length instantly, whichever unit it happens to arrive in.
Metric or imperial: which should you use?
For most purposes the metric system is simply easier to work with, because everything scales by ten and the arithmetic is trivial. It is the standard for science everywhere and the everyday system in the vast majority of countries. Imperial units, however, remain deeply embedded in the United States and in specific trades and traditions worldwide, from aviation altitudes measured in feet to pipe sizes quoted in inches. The practical answer is not to pick a side but to match the unit to your context: use whatever your audience, your tools, or your local standards expect, and convert whenever those contexts meet. That is exactly the gap this tool is built to close.
The metric system (SI)
The metric system, formalized as the International System of Units (SI), is built around the meter and scales by powers of ten. That single idea makes it beautifully easy: to move from meters to kilometers you simply shift the decimal point three places. Every prefix, from kilo down to femto, is just a multiplier.
| Unit | Symbol | Meters | In words |
|---|---|---|---|
| Kilometer | km | 1,000 | one thousand meters |
| Hectometer | hm | 100 | one hundred meters |
| Decameter | dam | 10 | ten meters |
| Meter | m | 1 | base unit |
| Decimeter | dm | 0.1 | one tenth of a meter |
| Centimeter | cm | 0.01 | one hundredth of a meter |
| Millimeter | mm | 0.001 | one thousandth of a meter |
| Micrometer | µm | 0.000001 | one millionth of a meter |
| Nanometer | nm | 0.000000001 | one billionth of a meter |
| Angstrom | Å | 0.0000000001 | one ten-billionth of a meter |
| Picometer | pm | 0.000000000001 | one trillionth of a meter |
| Femtometer | fm | 0.000000000000001 | one quadrillionth of a meter |
The very small units matter more than they first appear. Visible light has wavelengths of roughly 400 to 700 nanometers. The spacing between atoms in a crystal is measured in angstroms. The femtometer, sometimes called a fermi, is the scale of an atomic nucleus. At the other end, the kilometer is the everyday unit of travel across most of the planet.
Imperial and US customary units
Imperial units grew out of centuries of trade and craft, so unlike the metric system they do not scale by a single factor. Instead they are defined by fixed relationships to one another, and today all of them are pinned to the meter by exact definitions, which is why conversions between the two systems can be perfectly precise.
| Unit | Symbol | Meters (exact) | Relationship |
|---|---|---|---|
| Mile | mi | 1609.344 | 1,760 yards / 5,280 feet |
| Furlong | fur | 201.168 | one eighth of a mile |
| Chain | ch | 20.1168 | 66 feet / 22 yards |
| Rod (pole, perch) | rd | 5.0292 | 16.5 feet |
| Yard | yd | 0.9144 | 3 feet |
| Foot | ft | 0.3048 | 12 inches |
| Hand | hh | 0.1016 | 4 inches (used for horses) |
| Inch | in | 0.0254 | base of the small units |
| Mil (thou) | mil | 0.0000254 | one thousandth of an inch |
The inch is the anchor of the small imperial units and is defined as exactly 2.54 centimeters. Machinists work in thou or mils, which are thousandths of an inch, when they need tolerances finer than a fraction. The furlong survives mostly in horse racing, the chain in old land surveys, and the hand in describing the height of horses, a reminder that units carry the history of the trades that created them.
Nautical units
Navigation has its own units because the sea and the sky are measured in angles, not landmarks. The nautical mile is defined as exactly 1,852 meters, chosen because it is close to one minute of latitude along a meridian. That link between distance and angle is what makes it so useful: a navigator can read distance directly off a chart's latitude scale.
| Unit | Symbol | Meters | Notes |
|---|---|---|---|
| Nautical mile | nmi | 1,852 | about one minute of latitude |
| Cable | cb | 185.2 | one tenth of a nautical mile |
| Fathom | ftm | 1.8288 | 6 feet, used for water depth |
Speed at sea is measured in knots, where one knot is one nautical mile per hour. The fathom, six feet, is the traditional unit for sounding the depth of water, which is why old charts and sea stories are full of it.
Astronomical units
Once distances leave the Earth, ordinary units become unwieldy. Astronomers therefore use a small set of very large units scaled to the cosmos itself.
| Unit | Symbol | Meters | Roughly |
|---|---|---|---|
| Astronomical unit | AU | 149,597,870,700 | average Earth-Sun distance |
| Light-year | ly | 9.461 × 1015 | distance light travels in a year |
| Parsec | pc | 3.086 × 1016 | about 3.26 light-years |
The astronomical unit measures our own solar system: Mars is about 1.5 AU from the Sun, Jupiter about 5.2 AU. The light-year is the popular unit for interstellar distance, while professional astronomers usually prefer the parsec, which comes from the geometry of parallax. The nearest star system, Alpha Centauri, is about 1.3 parsecs, or a little over 4 light-years, away.
Conversion formulas and the method behind them
Every length conversion, no matter how exotic the units, follows one simple rule. Convert the starting value into a common base unit, the meter, and then convert from meters into the target unit. In practice the tool combines both steps into a single multiplication:
result = value × (metersPerFromUnit ÷ metersPerToUnit)
Because each unit is stored as its exact size in meters, the ratio is exact and the conversion is as accurate as the numbers themselves allow. Here are the most useful factors written out as direct formulas:
| Conversion | Formula | Reverse |
|---|---|---|
| Kilometers to miles | mi = km × 0.621371 | km = mi × 1.609344 |
| Meters to feet | ft = m × 3.28084 | m = ft × 0.3048 |
| Centimeters to inches | in = cm × 0.393701 | cm = in × 2.54 |
| Meters to yards | yd = m × 1.09361 | m = yd × 0.9144 |
| Kilometers to nautical miles | nmi = km × 0.539957 | km = nmi × 1.852 |
| Miles to nautical miles | nmi = mi × 0.868976 | mi = nmi × 1.150779 |
| Millimeters to inches | in = mm × 0.0393701 | mm = in × 25.4 |
Worked examples
Seeing the method applied makes it stick. Each example below is something you can reproduce in the converter above.
Example 1: A 10 km run in miles
A popular race distance is 10 kilometers. Multiply by 0.621371: 10 × 0.621371 = 6.21371. So a 10 km race is about 6.21 miles. A half marathon of 21.0975 km works out to roughly 13.1 miles, and a full marathon of 42.195 km is the famous 26.2 miles.
Example 2: A person's height in feet and meters
Someone who is 180 centimeters tall is 1.8 meters. Multiply by 3.28084: 1.8 × 3.28084 = 5.90551 feet, which is about 5 feet 11 inches (the 0.90551 of a foot is 0.90551 × 12 ≈ 10.9 inches).
Example 3: A screen measured in inches and centimeters
A 15.6-inch laptop screen measures its diagonal. Multiply by 2.54: 15.6 × 2.54 = 39.624 centimeters. That is the diagonal, not the width, which is why screens look smaller than the headline number suggests.
Example 4: A flight distance in nautical miles
A route of 5,000 kilometers, multiplied by 0.539957, is about 2,700 nautical miles. Pilots and controllers use nautical miles precisely because they line up with degrees of latitude and longitude on the charts they navigate by.
Example 5: The distance to a star
Proxima Centauri is about 4.017 × 1013 kilometers away. Dividing by the kilometers in a light-year, roughly 9.461 × 1012, gives about 4.25 light-years, or close to 1.3 parsecs. Numbers this large are exactly why astronomers invented their own units.
Example 6: A room measured for flooring
A room listed as 12 feet by 15 feet needs converting to meters to order flooring quoted in square meters. Multiply each side by 0.3048: 12 × 0.3048 = 3.6576 meters and 15 × 0.3048 = 4.572 meters. The room is about 3.66 by 4.57 meters, an area of roughly 16.7 square meters, so you would order material to cover that with a margin for cuts and waste.
Example 7: A machining tolerance in mils and micrometers
A drawing calls for a tolerance of 5 mils, that is 5 thousandths of an inch. Multiply by 25.4 to get millimeters: 0.005 × 25.4 = 0.127 millimeters, or 127 micrometers. Expressing the same tolerance in micrometers makes it directly comparable to specifications written in metric units, which is common in precision manufacturing.
Example 8: Ocean depth in fathoms and meters
A chart marks a depth of 20 fathoms. Since one fathom is 1.8288 meters, multiply: 20 × 1.8288 = 36.576 meters, about 120 feet of water. The fathom keeps its place on charts because six feet was historically the span of a sailor's outstretched arms hauling in a sounding line.
Quick reference charts
For values you look up again and again, these charts give an instant answer without any typing.
Kilometers to miles
| Kilometers | Miles |
|---|---|
| 1 km | 0.621 mi |
| 5 km | 3.107 mi |
| 10 km | 6.214 mi |
| 25 km | 15.534 mi |
| 50 km | 31.069 mi |
| 100 km | 62.137 mi |
Miles to kilometers
| Miles | Kilometers |
|---|---|
| 1 mi | 1.609 km |
| 5 mi | 8.047 km |
| 10 mi | 16.093 km |
| 26.2 mi (marathon) | 42.195 km |
| 60 mi | 96.561 km |
| 100 mi | 160.934 km |
Inches to centimeters
| Inches | Centimeters |
|---|---|
| 1 in | 2.54 cm |
| 6 in | 15.24 cm |
| 12 in (1 ft) | 30.48 cm |
| 24 in | 60.96 cm |
| 36 in (1 yd) | 91.44 cm |
Meters to feet
| Meters | Feet |
|---|---|
| 1 m | 3.281 ft |
| 2 m | 6.562 ft |
| 5 m | 16.404 ft |
| 10 m | 32.808 ft |
| 100 m | 328.084 ft |
Popular conversions people search for
Some conversions come up so often, especially around height, travel and screens, that it helps to have them spelled out. Each of these is easy to reproduce in the converter, and many combine a whole-unit and a fractional part.
| Question | Answer |
|---|---|
| How tall is 5 ft 10 in? | 177.8 cm (1.778 m) |
| How tall is 6 ft? | 182.88 cm (1.8288 m) |
| What is 100 meters in feet? | 328.084 ft |
| What is 1 mile in feet? | 5,280 ft |
| What is 5 km in miles? | 3.107 mi |
| What is 1 inch in mm? | 25.4 mm |
| What is 1 chain in meters? | 20.1168 m |
| What is 1 AU in km? | 149,597,870.7 km |
Height is the trickiest of these, because it mixes feet and inches. To convert a height like 5 feet 10 inches, first turn it entirely into inches, 5 × 12 + 10 = 70 inches, then multiply by 2.54 to get 177.8 centimeters. The converter handles the second step for you; the first is just adding the feet and inches together.
Common mistakes to avoid when converting
Most conversion errors are not arithmetic slips but small misunderstandings about the units themselves. A few are worth watching for:
- Confusing statute and nautical miles. They differ by about 15 percent, so mixing them up on a long route produces a real error. Aviation and marine work almost always mean nautical miles.
- Forgetting that a foot is twelve inches, not ten. When you convert a fractional foot back into inches, multiply the decimal part by 12, not 10.
- Comparing a diagonal to a width. Screen and display sizes are diagonals. Converting the number is correct, but do not expect it to match the width or height of the device.
- Rounding too early. If a calculation has several steps, keep full precision until the end and round only the final answer, or small errors can accumulate.
- Mixing area and length. A square meter is not simply a meter converted; areas convert by the square of the length factor, so one square meter is about 10.764 square feet, not 3.281.
Everyday use cases
A length converter earns its place because the same tool answers questions from wildly different corners of life:
- Travel. Read road signs, map distances and speed limits when you cross between metric and imperial countries.
- Fitness. Translate running, cycling and swimming distances between kilometers, miles and meters, and make sense of pace.
- Home and DIY. Convert product dimensions, room sizes and material lengths between the units on the packaging and the ones on your tape measure.
- Construction and engineering. Move between millimeters on a technical drawing and feet and inches on site without arithmetic errors.
- Education. Help students see how the metric ladder works and how imperial units relate to it, with instant feedback.
- Science and manufacturing. Work in micrometers, nanometers and mils for optics, electronics and precision machining.
- Navigation and aviation. Convert between nautical miles, kilometers and statute miles for flight and marine planning.
- Astronomy. Put cosmic distances in perspective by moving between astronomical units, light-years and parsecs.
Accuracy, significant figures and rounding
Precision is only useful when it is honest. The converter computes each result from exact metric definitions, so the underlying math carries far more precision than you will ever need. What you see on screen is then formatted for readability in a few sensible ways.
On the default Auto setting, results are shown to a generous number of significant figures and trailing zeros are trimmed, so 2.540000 appears simply as 2.54. When a number becomes too large or too small to read comfortably, the tool switches to scientific notation, showing a value like a light-year in kilometers as a clean power of ten rather than a wall of digits. If you prefer a fixed layout, choose a specific number of decimals from the precision menu and every result will round to exactly that many places.
Tip: match your precision to your purpose. For a road trip, one decimal place is plenty. For machining or science, keep more figures. The copy button always copies a high-precision, ungrouped number so nothing is lost when you paste it elsewhere.
A short history of measuring length
For most of history, length was measured by the human body. The foot was a foot, the cubit was the forearm, and the yard was said to be the distance from a king's nose to his outstretched thumb. These units were convenient but inconsistent, because no two bodies are the same. Trade across regions demanded something more reliable.
The meter was the answer. Defined during the French Revolution as one ten-millionth of the distance from the equator to the North Pole, it was meant to belong to everyone rather than to any ruler. Over the next two centuries its definition was refined, first tied to a physical platinum bar, then to the wavelength of light, and finally, since 1983, to a constant of nature: the meter is the distance light travels in a vacuum in 1/299,792,458 of a second. That definition can be reproduced in any laboratory on Earth, which is exactly the universality the revolutionaries were reaching for.
The imperial units did not disappear; they were simply redefined in terms of the meter. Since 1959 the international yard has been exactly 0.9144 meters and the inch exactly 2.54 centimeters. This is why conversions between the two systems are not approximations of convenience but exact relationships, and why a good converter can be trusted down to the last figure.
Frequently asked questions
How do I convert kilometers to miles?
Multiply the number of kilometers by 0.621371. For example, 10 km equals 6.21371 miles. To go the other way, multiply miles by 1.609344 to get kilometers.
How many feet are in a meter?
One meter equals approximately 3.28084 feet. Because a foot is defined as exactly 0.3048 meters, you can also divide a length in meters by 0.3048 to convert it to feet.
What is the difference between a mile and a nautical mile?
A statute (land) mile is 1609.344 meters, while a nautical mile is exactly 1852 meters, roughly one minute of latitude. A nautical mile is about 15 percent longer than a land mile, which is why it is used in aviation and marine navigation.
How do I convert inches to centimeters?
Multiply inches by 2.54, since one inch is defined as exactly 2.54 centimeters. For example, 12 inches equals 30.48 centimeters. To convert centimeters to inches, divide by 2.54.
Is the distance converter free to use?
Yes. The Tooliqo distance and length converter is completely free, requires no sign-up, and runs entirely in your browser on any device.
Which units does the converter support?
It supports 27 units: the full metric ladder from femtometer to kilometer, imperial and US units such as inch, foot, yard, mile, furlong, chain, rod, hand and mil, nautical units including nautical mile, cable and fathom, and astronomical units such as the astronomical unit, light-year and parsec.
How accurate are the conversions?
Every conversion is computed from each unit's exact size in meters, so results are precise to many significant figures. Very large or very small numbers are shown in scientific notation, and you can set a fixed number of decimals for cleaner output.
Can I use the converter on my phone?
Yes. The converter is fully responsive, works on phones and tablets, and adapts its layout for small screens. It also supports right-to-left languages such as Arabic.
What is a light-year in kilometers?
One light-year is about 9.461 trillion kilometers (9.461 × 1012 km), the distance light travels in one year in a vacuum. In meters that is roughly 9.461 × 1015 m.
How do I convert yards to meters?
Multiply yards by 0.9144, because one yard is defined as exactly 0.9144 meters. For example, 100 yards equals 91.44 meters. To convert meters to yards, divide by 0.9144 or multiply by about 1.09361.
Start converting
Scroll back to the converter at the top of the page and try it with your own numbers. Because it covers everything from the femtometer to the parsec, in six languages and on any device, it is the only length converter you need to bookmark. For more free, privacy-friendly tools, visit Tooliqo.co.
