Unit converter
Client-side only. Conversion math runs in this tab. Nothing is uploaded.
Result appears here
Length factors (to and from meters)
Every length pair goes through meters as the base. Exact SI definitions for the imperial set (1 in = 0.0254 m). Handy reference for common one-way factors:
| From | To | Multiply by |
|---|---|---|
| 1 km | mi | 0.6213711922 |
| 1 mi | km | 1.609344 |
| 1 m | ft | 3.280839895 |
| 1 ft | m | 0.3048 |
| 1 in | cm | 2.54 |
| 1 yd | m | 0.9144 |
| 1 cm | mm | 10 |
Weight works the same way through grams (1 lb = 453.59237 g exact avoirdupois; 1 oz = 28.349523125 g; ton here means the metric tonne = 1,000 kg).
Temperature is not a single factor
Celsius, Fahrenheit, and Kelvin share a scale size between C and K (1 degree), but their zeros differ. Fahrenheit also uses a different degree size (9/5). This tool converts by going to Kelvin first, then out:
- C to K:
K = C + 273.15 - F to K:
K = (F - 32) * 5/9 + 273.15 - K to C:
C = K - 273.15 - K to F:
F = (K - 273.15) * 9/5 + 32
Worked example: 100 °C to K = 373.15 to °F = 212. Boiling water at sea level is the usual sanity check. Absolute zero is 0 K (-273.15 °C / -459.67 °F). Values below 0 K are rejected.
What the tool rounds to
Length and weight results use up to 10 significant figures, then drop trailing zeros so 2.540000000 becomes 2.54. Temperature allows up to 6 decimal places when the fraction is messy, then trims the same way. Same-unit converts stay identical to the input. Status shows the pair you just ran so you can spot a swapped from/to quickly.
What this page will not convert
- No currency or live exchange rates.
- No cooking volume (cups, tablespoons) or density-based mass to volume.
- No historical units (cubits, stones as a separate path) or US survey feet.
- No short ton vs long ton. The weight "ton" here is the metric tonne only.
- No area, volume, speed, or pressure. Stick to length, mass, and temperature.
FAQ
Which unit categories does this converter support?
Length (mm, cm, m, km, in, ft, yd, mi), weight (mg, g, kg, oz, lb, metric tonne), and temperature (Celsius, Fahrenheit, Kelvin). Pick a category, then the from and to units.
Why is temperature different from length and weight?
Length and weight use a single scale factor through a base unit. Temperature scales have different zero points, so the tool converts through Kelvin (absolute) rather than multiplying by one factor alone.
Are my numbers uploaded?
No. All math runs in JavaScript in this tab. ToolPetal has no server step for unit conversion.
How precise is the result?
Length and weight show up to 10 significant figures (trailing zeros trimmed). Temperature shows up to 6 decimal places when needed, then trims trailing zeros. Exact identities (same unit) stay exact.