• Home
  • About Me
  • Advertising & Services
  • Contact
  • Disclosure Policy
Coupon Cravings

Coupon Cravings

Easy Recipes & Money Saving Advice

  • Dinner
  • Appetizer Recipes
  • Dessert Recipes
  • Breakfast

Edible Cookie Dough Bars

This post may contain affiliate links. Please read the Disclosure Policy.

4.8 (939 ratings)
By Kate  ·  Updated: May 1, 2025  ·  14 min read
📌 18,595 saves

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.

Edible cookie dough bars cut into squares with M&Ms and chocolate

What Are Edible Cookie Dough Bars?

Edible cookie dough bars are a no-bake dessert made by pressing eggless cookie dough into an 8×8 pan, topping it with a layer of melted peanut butter and chocolate, and chilling until firm. Once set, you cut the bars into squares and serve cold or at room temperature.

Standard cookie dough recipes use eggs (raw eggs aren’t safe to eat) and untreated flour (raw flour also carries some risk). This recipe skips the eggs entirely — the sweetened condensed milk acts as the binder instead — and heat-treats the flour to make it food-safe. The result is real cookie dough you can eat by the spoonful, no risk of getting sick.

The flavor is straight cookie dough — buttery, brown-sugary, with chocolate chips and M&Ms throughout. The peanut butter chocolate topping turns the bars from “raw cookie dough” into proper bar dessert. Pull the pan from the fridge, slice into squares, and serve.

Cookie dough bars with chocolate and M&Ms

Why This Recipe Works

Heat-treating the flour is what makes the dough safe. Raw flour can carry E. coli and other bacteria. A quick stint in the microwave (160°F internal temperature) or 5 minutes at 350°F in the oven kills any pathogens. The flour cools quickly and goes into the dough exactly like untreated flour would.

Sweetened condensed milk replaces the eggs. In traditional cookie dough, eggs add moisture and bind the ingredients together. Sweetened condensed milk does the same job — provides moisture, plus extra sweetness and that distinctive cookie-dough texture. The dough holds together perfectly without any eggs at all.

Mini chocolate chips and mini M&Ms work better than full-size in an 8×8 pan. The mini sizes distribute more evenly, give you more chips per bite, and don’t overpower the dough. Standard chips work too — they just mean fewer chips per bite.

Pressing the dough firmly into the pan matters. Loose dough won’t slice cleanly. Use a flat-bottomed glass or measuring cup to compress the dough evenly across the entire pan, all the way into the corners.

The peanut butter chocolate topping is what takes these from “cookie dough in a pan” to “actual dessert bars.” The peanut butter adds richness and a savory note that balances the sweet dough. The melted chocolate chips set into a smooth, sliceable layer when chilled.

Ingredient Breakdown

Unsalted butter (1 cup, softened)
Two sticks of butter, softened to room temperature so it creams smoothly. Salted butter works too — just skip adding any extra salt. Softened means it gives slightly when you press it but isn’t melted.

Brown sugar (1 cup, packed)
Light brown sugar gives the right cookie dough flavor — the molasses in brown sugar is what makes cookie dough taste like cookie dough. Packed means push it down into the measuring cup so the volume is dense.

Pure vanilla extract (2 tsp.)
Real vanilla extract, not imitation. The vanilla flavor is prominent in cookie dough; cheap imitation makes a noticeable difference.

All-purpose flour (2.5 cups, heat-treated)
Standard all-purpose flour. Heat-treat by either microwaving (1 minute and 15 seconds total, stirring every 15 seconds) or baking at 350°F for 5 minutes, until the flour reaches 160°F internal temperature. Cool fully before using.

Sweetened condensed milk (1 can, 14 oz.)
One standard can of sweetened condensed milk (NOT evaporated milk — they’re different). Eagle Brand is the standard. Don’t substitute.

Mini chocolate chips (1 cup) and mini M&Ms (1 cup)
For mixing into the dough. Mini sizes distribute better in an 8×8 pan than full-size. Substitute regular-size chips and M&Ms if mini aren’t available — the recipe still works.

Smooth peanut butter (1/2 cup, for topping)
Regular Jif or Skippy. Natural peanut butter (the kind that separates) doesn’t melt as smoothly with the chocolate. The peanut butter adds richness and a savory note to the topping layer.

Chocolate chips (1/2 cup, for topping)
Regular semi-sweet chocolate chips for the topping. Melts with the peanut butter into a smooth ganache. Use Ghirardelli or Nestlé Toll House.

Cookie dough with mini M&Ms and chocolate chips
Making cookie dough in a mixing bowl
Edible cookie dough mixed and ready

How to Make Edible Cookie Dough Bars

Step 1: Heat-treat the flour. Spread 2.5 cups of all-purpose flour on a microwave-safe plate or in a microwave-safe bowl. Microwave on high for 1 minute and 15 seconds total, stirring every 15 seconds. The flour should reach 160°F internal temperature (use an instant-read thermometer if you have one). Alternatively, spread on a sheet pan and bake at 350°F for 5 minutes, stirring once. Let cool fully before using.

Step 2: Prepare the pan. Line an 8×8 inch baking pan with parchment paper, leaving overhang on two sides for easy lifting later. Set aside.

Step 3: Cream butter and sugar. In a large mixing bowl, beat the softened butter and brown sugar together with a hand mixer (or a wooden spoon if you don’t have one) for 2 to 3 minutes, until fluffy and pale. Add the vanilla extract and beat to combine.

Step 4: Mix in flour and condensed milk. Alternate adding the cooled heat-treated flour and the sweetened condensed milk to the butter mixture, mixing on low speed until combined. 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.

Step 5: Fold in the chips and M&Ms. Using a spatula, fold the mini chocolate chips and mini M&Ms into the dough until evenly distributed.

Edible M&M cookie dough mixed in a bowl

Step 6: Press into the pan. Transfer the dough to the parchment-lined 8×8 pan. Press it firmly into an even layer using a spatula or your hands. Use a flat-bottomed glass or measuring cup to compress the dough evenly across the entire pan and into the corners.

Step 7: Chill the dough layer. Cover the pan with foil or plastic wrap and refrigerate for at least 3 hours, or until firm. If you’re in a hurry, the freezer works for 1 to 1.5 hours.

Cookie dough pressed into the pan ready to chill

Step 8: Make the topping. In a microwave-safe bowl, combine 1/2 cup peanut butter and 1/2 cup chocolate chips. Microwave in 30-second bursts, stirring after each, until smooth (typically 1 to 1.5 minutes total).

Step 9: Apply the topping. Pour the melted peanut butter chocolate over the chilled cookie dough. Spread evenly with a spatula to cover the entire surface.

Chocolate peanut butter topping spread on cookie dough

Step 10: Chill again. Refrigerate for at least 1 more hour (or 30 minutes in the freezer), until the chocolate topping is fully set and firm.

Step 11: Slice and serve. Lift the bars out of the pan using the parchment paper overhang. Place on a cutting board and slice into bite-size squares (a 6×6 grid gives you 36 small pieces, perfect for a dessert tray). Use a sharp knife and wipe between cuts for clean edges. Serve cold or at room temperature.

Cut cookie dough bars on a board

Serving Suggestions

Serve cold or at room temperature. Cold gives a firmer, fudge-like bite. Room temperature is softer and more cookie-dough-like. Both are good — try a piece each way and see which you prefer.

For a dessert tray, cut into small squares (about 1-inch) and arrange on a platter alongside other bite-size desserts like brownie bites or chocolate-covered strawberries. The cookie dough bars look beautiful with their visible chips and M&Ms.

For an ice cream sundae topping, crumble a square or two over a scoop of vanilla ice cream. The cookie dough chunks soften slightly against the cold ice cream — it’s the best of cookie-dough ice cream and an actual cookie dough at the same time.

For party packaging, pile a few squares into individual cellophane bags with a ribbon for take-home favors. Kids’ birthday parties, baby showers, and bridal showers all work for this.

Storage and Make-Ahead Tips

Store the bars in an airtight container in the fridge for up to 1 week. The bars stay firm enough to slice and the flavor doesn’t change. Layer pieces between sheets of parchment if you’re stacking them.

These freeze beautifully. Cut into squares, layer between parchment in a freezer-safe container, and freeze for up to 3 months. Eat straight from the freezer (they have a fudge-pop texture) or thaw in the fridge for an hour before serving.

Make ahead for parties up to 4 days in advance. Cut and refrigerate. Pull out 30 minutes before serving if you want them slightly softer.

For travel, keep the bars cold in a cooler with ice packs. The chocolate topping can soften at room temperature for a few hours but the bars are still good — just messier. For longer travel, transport in the freezer container and thaw on arrival.

Why You’ll Love This Recipe

  • Real cookie dough you can eat raw — safely
  • No baking — just mixing, pressing, and chilling
  • Active prep is about 20 minutes (plus chill time)
  • 30 to 40 bite-size pieces from one 8×8 pan
  • Freezes for up to 3 months — make ahead for parties
  • Kid-friendly — kids love mixing and pressing the dough

Frequently Asked Questions

Why do I need to heat-treat the flour?
Raw flour can carry bacteria like E. coli that can make you sick. The CDC recommends not eating raw flour. Heat-treating to 160°F kills off any pathogens. The microwave method takes about 90 seconds and the oven method takes 5 minutes — both are easy and necessary for any edible cookie dough.

Can I skip the heat-treatment step?
You can, but you’re rolling the dice on getting sick. The risk is small but real. Most cases of flour-borne illness are mild but unpleasant. The 90 seconds of heat-treating is worth it.

Can I add eggs?
Don’t. The whole point of edible cookie dough is no eggs (raw eggs are the bigger risk than raw flour). The sweetened condensed milk replaces the eggs as the binder.

Can I use regular-size chocolate chips and M&Ms?
Yes — they just don’t distribute as evenly in the small pieces. If you’re making the bars in a 9×13 pan instead of 8×8 (doubling the recipe), regular-size works perfectly.

Can I skip the peanut butter chocolate topping?
You can, but the bars are richer and more dessert-like with it. Without the topping, you just have a slab of cookie dough — which is also fine, but a different presentation. The topping is what gives the bars their finished look.

How thick are the bars?
About 1 inch thick total. The cookie dough layer is about 3/4 inch and the chocolate topping is about 1/4 inch.

What if my dough is too crumbly?
The dough should be soft and pliable. If it seems crumbly or dry, add 1 to 2 tablespoons more sweetened condensed milk and mix until it comes together. Different brands of flour absorb differently.

Variations and Substitutions

Triple chocolate version. Skip the M&Ms. Use 1 cup mini chocolate chips plus 1/2 cup white chocolate chips in the dough. Drizzle white chocolate over the finished bars after the topping sets.

Birthday cake version. Replace 1/4 cup of the flour with 1/4 cup of yellow cake mix. Add 1/2 cup of rainbow sprinkles to the dough. Top with extra sprinkles after the chocolate sets.

Peanut butter version. Add 1/2 cup of smooth peanut butter to the cookie dough mixture (after creaming the butter and sugar). Use peanut butter chips instead of mini M&Ms. Topping is straight chocolate chips, no peanut butter.

Salted caramel version. Add 1/2 cup of soft caramel chips to the dough. Sprinkle flaky sea salt over the chocolate topping before it sets.

Holiday version. Use red and green M&Ms for Christmas, pastel M&Ms for Easter, or red, white, and blue for July 4th. Add holiday-colored sprinkles to the topping for extra festivity.

Doubled batch. Double everything and use a 9×13 pan. Same chill times. Yields 60+ bite-size pieces — great for big parties or holiday cookie trays.

A Few Things That Improve This Recipe

An 8×8 baking pan with straight sides is the right tool. A standard 8×8 metal or glass square baking pan gives you the right depth and clean corners for slicing the bars. Glass works well because you can see the layers from the side.

For mixing, a hand mixer cuts the prep time significantly compared to mixing by hand. A standard 5-speed hand mixer creams the butter and sugar in 2 to 3 minutes. The same mixer also handles cookies, frosting, and basic baking — once you have one, you’ll use it constantly.

Lighter Version

This is dessert food. There’s not much way to make it genuinely “light” without losing what makes it good. But a few tweaks reduce the calorie density.

Cut into smaller pieces. A 6×6 grid yields 36 pieces; a 7×7 grid yields 49 smaller pieces. Smaller pieces means fewer calories per serving while letting people have a satisfying bite.

Reduce the chocolate chips and M&Ms by 1/4 cup each. The bars are still loaded but slightly less calorie-dense.

Skip the peanut butter chocolate topping. The plain pressed cookie dough is its own dessert — drizzle a small amount of melted chocolate on top instead of a full layer.

Nutrition Information

Nutrition varies based on chip and M&M brands. As a general estimate, one bite-size piece (1/36 of an 8×8 pan) lands around 130–160 calories, with approximately 1.5g protein, 18g carbs, and 7g fat.

A Little Story About This One

I grew up sneaking spoonfuls of cookie dough out of the bowl when nobody was looking. Almost every kid does. Then somewhere along the way I learned that raw eggs and raw flour can both make you sick, and the cookie dough cravings stayed but the spoonfuls stopped.

This recipe was the answer. Cookie dough I can eat by the spoonful. Cookie dough my kids can lick off the spoon while I’m spreading it into the pan. Cookie dough that tastes exactly like the dough I used to sneak as a kid — but completely safe.

I make these for parties, dessert trays, kid birthdays, and just for the fridge when I want a sweet snack on hand. Two bites is genuinely satisfying because they’re so rich. The 8×8 pan lasts longer than you’d think.

Final Thoughts

If you’ve been craving cookie dough and didn’t want to risk eating it raw, this is the recipe that solves that problem. Real cookie dough flavor, no eggs, heat-treated flour, in dessert bar form. Make a batch and stash it in the fridge — it’ll last a week and you’ll be glad it’s there.

M&M cookie dough pieces stacked on a plate

More Recipes You’ll Love

If easy no-bake desserts and sweet treats are your speed, here are a few more crowd-pleasers worth bookmarking:

White Chocolate Popcorn Crunch — sweet and salty popcorn coated in white almond bark with peanuts and Rice Krispies. Holiday gift staple.

Easy 3-Ingredient Strawberry Dip — sweetened strawberry cream cheese dip for fruit, graham crackers, or pretzels. Five-minute dessert dip.

Crockpot Lava Cake — molten chocolate lava cake made entirely in the slow cooker. Family-favorite dessert.

Crock Pot Chocolate Peanut Clusters — chocolate, peanuts, and almond bark melted in the slow cooker, dropped onto wax paper. Even easier than these bars.

Edible Cookie Dough Bars Recipe

Ingredients

  • 1 cup unsalted butter, softened
  • 1 cup packed light brown sugar
  • 2 tsp. pure vanilla extract
  • 2.5 cups all-purpose flour, heat-treated and cooled
  • 1 (14 oz.) can sweetened condensed milk
  • 1 cup mini chocolate chips
  • 1 cup mini M&Ms
  • For the topping:
  • 1/2 cup smooth peanut butter
  • 1/2 cup semi-sweet chocolate chips

Instructions

  1. Heat-treat the flour: Microwave 2.5 cups of all-purpose flour for 1 minute and 15 seconds, stirring every 15 seconds (or bake at 350°F for 5 minutes, stirring once). Cool fully.
  2. Line an 8×8 inch baking pan with parchment paper, leaving overhang for easy lifting later.
  3. In a large mixing bowl, beat the softened butter and brown sugar together for 2 to 3 minutes until fluffy. Beat in the vanilla extract.
  4. Alternate adding the cooled flour and the sweetened condensed milk to the butter mixture, mixing on low speed until smooth.
  5. Fold in the mini chocolate chips and mini M&Ms with a spatula.
  6. Press the dough firmly into the prepared pan in an even layer. Use a flat-bottomed glass to compress.
  7. Cover and refrigerate for at least 3 hours (or freeze for 1 to 1.5 hours) until firm.
  8. For the topping, microwave the peanut butter and chocolate chips together in 30-second bursts, stirring after each, until smooth (1 to 1.5 minutes total).
  9. Pour over the chilled cookie dough and spread evenly with a spatula.
  10. Refrigerate for at least 1 more hour (or freeze 30 minutes) until the topping is set.
  11. Lift out of the pan using the parchment overhang. Slice into bite-size squares (a 6×6 grid gives 36 pieces). Serve cold or at room temperature.

Yield: 36 bite-size pieces. Active prep: 20 minutes. Chill time: 4 hours total. Total time: about 4 hours 20 minutes (mostly hands-off).

Dessert Recipes

Get FREE Recipes In Your Inbox!

Subscribe for the latest recipes delivered straight to you.

Subscribe Free →

About Me

Kate Sorensen

Hi, I'm Kate!

Easy, budget-friendly recipes your family will love — from quick weeknight dinners to crowd-pleasing desserts.

More About Me

FEATURED RECIPES

  • How to Make Crock Pot Baked Potatoes
  • 13 Mother’s Day Brunch Recipes That Actually Let You Relax (No Stress Required)
  • Revitalize Your Hydration: 144 Creative Water Mixes to Transform Your Health & Quench Your Thirst
  • 50+ Go-To Weeknight Dinners
  • 40 Unforgettable Crockpot & Slow Cooker Recipes
  • Homemade Alfredo Sauce
  • Philly Cheese Steak Crock Pot Recipe
  • Crockpot Ravioli Casserole Recipe

· © Copyright 2008 - 2026 Coupon Cravings · All Rights Reserved ·

Terms of Use · Copyright Policy · Privacy Policy · Cookie Policy

📌 Most Saved This Week

Continue Reading ↓