Grocery list generator from recipes

Writing the shopping list for a week of meals means adding up the same ingredient from four recipes in four different units: a cup of milk here, three tablespoons there, half a pound of cheese in one and 200 g in another, and a recipe for 4 when you cook for 2. Paste the ingredient list of each meal you plan, say how many servings you need, and this page scales every quantity, merges the same ingredient across recipes, leaves out the staples you already keep and sorts what is left by aisle.

First visit: the page shows three example recipes. Press "Clear everything" and paste your own, one ingredient per line, as written in the recipe.

Your meals

Nothing is sent anywhere: the page runs in your browser and keeps your recipes in this browser only.

How it works

Reading a line: the page takes the quantity at the start (2, 1.5, 1/2, 1 1/2, ½), then a unit if there is one (cup, tbsp, tsp, fl oz, ml, l, g, kg, oz, lb, and count words such as clove, can, slice, bunch), and the rest is the ingredient. Anything after a comma or in brackets is ignored for matching, so "1 onion, diced" and "2 onions (large)" become the same item. A line with no quantity ("salt and pepper to taste") is listed once, with no amount.

Scaling: each quantity is multiplied by servings needed / servings the recipe makes. A recipe for 4 cooked twice for 2 people is 4 servings needed, factor 1.

Merging: volumes are added in teaspoons (1 tbsp = 3 tsp, 1 cup = 48 tsp, 1 fl oz = 6 tsp, 1 ml = 0.2029 tsp) and weights in grams (1 oz = 28.35 g, 1 lb = 453.6 g), then shown in the largest unit that keeps a readable number. The page does not convert between volume and weight: that depends on the ingredient (a cup of flour and a cup of sugar do not weigh the same), so an ingredient given in cups in one recipe and in grams in another gets two lines and a tag. Count items (eggs, cans, cloves) are added as they are, and the total is rounded up to a whole one.

Aisles come from a word list (onion goes to produce, cheddar to dairy). Anything it does not know goes to "Other": check that group before you leave.

Prefer to plan on paper? The printable weekly meal planner with grocery list has a seven-day planner (breakfast, lunch, dinner, snacks) next to a grocery list split by store section with a pantry check row, a bank of 40 favourite meals, a full-page grocery list and a leftovers and freezer log (4 pages, US Letter and A4).