Unit Converter
Convert between metric and imperial units across 13 categories. Type a value and every result updates instantly. Nothing is uploaded.
Result:
All units
13 categories
Length, mass, temperature, volume, area, speed, time, pressure, energy, power, angle, fuel economy and frequency.
Exact definitions
Factors come from official definitions such as 1 inch = 0.0254 m and 1 lb = 0.45359237 kg, so results stay precise.
All units at once
See the value in every unit of the category, choose the precision and swap units with one click.
>> technical info
How Unit Conversion Works:
Each unit is defined by a factor to a base unit, such as the metre for length. Converting multiplies the value by the source factor and divides by the target factor. Temperature scales have offsets, so °C to °F uses °F = °C × 9/5 + 32. Fuel economy is inverse: L/100km is 100 divided by km/L, so lower L/100km means higher mpg.
Example:
1 mi = 1.609344 km 0 °C = 32 °F = 273.15 K 30 mpg (US) = 7.8405 L/100km
Why Use This Converter:
- >Metric, US and imperial units side by side
- >Precise factors from official definitions
- >Handles decimal commas and thousands separators
- >Private: nothing leaves your browser
>> frequently asked questions
Q: How do I convert Fahrenheit to Celsius?
A: Subtract 32 and multiply by 5/9. For example 212 °F is (212 − 32) × 5/9 = 100 °C.
Q: Why is fuel economy converted differently?
A: mpg measures distance per volume while L/100km measures volume per distance, so one is the inverse of the other.
Q: Are US and UK gallons different?
A: Yes. A US gallon is 3.785411784 L and an imperial (UK) gallon is 4.54609 L, so mpg differs between the two.
Q: Can I type numbers with a decimal comma?
A: Yes. Inputs such as 1,5, 1.234,5 and 1,234.5 are understood, as well as scientific notation like 1.5e-3.
Q: Is my data uploaded?
A: No. Everything runs locally in your browser.
Length and weight conversion examples
Use Length for inches to centimeters or feet to meters. Use Weight / Mass for pounds to kilograms. Select a category, enter the value and choose the source and target units. For storage sizes such as KB or MB, use Byte Converter instead.
Other Languages
References
How we make sure
We check this tool with the automated test suites linked below. Example checks are shown in their original language.
- Verification method
- Check known conversions across unit categories, plus unit IDs and bounds.
- Comparison reference
- Explicit unit definitions and fixed expected fixtures.
- Verification scope
- These samples and boundaries do not prove correctness for every input.
Test source and cases (select a file to read it)
-
unit-converter.test.js
- all expected categories exist with unique unit ids
- length known answers
These checks cover the listed examples and boundaries, not every possible input. Round trips and checks using the same library are not independent verification.