Unit Converter

Unit Converter

Your data stays in this browser and is never sent to a server.

Settings may be saved only in this browser.

Practical guide

Basic Length and Mass Converter

Use this converter for a quick check between the supported length units or between the supported mass units. Enter a number, source unit code, and target unit code separated by commas.

How to use it

  1. Enter value, from, to, such as 1, km, mi.
  2. Use m, km, ft, or mi for length; use kg, g, or lb for mass.
  3. Select Run and review the locale-formatted numeric result.

Worked example

Input
1, km, mi
Result
Approximately 0.621371192237334

How the result is produced

The tool converts the source value to an internal base factor, then divides by the target factor. Metre-based factors are used for length and kilogram-based factors for mass.

Calculation uses JavaScript floating-point numbers and the result is formatted with the current locale.

Important limits

  • The interface does not prevent mixing dimensions, so do not convert a length unit to a mass unit.
  • Temperature, area, volume, speed, currency, and compound units are not supported.
  • Floating-point output can contain more digits than are meaningful for the original measurement.

Questions and answers

Which unit codes are accepted?

m, km, ft, mi, kg, g, and lb, written in lowercase.

Why are there many decimal places?

The tool shows the browser’s numeric conversion rather than choosing a measurement-specific significant-figure rule. Round for your use case.