Magic Cookie Bars
Make chewy magic cookie bars with a buttery graham cracker crust, chocolate chips, coconut, and walnuts, plus tips for neat layers and clean cuts.

Magic cookie bars bring a little of everything to the dessert table: a buttery graham cracker base, pockets of semisweet chocolate, toasted coconut, and crunchy walnuts. Sweetened condensed milk holds the layers together, giving each square its signature chewy texture.
These bars are easy to put together, but a few details make a difference. An evenly pressed crust, a gentle hand with the toppings, and a complete cool-down help you get tidy squares with distinct layers.
Build a sturdy graham cracker crust
Fine graham cracker crumbs make a compact, even base for the soft layers above. Stir them thoroughly with the melted unsalted butter and fine salt, checking that the crumbs look evenly moistened rather than leaving dry patches in the bowl. The salt helps balance the sweetness of the filling and toppings.
Press the crumb mixture firmly across the bottom of the baking dish, paying attention to the edges and corners. An even layer gives the bars a consistent base, while a loosely packed crust can be more likely to crumble when you lift and cut the cooled bars.
Choose condensed milk and layer with care
Be sure to reach for sweetened condensed milk, not evaporated milk. Sweetened condensed milk is essential here: it thickens as the bars bake and helps bind the toppings as they cool. Pour it evenly over the crust so the chocolate, coconut, and walnuts have a consistent layer beneath them.
The order of the toppings matters to the finished bars. Semisweet chocolate chips go over the milk, followed by sweetened shredded coconut and roughly chopped walnuts. Gently pressing them into the milk with the back of a spatula helps them settle without disturbing the crust. There is no need to stir the layers together.
Look for golden edges and toasted coconut
Use the oven temperature and baking time on the recipe card, and check the bars for the visual cues as they bake. The edges should be golden brown, and the coconut should be toasted in spots. Those touches of color bring out the cozy, baked flavor while preserving the chewy character of the bars.
Because the toppings sit in layers, the surface will not look perfectly uniform. Look across the dish for the golden edges and toasted patches rather than waiting for every shred of coconut to turn the same color.
Cool completely for cleaner squares
Parchment makes the finished slab easier to remove from the dish. Leave an overhang on opposite sides when lining the pan so you have something to hold when lifting the cooled bars. Set the dish on a wire rack after baking and let the bars cool completely before moving or cutting them.
The wait gives the sweetened condensed milk time to bind the toppings as the bars cool. Once the slab is out of the dish, use a knife to cut it into squares, wiping the blade between cuts for cleaner edges.
Frequently Asked Questions
Why are my magic cookie bars crumbly?
A loosely packed crust can make the bars difficult to cut neatly. Make sure the crumbs are evenly moistened and pressed firmly into the dish. Let the baked bars cool completely before lifting them, so the topping has time to bind.
Can I use evaporated milk instead of sweetened condensed milk?
Use sweetened condensed milk for this recipe, not evaporated milk. The condensed milk thickens during baking and helps hold the chocolate, coconut, and walnuts together as the bars cool. Check the label before opening the can.
How can I tell when the bars are baked?
Follow the baking time on the recipe card and look for golden brown edges and coconut that has toasted in spots. The surface will have some variation in color, so the coconut does not need to be uniformly browned.
Recipe
Magic Cookie Bars
These chewy cookie bars layer semisweet chocolate chips, shredded coconut, and walnuts over a buttery graham cracker crust. Sweetened condensed milk holds the layers together as the coconut toasts and the edges turn golden brown.
- Course
- Dessert
- Cuisine
- American
- Difficulty
- Easy
- Servings
- 24 Portionen
- Prep time
- 15 mins
- Cook time
- 30 mins
- Total time
- 2 hr 45 mins
- Calories
- 220 kcal
Ingredients
Crust
Topping
Instructions
Preheat the oven to 350°F. Line a 9x13-inch baking dish with parchment paper, leaving an overhang on two opposite sides.
Stir the graham cracker crumbs, melted butter, and salt together until evenly moistened. Press the mixture firmly into an even layer across the bottom of the dish.
Pour the sweetened condensed milk evenly over the crust. Scatter the chocolate chips, coconut, and walnuts over the milk in that order, then gently press the toppings into the milk with the back of a spatula.
Bake for 28 to 32 minutes, until the edges are golden brown and the coconut has toasted in spots.
Set the dish on a wire rack and let the bars cool completely, about 2 hours. Lift them out using the parchment and cut into 24 squares.
Notes
- Use sweetened condensed milk, not evaporated milk. The condensed milk thickens as it bakes and binds the toppings as the bars cool.
- For cleaner squares, wipe the knife between cuts.
Recipe: https://naileditrecipes.co/magic-cookie-bars/





