How the Cooking Unit Converter Works
AnyTool Cooking Unit Converter performs every calculation in the browser using two physical bases — millilitres for volume and grams for weight. Volume units (cups, tablespoons, teaspoons, fluid ounces, millilitres, litres, pints, quarts, gallons and the 250 mL metric cup) each carry an exact factor to millilitres, and weight units (grams, kilograms, ounces, pounds) carry an exact factor to grams, so volume↔volume and weight↔weight conversions are pure and ingredient-free. To cross between the bases — converting cups to grams, for example — the converter multiplies by the selected ingredient’s density in grams per millilitre, derived from published grams-per-cup figures (one US cup is 236.5882365 mL).
- Ten volume units and four weight units in one model
- Millilitre and gram bases; each unit is one exact factor
- Volume↔weight uses ingredient density (grams per millilitre)
- Editing the value updates the result live; swap reverses the units
- All arithmetic is client-side JavaScript — no server round-trip
