# Recipe Scaler > Scale any recipe to the servings you need. Paste a recipe or drop a text file, pick the servings, switch between cups and grams, see what to use if you are out of an ingredient, and copy the scaled recipe or a shopping list grouped by aisle. Free, no sign-up, nothing uploaded. URL: https://recipe-scaler.skillsafe.ai/ ## What it does - Reads a pasted recipe: the title, a yield line ("Serves 4", "Servings: 6", "Makes 24 cookies", "Makes 1 loaf"), ingredient lines and steps. Headings such as Ingredients, Instructions, Directions and Method split the list from the steps; without headings, lines that start with an amount or a bullet are ingredients and numbered lines are steps. "For the frosting:" style sub-headings group ingredients. - Scales the amount at the start of every ingredient line by servings wanted / servings written: whole numbers, mixed numbers (1 1/2), fractions (1/2 and the single-character fractions), decimals and ranges (2-3 cloves), plus an amount in brackets right after it ("1 cup (2 sticks) butter"). Cups, spoons and counted amounts are rounded to the nearest 1/8 and written as kitchen fractions; grams and millilitres keep decimals (whole from 10, nearest 5 from 100, one decimal from 1, two below 1). Counted foods follow the new amount ("1 egg", "3 onions"). A line with no amount ("salt to taste") is kept as written. - Units: "As written", "Grams and ml" or "Cups and spoons". To metric: a cup of flour 120 g, granulated sugar 200 g, brown sugar 220 g, powdered sugar 120 g, cocoa 85 g, butter 227 g, rice 185 g, oats 90 g, chocolate chips 170 g, cheese 113 g and more; spoons of those foods in grams too (a tablespoon is 1/16 cup); anything else 240 ml a cup, 15 ml a tablespoon, 5 ml a teaspoon; 454 g a pound, 28 g an ounce, 30 ml a fluid ounce, 113 g a stick of butter. To US: from 180 ml cups, from 12 ml tablespoons, else teaspoons; grams of a listed food become cups (tablespoons under a quarter cup), other grams ounces, or pounds from 300 g; rounded to the nearest quarter. Oven temperatures in the steps: Fahrenheit to Celsius rounded to the nearest 5, Celsius to Fahrenheit. - Swaps: each ingredient with an entry in the substitution table shows what to use instead and the ratio, such as milk + lemon juice for buttermilk (1 cup = 1 cup milk + 1 Tbsp lemon juice), flax egg for an egg, tamari for soy sauce, vegetable broth for chicken broth. 40 swaps for 30 foods. - Shopping list: the scaled ingredients grouped by aisle (Produce, Meat, Seafood, Dairy, Pantry/Grains, Condiments/Spices, Other), the same food in the same unit added together; tick what you have to leave it off. - Exports: copy the scaled recipe as text; Markdown recipe (ingredients, steps, swaps, notes); shopping list as text with checkboxes or as CSV (aisle, item, have_it). - Notes it adds: when no serving count is found (read as 4), that pan sizes and times are not scaled, amounts under 1/16, and part of an egg. ## Optional AI step (sign-in, metered) "Adapt it with AI" takes a note in the visitor's words ("dairy-free", "vegan", "we are out of eggs"). The model (llm-default) answers in ids only: food groups to leave out (dairy, egg, gluten, meat, fish, alcohol, sugar, nuts), lines the visitor does not have, and for each line that has to change one swap from that line's own options in the table, or none. The page checks every id: a group must be asked for in the note (or implied by vegan, vegetarian or pescatarian), a missing line must be named in the note, every line that has to change gets exactly one swap, a swap must be that line's own option, must not contain a group being left out, and must suit baking or cooking. Only the ingredient lines and the note are sent, and only when the button is pressed. See /api.html. Input: {"task": "adapt", "facts": "", "need": ""} Reply: {"avoid": ["dairy"], "missing": ["L6"], "swaps": [{"line": "L6", "use": "S1"}]} ## Sources - Adapted from the agent skill @mvanhorn/pp-recipe-goat (https://skillsafe.ai/skill/@mvanhorn/pp-recipe-goat), from mvanhorn/printing-press-library, Apache-2.0, created by Trevin Chow: scaling.go (quantity forms, nearest-1/8 rounding), units.go (unit factors, grams per cup for flour, sugar, powdered sugar, cocoa and butter, metric precision, nearest-1/4 US fractions, temperature conversion), grams.go (more grams per cup), subs.go (the substitution table and whole-word matching) and meal_plan_cmd.go (aisle groups). The recipe-site search, USDA nutrition and local cookbook commands of the source need a command-line tool and are not part of this page. - This page's own: reading a pasted recipe, ranges and bracketed amounts, capital T as tablespoon, spoons and grams of solids, kg and litres, count words, singular and plural matching, the exclusions that keep peanut butter from being butter and almond flour from being wheat flour, extra aisle words, adding up the shopping list, the food groups and the AI checks. ## Pages - https://recipe-scaler.skillsafe.ai/ - the tool - https://recipe-scaler.skillsafe.ai/api.html - API for the AI step, in cURL, Python, JavaScript, Go, Java, Ruby, PHP and C#