Learn the simple trick that makes edible cookie dough safe to eat — and it's not just leaving out the eggs.

We've all done it — sneaked a taste of raw cookie dough before we pop it into the oven. And who hasn't snacked on cookie dough while binging that show you love? (I know that can't just be me).

But every time we do that, we're risking our health due to food-borne illness caused by harmful bacteria contained in raw, unbaked cookie dough.

How to Make Edible Cookie Dough Safe to Eat

So, how do you have your cookie dough and eat it too? Well, you might think the way to make edible cookie dough safe to eat is to simply leave out the eggs. But raw eggs are not the only problem.

Raw flour itself can contain E. coli contamination, and can be just as damaging to your health as raw eggs that contain salmonella bacteria.

The solution? Kill the bacteria in the raw flour by heating it to at least 160 degrees F to pasteurize the flour. You can quickly and easily pasteurize raw flour using one of these simple methods:

How to Pasteurize Raw Flour

Credit: Meredith

1. Microwave the flour for 1 minute and 15 seconds, stirring it every 15 seconds.


2. Bake the flour spread out on a baking sheet and toasted in an oven at 350 degrees F for 5 minutes.

Edible Cookie Dough Recipe

cookie dough
Credit: Meredith

Now your flour is safe to use in your favorite edible cookie dough recipe! We'll be following this recipe from Allrecipes community member Kala McKay. Just be sure to heat-treat your flour first.


  • ½ cup butter
  • 1 teaspoon vanilla extract
  • ½ teaspoon salt
  • 1 cup all-purpose flour, heat treated
  • 2 tablespoons milk
  • ½ cup milk chocolate chips
  • ½ cup mini chocolate chips


  1. Combine brown sugar and butter in a large bowl; beat with an electric mixer until creamy.
  2. Beat in vanilla extract and salt. 
  3. Add flour; mix until a crumbly dough forms. Mix in milk. 
  4. Fold in milk chocolate chips and mini chocolate chips.