Allergen Detector - Scan Ingredients for Food Allergens Instantly
Paste food ingredients to instantly detect all 14 major allergens (EU 1169/2011). Identifies gluten, nuts, dairy, soy, and more with risk levels.
Paste an ingredient list above and click Scan for Allergens to analyze.
About
Misidentifying an allergen in a food label kills approximately 150 people annually in the US alone and hospitalizes thousands more. EU Regulation 1169/2011 mandates declaration of 14 major allergen groups, yet ingredient lists use inconsistent terminology. Casein is milk. Semolina is wheat. Lecithin is often soy. This tool parses raw ingredient text against a database of 400+ allergen keywords mapped to all 14 regulatory categories. It performs multi-pass token matching: exact, substring, and compound-word decomposition. It flags cross-contamination phrases ("may contain", "traces of") separately from confirmed ingredients. The tool approximates label-reading accuracy assuming English-language ingredient lists. It does not replace medical advice or account for undeclared allergens from manufacturing cross-contact.
Formulas
The detection algorithm operates on tokenized ingredient text. Each ingredient string I is decomposed into a set of normalized tokens:
where normalize applies lowercasing, unicode folding, and whitespace compression. Each token t โ T is matched against a keyword dictionary D containing 400+ entries mapped to 14 allergen categories C:
Cross-contamination risk is detected separately by scanning for precautionary phrases P ("may contain", "traces of", "processed in a facility") before applying allergen keyword matching to the phrase context. The final output is a union of confirmed allergens Aconfirmed and possible allergens Apossible:
where Aconfirmed โฉ Apossible resolves in favor of confirmed status. Variables: I = raw ingredient input string, T = token set, D = allergen keyword dictionary, C = set of 14 allergen categories, k = keyword entry, P = precautionary phrase set.
Reference Data
| Allergen Category | Common Label Names | EU Code | Prevalence (% of food allergies) | Anaphylaxis Risk |
|---|---|---|---|---|
| Cereals containing Gluten | Wheat, Rye, Barley, Oats, Spelt, Kamut, Semolina, Durum, Couscous, Bulgur, Farro, Triticale | 1 | ~1% (celiac) | Low |
| Crustaceans | Shrimp, Prawn, Crab, Lobster, Crayfish, Langoustine, Scampi | 2 | ~2% | High |
| Eggs | Egg, Albumin, Globulin, Lysozyme, Mayonnaise, Meringue, Ovalbumin, Ovomucin | 3 | ~9% | Moderate |
| Fish | Cod, Salmon, Tuna, Anchovy, Bass, Sardine, Fish sauce, Fish oil, Surimi, Worcestershire | 4 | ~4% | High |
| Peanuts | Peanut, Groundnut, Arachis oil, Monkey nut, Beer nut | 5 | ~6% | Very High |
| Soybeans | Soy, Soya, Soy lecithin, Tofu, Tempeh, Miso, Edamame, Soy sauce, Soybean oil | 6 | ~5% | Moderate |
| Milk | Milk, Butter, Cheese, Cream, Casein, Caseinate, Whey, Lactose, Lactalbumin, Ghee, Yogurt, Curds | 7 | ~12% | Moderate |
| Tree Nuts | Almond, Hazelnut, Walnut, Cashew, Pecan, Pistachio, Macadamia, Brazil nut, Chestnut, Pine nut, Praline, Marzipan, Nougat | 8 | ~8% | Very High |
| Celery | Celery, Celeriac, Celery salt, Celery seed | 9 | ~1% | Moderate |
| Mustard | Mustard, Mustard seed, Mustard powder, Mustard oil, Mustard flour | 10 | ~1% | Moderate |
| Sesame | Sesame, Sesame seed, Sesame oil, Tahini, Halvah | 11 | ~2% | High |
| Sulphur dioxide / Sulphites | Sulphites, Sulfites, Sulphur dioxide, SOโ, E220-E228, Metabisulphite, Bisulphite (> 10 mg/kg) | 12 | ~1% (asthmatics) | Low |
| Lupin | Lupin, Lupine, Lupin flour, Lupin seed, Lupin protein | 13 | <1% | High |
| Molluscs | Mussel, Clam, Oyster, Squid, Octopus, Snail, Scallop, Calamari, Abalone | 14 | ~1% | High |
| Prevalence figures are approximate population-level estimates from FARE and EAACI data. | ||||