
Edible Cookie Dough Bars
Edible cookie dough bars are exactly what they sound like — chocolate chip and M&M cookie dough you can actually eat raw, pressed into a pan, topped with a peanut butter chocolate ganache, chilled until firm, and cut into bite-size squares. No baking.
No raw eggs. Just safe, eat-by-the-spoonful cookie dough in dessert bar form.
The trick to making cookie dough safe to eat raw is heat-treating the flour. Raw flour can carry bacteria — but a quick microwave or a few minutes in the oven kills off any pathogens.
The dough itself uses no eggs, so once the flour is treated, the whole thing is safe to eat in any quantity.
And these bars are rich. An 8×8 dish makes 30 to 40 bite-size pieces, and most people are good with two or three.
Pile a few onto a dessert tray, take some to a party, freeze the rest. They keep beautifully and they always disappear.

Ingredient Breakdown
Unsalted butter (1 cup, softened)
Two sticks, softened to room temperature. This matters — cold butter won’t cream properly and you’ll end up with a lumpy dough.
Softened means it gives slightly when you press it but isn’t melted or greasy. If you forgot to set it out, cut the sticks into tablespoon pieces and give them 20 minutes on the counter.
Brown sugar (1 cup, packed)
Light brown sugar. The molasses in brown sugar is what makes cookie dough taste like cookie dough — don’t substitute white sugar or you’ll lose that distinctive flavor.
Packed means push it down firmly into the measuring cup.
Pure vanilla extract (2 tsp.)
Real vanilla, not imitation.
Vanilla is prominent in cookie dough and the cheap stuff shows. Two teaspoons is the right amount — don’t cut it down.
All-purpose flour (2.5 cups, heat-treated)
Heat-treating is not optional. Raw flour can carry E.
coli. Microwave it for 1 minute and 15 seconds, stirring every 15 seconds, or spread on a sheet pan and bake at 350°F for 5 minutes.
The flour needs to reach 160°F. Let it cool completely before adding to the dough — warm flour melts the butter and ruins the texture.
Sweetened condensed milk (1 can, 14 oz.)
One standard can — NOT evaporated milk.
They look identical on the shelf and they are not the same thing. Eagle Brand is the standard.
Use it as-is, straight from the can. This replaces the eggs and adds the moisture that holds the dough together.
Mini chocolate chips (1 cup) and mini M&Ms (1 cup)
Mini sizes distribute better in an 8×8 pan and give you more mix-ins per bite. Full-size works if that’s what you have — the recipe is the same, just fewer pieces per slice.
Smooth peanut butter (1/2 cup) and chocolate chips (1/2 cup) for the topping
Regular Jif or Skippy for the peanut butter — natural peanut butter doesn’t melt as smoothly with the chocolate. The topping is what turns this from a slab of cookie dough into actual bars.
Don’t skip it.

How to Make Edible Cookie Dough Bars
Step 1: Heat-treat the flour. Spread 2.5 cups of flour in a microwave-safe bowl.
Microwave on high for 1 minute and 15 seconds total, stirring every 15 seconds. The flour will feel slightly warm and smell faintly toasty when it’s done.
Let it cool completely before using — adding warm flour to the butter mixture melts the fat and makes the dough greasy.
Step 2: Prepare the pan. Line an 8×8 inch baking pan with parchment paper, leaving overhang on two sides.
You’ll use this to lift the whole slab out before cutting. Set aside.
Step 3: Cream butter and sugar. Beat the softened butter and brown sugar together for 2 to 3 minutes until fluffy and pale.
Add the vanilla and beat to combine. If the butter was properly softened, the mixture will look light and creamy.
If it looks greasy or separated, the butter was too warm.
Step 4: Mix in flour and condensed milk. Alternate adding the cooled flour and the sweetened condensed milk, mixing on low.
Add about a third of the flour, then half the condensed milk, then another third of the flour, then the remaining condensed milk, then the last of the flour. Stir until smooth.
The dough should hold together when you press a piece between your fingers — soft but not sticky.
Step 5: Fold in the chips and M&Ms. Use a spatula to fold in the mini chocolate chips and mini M&Ms until evenly distributed.
Step 6: Press into the pan. Transfer the dough to the pan and press firmly into an even layer.
Use a flat-bottomed glass or measuring cup to compress it all the way to the corners and edges. The dough needs to be compact or it won’t slice cleanly later.
Step 7: Chill the dough layer. Cover and refrigerate for at least 3 hours, until firm.
Don’t rush this step. The dough needs to be fully chilled and set before you add the hot topping, or the topping will sink in and mix with the dough.
Step 8: Make and apply the topping. Combine the peanut butter and chocolate chips in a microwave-safe bowl.
Microwave in 30-second bursts, stirring after each, until smooth. Pour over the chilled cookie dough and spread evenly.
The topping will be warm — work quickly and don’t overwork it or you’ll pull up the dough underneath.
Step 9: Final chill and slice. Refrigerate for at least 1 more hour until the topping is fully set.
Lift the slab out using the parchment overhang and place on a cutting board. Slice into squares with a sharp knife, wiping the blade between cuts for clean edges.
Serve cold or at room temperature.
Storage and Make-Ahead Tips
Store in an airtight container in the fridge for up to 1 week. These freeze beautifully for up to 3 months — layer between parchment in a freezer-safe container and eat straight from the freezer or thaw an hour in the fridge.
Make ahead up to 4 days for parties.
Frequently Asked Questions
Why do I need to heat-treat the flour?
Raw flour can carry E. coli and other bacteria.
It’s not a theoretical risk — the CDC has issued recalls and warnings specifically about raw flour. The microwave method takes 90 seconds.
It’s worth doing every time.
Can I skip the heat-treatment step?
You can, but I wouldn’t. The risk of flour-borne illness is small but real, and 90 seconds in the microwave eliminates it.
If you’re making this for kids or for a party where you don’t know everyone’s health situation, don’t skip it.
Can I add eggs?
Don’t. Raw eggs are the bigger risk in traditional raw cookie dough.
The sweetened condensed milk is the binder here and it does the job well without any eggs needed.
Can I use regular-size chocolate chips and M&Ms?
Yes — they just don’t distribute as evenly in small pieces. In the small bite-size squares you might get a bite that’s mostly dough and a bite that’s mostly chocolate.
For a 9×13 doubling the recipe, full-size works perfectly.
What if my dough is too crumbly?
Add 1 to 2 tablespoons more sweetened condensed milk and mix until it comes together. Different flour brands absorb differently.
The dough should hold a shape when you press a piece in your hand.
Can I skip the peanut butter chocolate topping?
You can, but the bars are more dessert-like with it. Without the topping, you have a slab of pressed cookie dough — which is genuinely good, but less finished.
The topping is also what gives them the clean slice. Drizzle a small amount of melted chocolate on top if you want something lighter than the full ganache.
More Recipes You’ll Love
White Chocolate Popcorn Crunch — sweet and salty popcorn coated in white almond bark with peanuts and Rice Krispies.
Crockpot Lava Cake — molten chocolate lava cake made entirely in the slow cooker.
Crock Pot Chocolate Peanut Clusters — chocolate, peanuts, and almond bark melted in the slow cooker, dropped onto wax paper.

Cookie Dough Bars
Equipment
- Stand mixer or hand mixer
- Mixing bowls
- Measuring cups and spoons
- 8x8 baking dish
- Parchment paper
- Spatula
- Foil
Ingredients
- 1/2 cup butter softened
- 3/4 cup packed light brown sugar
- 1 teaspoon vanilla extract
- 2 cups all-purpose flour heat-treated and cooled
- 1 14- ounce can sweetened condensed milk
- 1 cup chocolate chips
- 1/2 cup mini M&M’s
- 1/2 cup creamy peanut butter
- 1/2 cup milk chocolate chips
Instructions
- Heat-treat flour and let it cool completely.
- Line an 8x8 baking dish with parchment paper.
- Beat softened butter and brown sugar until smooth and fluffy.
- Add vanilla and mix until combined.
- Gradually add cooled flour and sweetened condensed milk, alternating between the two, until a soft dough forms.
- Fold in chocolate chips and mini M&M’s.
- Press dough evenly into the prepared pan.
- Melt peanut butter and milk chocolate chips together until smooth.
- Spread topping over the cookie dough layer.
- Chill until firm, then slice into bars.
