Unit Converter
Convert between common units of length, mass, volume, and temperature. Pick a category, type a value, see it converted instantly.
Unit converter
How it works
All non-temperature units convert through a common base unit (meters for length, kilograms for mass, liters for volume). Multiplication by the source's "to-base" factor gives the value in base units; dividing by the target's "to-base" gives the final result. This keeps the math symmetric and rounding-stable no matter which two units you pick.
Temperature is special
Temperatures don't scale linearly because their zero points differ (Celsius starts at the freezing point of water, Fahrenheit at a brine mixture, Kelvin at absolute zero). The converter routes every input through Celsius first:
then applies the inverse to land in your target unit.
Units covered
- Length — m, cm, km, mi, ft, in
- Mass — kg, g, lb, oz
- Volume — L, mL, US gallons, US cups
- Temperature — °C, °F, K
More categories (area, speed, energy, data) are on the roadmap. For one-off niche conversions, the unit definitions live in src/engines/v1/units.js — add a row and it appears in the dropdown.
Frequently asked
Why US gallons / cups specifically?
US and imperial gallons differ (3.785L vs 4.546L), as do US and imperial cups. The defaults here are US — the more common ask. Switching to imperial is a one-line addition; happy to wire it up.
Why no inches-to-cm rounded?
The conversion factor for inches-to-meters is exactly 0.0254, but most everyday "1 inch ≈ 2.54 cm" rounding loses fractions of a millimeter on long measurements. We use the exact value.