Lye, the common name for sodium hydroxide, is a food-grade alkali used to change the texture, color, and flavor of dozens of familiar foods. If you’ve eaten a soft pretzel, a bowl of ramen, a corn tortilla, or an olive, you’ve eaten something processed with lye. The FDA classifies food-grade sodium hydroxide as generally recognized as safe (GRAS) and permits its use as a pH control agent and processing aid with no specific quantity limit beyond standard good manufacturing practice.
That “no limit” language sounds loose, but it works because lye is almost never present in a finished product. It does its job during processing, then gets rinsed away or neutralized by acids. Here’s how it shows up across different foods.
Pretzels and the Brown Crust
The single most recognized use of lye in Western baking is the pretzel dip. Before baking, shaped pretzel dough is briefly dunked in a 3% to 4% sodium hydroxide solution. That quick bath is what separates a true Bavarian-style pretzel from a bread roll shaped like one.
The lye does two things at once. First, it breaks the proteins on the dough’s surface into smaller amino acids. Second, those freed-up amino acids react with the sugars already present in the dough during baking, a process called the Maillard reaction. Every loaf of bread undergoes some version of this reaction to form its crust, but the lye bath supercharges it. The result is that deep mahogany color, the satisfying snap of the crust, and the slightly bitter, savory flavor you can’t replicate with a simple egg wash.
Home bakers sometimes substitute baked baking soda (sodium bicarbonate heated in the oven to convert it to sodium carbonate) for a milder version. Baking soda sits around pH 8, while a lye solution reaches pH 13 to 14. The substitute gets you closer to a pretzel than plain water would, but it can’t match the intensity of a real lye dip.
Ramen Noodles and Kansui
Ramen noodles get their springy chew and pale yellow color from an alkaline solution called kansui, which traditionally contains sodium hydroxide, potassium carbonate, or a blend of both. When kansui is mixed into wheat flour, the alkalinity causes gluten proteins to tighten and converge, giving the noodles a firm, bouncy texture that Japanese noodle makers call “koshi.” Without it, the same flour and water would produce a softer, flatter noodle closer to Italian pasta.
The color change is a bonus. Wheat flour naturally contains flavonoid pigments that are nearly invisible at a neutral pH. When they meet the alkaline kansui, those pigments shift to a pale yellow. No dye is added. That golden tint in your bowl of ramen is just a chemical reaction between the flour’s own pigments and the lye water.
Corn Tortillas and Nixtamalization
Nixtamalization is a process developed thousands of years ago in Mesoamerica. Dried corn kernels are cooked and soaked in an alkaline solution, traditionally using calcium hydroxide (slaked lime), though sodium hydroxide serves the same chemical purpose. The process softens the tough outer hull of the kernel so it can be removed, and it transforms the interior starch into the pliable dough called masa.
The nutritional impact is significant. Raw corn contains niacin (vitamin B3), but in a form the human body can’t absorb well. The alkaline treatment releases that niacin, making it bioavailable. This is why populations that historically ate corn without nixtamalization were vulnerable to pellagra, a niacin deficiency disease, while those using the traditional process were not. The trade-off: the cooking process reduces other vitamins like thiamine and riboflavin by 50% to 70%.
Century Eggs
Century eggs, also called pidan, are a Chinese preserved food made by soaking duck or chicken eggs in a strongly alkaline mixture for weeks. The modern commercial process uses a solution of roughly 4% to 5% sodium hydroxide along with salt and trace metal ions. The eggs sit in this solution for about 25 days, followed by a ripening period of around 14 days.
The alkali penetrates the shell and raises the pH of the egg white to around 11, and the yolk to about 10. At that pH, the proteins in the egg denature and gel without any heat. The white turns into a dark, translucent, firm jelly, while the yolk becomes creamy and takes on a greenish-gray color with a rich, complex flavor. The starting pickling solution reaches pH 12 to 13, but the finished egg is less alkaline than the bath it soaked in.
Lutefisk
Lutefisk is a traditional Nordic dish made from dried whitefish (usually cod) that’s rehydrated using lye. The dried fish soaks in cold water for several days, then spends about five days in a lye-water solution, then goes through another five days of daily fresh-water rinses. By the end of the rinsing period, the lye has been thoroughly flushed out, and the fish has a gelatinous, almost translucent texture that you either love or politely decline at Scandinavian holiday tables.
Olives and Other Produce
Most commercially cured olives, particularly the black “California ripe” variety, are treated with a dilute lye solution to remove bitter compounds called oleuropein from the raw fruit. Fresh olives straight off the tree are essentially inedible due to that bitterness. The lye penetrates the flesh and breaks down those compounds over several soaking cycles, after which the olives are rinsed repeatedly and then cured in brine. Some traditional olive varieties skip the lye and use salt or water curing alone, but those methods take weeks or months longer.
Lye is also used in peeling fruits and vegetables for commercial canning. A brief dip in a hot lye solution loosens the skin of peaches, tomatoes, and potatoes far more efficiently than mechanical peeling. The produce is then rinsed and the skin slides off cleanly.
Safe Handling at Home
Food-grade lye is the same compound as industrial lye, just held to higher purity standards set by the Food Chemicals Codex. It’s a powerful alkali that can burn skin and eyes on contact, so working with it at home requires real precautions. Wear rubber or plastic gloves, eye protection like goggles, long sleeves, and closed-toed shoes.
Always add lye to water, not the other way around. The dissolution generates heat, and adding water to a concentrated pile of lye can cause spattering. Keep a bottle of vinegar nearby. If lye splashes on your work surface, wipe it up immediately with vinegar, which neutralizes the alkali on contact. After you’re finished baking, wipe down all surfaces with vinegar as a final precaution.
In the finished food, lye poses no safety concern. Pretzels bake at high temperatures that neutralize the thin surface coating. Olives and lutefisk go through extensive rinsing. Century eggs reach a stable, much lower pH than their pickling bath. The lye does its work during processing and either washes away, reacts with acids in the food, or breaks down during cooking.

