Unit converter
calc_unit_convertConvert values between units in 14 categories, including length, mass, temperature, data, fuel economy, and cooking, by supplying a value and units or a query like '5 km to mi'.
Instructions
Convert between units in 14 categories, the same table as the website: length, mass, temperature, volume, area (incl. dunam), speed, time, data (kB/MB vs KiB/MiB, bits), pressure, energy, power, angle, fuel economy (L/100km, km/L, mpg US/UK) and cooking (tsp, tbsp, cups, metric spoons). Give value + from + to (symbols like "km", "°F", "GiB" or names like "miles"; ASCII forms like "m2", "um" work), or a query like "5 km to mi". Set all=true for the value in every unit of the category, or list=true to see every category and unit. Web version: https://s3eidat.github.io/unit-convert/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Unit to convert to (symbol or name). Optional when all=true. | |
| all | No | Also return the value in every unit of the category. | |
| from | No | Unit to convert from (symbol or name). | |
| list | No | Just list every category and its units. | |
| query | No | A whole question, e.g. "5 km to mi" or "72 f in c". | |
| value | No | The number to convert. | |
| category | No | Category, to pick the right unit when a symbol exists in two (e.g. "pt" in volume and cooking). |