A milliliter of water weighs about a gram, but most kitchen liquids are heavier or lighter depending on sugar, fat, or protein. Converting ml to g requires the ingredient so density can be applied. Use this page when a recipe gives ml and you want the matching weight.
How to convert ml to grams
Multiply milliliters by the ingredient density in g/ml. Water is ~1 g/ml; oils are lighter per ml; syrups and dairy fall between.