These gluten free magic cookie bars are your answer to a healthy yet decadent dessert that satisfies all your cravings. Packed with creamy peanut butter, crunchy raw nuts, sweet flaked coconut, and two types of chocolate, they’re equal parts chewy, crisp, and gooey. Plus, they’re free of refined flour, making them naturally gluten-free and perfect for anyone focusing on wholesome, nutrient-packed treats.

We developed this wondrous dessert recipe to show that “gluten-free” and “healthy” can still mean absolutely delicious. After testing countless variations, we’ve nailed the perfect balance of rich flavors and satisfying textures. Whether you’re hosting a special occasion or simply craving something sweet, these bars deliver on taste while keeping your wellness in mind.
Why This Gluten Free Magic Cookie Bars Recipe Is Good For You
- Nut-Based Protein: The peanut butter, pecans, and almonds combine to offer healthy fats and protein, keeping you fuller for longer.
- No Refined Flours: This recipe skips traditional flour entirely, catering perfectly to gluten-free diets.
- Boosts Energy: Coconut and nuts provide nutrient-dense energy, great for an afternoon pick-me-up.
- No Sacrifice on Flavor: Sweetened condensed milk and dual chocolate chips provide indulgent sweetness without processed fillers.
- Wholesome Ingredients: Every bite contains fiber, good fats, and antioxidants from the quality raw ingredients.
Wholesome Ingredients for This Gluten Free Magic Cookie Bars
Each ingredient in this recipe is chosen with health and flavor in mind. Here’s a closer look at what makes these bars both nutritious and indulgent:
- Peanut Butter: This acts as the base, providing a rich source of protein and heart-healthy fats. For a healthier twist, opt for a natural peanut butter with no added sugar or oils.
- Raw Almonds & Pecans: Both nuts offer crunch and are packed with antioxidants, vitamins, and minerals like magnesium and vitamin E. Substitute walnuts or cashews if desired.
- Dark Chocolate Chips: Dark chocolate is rich in antioxidants and lower in sugar compared to milk chocolate. Look for chips with at least 70% cacao for maximum health benefits.
- Flaked Coconut: Coconut brings texture and natural sweetness. Choose unsweetened flakes to keep sugar levels balanced.
Gluten Free Magic Cookie Bars Recipe Details
- Servings: 20 servings
- Prep Time: 15 minutes
- Cook Time: 40 minutes
- Total Time: 1 hour 55 minutes
Ingredients for Gluten Free Magic Cookie Bars
- 2 cups white sugar
- 2 large eggs
- 2 cups peanut butter
- ¾ cup semisweet chocolate chips
- ¾ cup dark chocolate chips
- ½ cup chopped raw pecans
- ½ cup chopped raw almonds
- 1 cup flaked coconut
- 1 (14 ounce) can sweetened condensed milk
How to Make Gluten Free Magic Cookie Bars
- Preheat your oven to 350°F (175°C) and line a 9×13-inch baking dish with parchment paper for easy cleanup.
- In a large bowl, whisk together sugar and eggs until smooth. Stir in peanut butter until fully combined into a thick, creamy mixture.
- Spread the peanut butter mixture evenly into the prepared baking dish, ensuring it covers the bottom.
- Bake for 8 minutes to partially cook the base. It should just start setting, but not be fully cooked.
- Remove from the oven and gently layer the semisweet chocolate chips, dark chocolate chips, raw pecans, almonds, and flaked coconut over the base.
- Drizzle the sweetened condensed milk evenly over the top, ensuring all layers are covered.
- Return the dish to the oven and bake for an additional 30 minutes, or until the coconut is golden brown and the toppings are bubbling.
- Let the bars cool completely in the pan before lifting them out using the parchment paper.
- Slice into 20 squares using a sharp knife. Enjoy!
How to Customize This Gluten Free Magic Cookie Bars Recipe for Your Diet
- Vegan: Swap the sweetened condensed milk for a coconut-based condensed milk and use vegan chocolate chips.
- Keto-Friendly: Use a natural sugar substitute like erythritol and opt for unsweetened chocolate chips.
- Nut-Free: Replace peanut butter with sunflower seed butter and skip the nuts, adding extra coconut instead.
- Lower Calorie: Use reduced-fat peanut butter and substitute a portion of the chocolate chips with more nuts or seeds.
- Dairy-Free: Use coconut condensed milk or a dairy-free alternative, and select a dairy-free chocolate brand.
Our Team’s Tips for the Best Gluten Free Magic Cookie Bars
- For the cleanest cuts, chill the bars in the fridge before slicing them.
- Store leftovers in an airtight container for up to 5 days. For longer storage, freeze the bars in a single layer, then transfer to a freezer bag.
- Layer toppings evenly so each bar captures that perfect mix of chocolate, coconut, and nuts.
- If the bars brown too quickly, cover the baking dish loosely with foil for the last 10 minutes of baking.
- Experiment with flavors—try adding dried cranberries, swapping almonds for hazelnuts, or sprinkling sea salt on top for a salty-sweet twist.
Gluten Free Magic Cookie Bars FAQs
Can I make these bars vegan?
Yes! Simply swap the sweetened condensed milk for a coconut-based condensed milk and use vegan chocolate chips.
How should I store these bars?
Store them in an airtight container at room temperature for up to 5 days or freeze for up to 3 months.
What makes this recipe healthy?
The nut base provides protein and healthy fats, while the recipe avoids refined flour, making it naturally gluten-free and nutrient-rich.
Can I use other types of chocolate?
Absolutely! You can use milk chocolate, white chocolate, or even sugar-free chocolate for dietary adjustments.
Are these no bake magic cookie bars?
No, this recipe requires baking to set the base and toast the toppings for the perfect texture.
These gluten free magic cookie bars combine wholesome, natural ingredients with incredible flavor and texture. We can’t wait to hear how you make them your own! What’s your favorite healthy twist on a classic dessert? Share your ideas in the comments—your feedback inspires us to keep creating health-conscious recipes you’ll love.

Gluten Free Magic Cookie Bars
Ingredients
- 2 cups white sugar
- 2 large eggs
- 2 cups peanut butter
- ¾ cup semisweet chocolate chips
- ¾ cup dark chocolate chips
- ½ cup chopped raw pecans
- ½ cup chopped raw almonds
- 1 cup flaked coconut
- 1 14 ounce can sweetened condensed milk
Instructions
- Preheat your oven to 350°F (175°C) and line a 9×13-inch baking dish with parchment paper for easy cleanup.
- In a large bowl, whisk together sugar and eggs until smooth. Stir in peanut butter until fully combined into a thick, creamy mixture.
- Spread the peanut butter mixture evenly into the prepared baking dish, ensuring it covers the bottom.
- Bake for 8 minutes to partially cook the base. It should just start setting, but not be fully cooked.
- Remove from the oven and gently layer the semisweet chocolate chips, dark chocolate chips, raw pecans, almonds, and flaked coconut over the base.
- Drizzle the sweetened condensed milk evenly over the top, ensuring all layers are covered.
- Return the dish to the oven and bake for an additional 30 minutes, or until the coconut is golden brown and the toppings are bubbling.
- Let the bars cool completely in the pan before lifting them out using the parchment paper.
- Slice into 20 squares using a sharp knife. Enjoy!
