Silky chocolate chip cookie dough bars topped with a rich chocolate are guilt free and utterly delicious. This is the ultimate safe edible cookie dough recipe!

Completely safe to eat cookie dough bars
Eating traditional cookie dough is a no-no, and for good reason. We all knew the risks of eating raw eggs, but did you also know that eating raw flour is just as dangerous? No treat, however delicious, is worth the risk of getting food poisoning, so I had to do some research to figure out a way to make a safe and delicious cookie dough bar. This recipe is a-mazing!
What I love about these edible cookie dough bars:
- They’re no-bake ~ perfect for a spring and summer dessert.
- The edible cookie dough is the best ever, silky doesn’t even begin to describe the texture.
- There are no risky ingredients in the recipe.
- I’m not even a cookie dough fanatic and I’m obsessed with these bars.

raw flour facts
- Flour is a minimally processed agricultural ingredient and not a ready-to-eat product.
- As it grows wheat can come into contact with harmful bacteria like E. coli or Salmonella via animal waste.
- Flour is safe in baked products; the baking temperatures will generally kill any pathogens in the flour.
- But uncooked flour can contain harmful bacteria that can cause illness or worse.
so how do I make safe cookie dough bars??
- No raw eggs in these bars, so no worries there.
- We replace regular flour with commercially heat treated flour ~ it’s been heated to kill any potential pathogens so you can safely eat it raw. It’s not widely available, but if you love cookie dough, it’s worth tracking down. You can buy it here.
- You can also use non-wheat flours like oat flour, or finely ground almond flour, both of which are safe to eat raw. But be aware that using these flours will alter the flavor and texture of your bars.

Where to find heat treated flour
Heat treated flour for edible cookie dough can be hard to find. I think we may start seeing it in supermarkets soon, but for now I suggest buying online, here. These cookie dough bars are so delicious it’s worth the effort to track this flour down (see my heat treated flour buying guide, below the recipe card*)
Remember you can use heat treated (pasteurized) flour just as you do regular flour, so you don’t have to save it for just cookie dough.
It’s not safe to heat treat flour at home
Many cookie dough recipes will tell you that you can heat treat your own flour in the oven or microwave, but this is not safe and the FDA advises against it. Here’s why:
Home heat-treating flour can be unreliable because most ovens don’t heat evenly, making it hard to guarantee all parts of the flour reach the necessary 160°F to kill harmful bacteria like E. coli. Workarounds like stirring during baking help distribute heat, but they still can’t guarantee that every bit of flour reaches and holds 160°F evenly.

how to store edible cookie dough bars
The bars are best kept in the fridge until ready to serve, and best eaten while still chilled. They can also be frozen for up to 3 months.
The texture is like fudge when cold, but will soften as it sits at room temperature and becomes more cookie dough-ish. Both ways are extremely deliciously irresistible.

My grandson said, “These are the best things you’ve ever made, Nonna.” Pretty high praise. But when my husband said the same thing, I knew I really had a winner! ~ROSEMARY

Edible Cookie Dough Bars
Equipment
- 9×9 square baking pan
- parchment paper
Ingredients
- 1/2 cup unsalted butter, at room temperature
- 3/4 cup packed light brown sugar
- 1/4 tsp salt
- 1 tsp vanilla extract
- 2 cups heat treated flour*, buy heat treated flour here.
- 14 ounce sweetened condensed milk
- 10 ounces mini chocolate chips
frosting
- 1 cup semi sweet chocolate chips
- 1 Tbsp neutral oil
Instructions
- Cream the 1/2 cup unsalted butter and 3/4 cup packed light brown sugar and 1/4 tsp salt together until fluffy. I use electric beaters. Just beat it really good so it's light and creamy. Scrape down the sides of the bowl as necessary. Mix in the 1 tsp vanilla extract.
- Blend in the 14 ounce sweetened condensed milk and then the 2 cups heat treated flour*.
- Fold in the 10 ounces mini chocolate chips.
- Spray a 9×9 square baking pan with cooking spray and line it with parchment paper with long ends so you can lift out the bars for easy cutting later. You can skip the paper if you want to cut and serve them right out of the pan.
- Turn the dough out into the pan and pat down evenly with your hands. You may want to flour your hands as the dough is sticky. Smooth it out evenly, I used an offset spatula to finish the job.
- Cover and refrigerate until firm, (about 2-3 hours.) The texture will be similar to a fudge.
- To make the chocolate topping, put the 1 cup semi sweet chocolate chips and 1 Tbsp neutral oil in a microwave safe bowl or measuring cup and microwave for 45 seconds. Stir until all the chocolate is completely melted.
- Let the chocolate cool for about 5 minutes, and then pour onto the dough. Spread out evenly. Allow the chocolate to set up before slicing. Cut into 16 squares.
- Keep the bars in the refrigerator until ready to eat.
Notes
Nutrition
*Heat treated flour buying guide
- DŌ, Cookie Dough Confections
- Offers heat-treated flour in various sizes, perfect for baking and edible doughs.
- Available for pre-order on their website.
- Honeyville’s Page House
- Provides consumer-packaged heat-treated flour, ensuring safety for raw consumption.
- Available through the Honeyville website.
- Amazon
- Search for heat-treated flour on Amazon
- Ensure the product description specifies “heat-treated” or “safe for raw consumption.”
- Local Sources
- Check your local bakery supply shops ~ if they don’t carry it, request it!



















This looks great! I plan on making them tonight. Would it be okay to leave in the fridge overnight for 2 days? I need to make them in advance as I do not have the time with my busy schedule!
Thanks!
Sure Jessica, that would be fine.
These are awesome. After reading some of the reviews I made the following changes with the intention of making a double batch: I doubled everything except the condensed milk, brown sugar, and chips. I used one cup of brown sugar and one can of condensed milk, scraping out the can into the mixer, and 3/4 the bag of chips. I think I will drizzle the melted chocolate chips instead of spreading a layer. Love your website!
Thanks for that info ScienceDork, and I’m so glad you like these!
i made these yesterday and my DH loved them! I found them a little sweet and very rich, so next time I will cut down on the brown sugar and cut the chocolate down to 18 oz and split it between the base and topping. I also froze half of the squares for a later date! Kudos on a great find
Thanks so much Patti — I find them rich, too, I could only eat a little bit at a time 🙂
HI! I Was wondering if these can be frozen? I’m making some squares for my sisters wedding and these look delicious but I wanted to make them ahead of time!
I think this would freeze well, Anna.
Anyone ever try making these with stevia and at least part whole wheat flour? This sounds scrumptious, but diabetics need no white flour or sugar.
I haven’t tried that, but remember that the sweetened condensed milk also contains sugar, so that would also need to be changed.
This is obviously something diabetics shouldn’t eat then.
YUM!! Who doesn’t LOVE cookie dough?
Nobody I know 😉
Cookie dough is the best part of making cookies! These look so amazing!
These were really very, very good. The only thing different that I did was put 1/2 of the bag of mini chocolate chips in the mix and then melted the other half to put on the top. Being so sweet already I didn’t think we needed that much chocolate on top. I made these for my son who loves cookie dough and he said next time, don’t even put the chocolate on top. To each his own I guess. But, thank you – it’s a great recipe and I’ll be making it again.
thanks for the feedback Barbara ~ I liked it so much I’ve done a few variations already!
It would be ideal if your recipe didn’t call for using a microwave (I don’t have one), but I’ll just do it the old-fashioned way and melt my chocolate in a double-boiler.
Oh of course, Sandra, you can melt your chocolate however you like, and hope you enjoy the bars!
what brand of chocolate chip cookies did u use as topping? it has a very nice sheen as if it has been tempered
I usually use Nestle semi sweet or their dark chocolate chips and I’m always happy with the results, Priti. I’m pretty sure I used the dark chips here.
I get Hershey;s over here and they’re terrible. it hardens too fast before I can temper it…but I will look for Nestle’s at Spinneys!