How to convert a distance
Enter one number, choose its input unit and the output unit, then run the converter. Use a decimal point, without a thousands separator or unit suffix: enter 1.5, not 1,500 or 1.5 km. The default converts metres to kilometres.
Example: miles to kilometres
Choose miles as the input unit and kilometres as the output unit. An input of 1 gives 1.609344. For the reverse conversion, swap the two units. The calculation uses decimal arithmetic; recurring decimals may be rounded.
Unit definitions and approximate comparisons
One inch is 0.0254 m and one mile is 1609.344 m. Vehicle lengths, sports fields and Earth–Moon distances are fixed comparisons, not measurements. The inherited Chef maritime definitions use 1.853184 m per fathom, 185.3184 m per cable and 1853.184 m per nautical mile; these differ from the modern international definitions. For an international nautical mile, convert 1852 metres instead.
Example
Use “Try example” to load this public sample and its settings, then run it.
Settings used in this example
| Parameter | Example value | Input and choices |
|---|---|---|
| Input units | Miles (mi) | The unit of the number you enter. For example, choose Miles (mi) for a distance measured in miles.26 Available choices
|
| Output units | Kilometres (km) | The unit you want in the result. The result contains a number without a unit suffix.26 Available choices
|
Input
1
Result
1.609344
Parameters
| Parameter | Default value | Input and choices |
|---|---|---|
| Input units | Metres (m) | The unit of the number you enter. For example, choose Miles (mi) for a distance measured in miles.26 Available choices
|
| Output units | Kilometres (km) | The unit you want in the result. The result contains a number without a unit suffix.26 Available choices
|
How to use this page
- Paste your input or open a local file.
- Adjust tool options if needed, then choose Run tool.
- Copy the result or download the original output bytes.
Inputs and results are not added to the public catalogue or saved in the URL. Processing happens in your browser; HTTP Request and DNS over HTTPS send the requests you explicitly run. Files up to 128 MiB can be opened; decompression and image tools may have smaller processing limits. Large results have a shortened preview. Text and HTML downloads use UTF-8; binary downloads preserve output bytes. Pasted text follows browser newline handling; open a file when exact input bytes matter.