Healthier Magic Cookie Bars (Vegan + Gluten-Free)

4.49

116

Save to FavoritesPrintJump to Recipe

This post may include affiliate links. Thank you for your support.

Healthier magic cookie bars made grain-free, gluten-free and vegan with homemade sweetened condensed coconut milk.

Last month I went to Isaac’s school for a holiday celebration and as luck would have it a parent had brought in Magic Cookie Bars for the teachers. Remember those bad boys? Some people call them Seven Layer Bars but they have a graham cracker crust, chocolate chips, coconut and sweetened condensed milk… so rich and delicious! My mom used to make them and they were one of my favorite holiday baked goods.

A stack of healthier magic cookie bars. An almond flour coconut crust, topped with coconut caramel, coconut flakes, pecans and chocolate chips.

At Isaac’s school that day, I couldn’t resist having a bite (or two). It was just as a good as I remembered it: before long the wheels started turning in my head and I had my mind set on making a version of my own. I can’t really call these healthy because they’re still decadent, but they’re made with wholesome ingredients and a bit healthier.

Having tasted the classic version only a day or two before I made this variation, I can honestly say they look and taste like the real deal. You could easily take them to a party, not tell anyone that they’re grain-free, dairy free and made with sweetened condensed coconut milk and people would go crazy for them.

Healthier magic cookie bars. An almond flour cookie crust topped with coconut caramel, coconut, pecans, and chocolate chips.
  • almond flour
  • unsweetened shredded coconut and unsweetened flaked coconut
  • full fat coconut milk
  • coconut sugar
  • chocolate chips – I like using Enjoy Life or Lily’s chocolate chips to keep this recipe dairy-free.
  • chopped pecans
  • coconut oil
  • maple syrup
  • vanilla extract
  • sea salt
Healthier magic cookie bars. An almond flour cookie crust topped with coconut caramel, coconut, pecans, and chocolate chips.

Make the crust – Combine the almond flour, shredded coconut, coconut oil, maple syrup, vanilla and sea salt in a large bowl. Press firmly into a 8×8 baking dish lined with parchment paper. Bake at 350ºF for 12-15 minutes or until your crust is golden brown. Remove from the oven and let cool on a wire rack.

Make sweetened condensed coconut milk – While the crust is cooling, combine the coconut milk and sugar in a saucepan over medium heat. Bring to a low boil, reduce heat and simmer for 45 minutes, stirring frequently, until the mixture has reduced by about half. Remove from the heat and let cool slightly. Pour the condensed milk over the crust and spread to the edges.

Add toppings – Sprinkle the chocolate chips evenly over the condensed milk, then add the flaked coconut and then the pecans. Use your hands to press the mixture down slightly until the milk soaks upward into the toppings.

Bake – Bake the bars for 30 minutes at 350ºF until edges are browning a bit. Remove from the oven and let cool for 30-60 minutes on a cooling rack. After cooling a bit, place the pan in the refrigerator to let them set up for at least two hours. If you’re in a rush you can freeze them for an hour instead.

Cut and enjoy – After cooling, lift the parchment out of the pan and place the bars on a cutting board or other flat surface. Cut the bars into 16 squares and dig in!

Healthier magic cookie bars. An almond flour cookie crust topped with coconut caramel, coconut, pecans, and chocolate chips.

Any leftover bars should be wrapped or placed in an airtight container. They will keep for a couple days on the countertop but I recommend storing in the fridge or freezer for longer storage.

Hand holding a healthier, gluten free, grain free, vegan, magic cookie bar. An almond flour cookie crust topped with coconut caramel, coconut, pecans, and chocolate chips.

More Tasty Desserts to Try

Be sure to check out the full collection of dessert recipes here on EBF as well.

Want to save this recipe? Enter your email below and we’ll send the recipe to your inbox. Plus you’ll get great new recipes every week!
4.49 from 91 votes

Healthier Magic Cookie Bars

Healthier magic cookie bars made grain-free, gluten-free and vegan with homemade sweetened condensed coconut milk. 
Prep Time: 15 minutes
Cook Time: 1 hour 15 minutes
Total Time: 1 hour 30 minutes
Servings: 16

Ingredients  

Crust:

Layers

  • 1 can, 13.5 oz full-fat coconut milk
  • 1/2 cup coconut sugar
  • 1 cup vegan chocolate chips, I used Enjoy Life
  • 1 cup unsweetened flaked coconut
  • 1/2 cup chopped pecans

Instructions 

  • Preheat oven to 350°F and line a square (8×8) glass baking dish with parchment paper.
  • Combine all ingredients for the crust in a large bowl and press firmly into the prepared pan. Bake for 12 to 15 minutes until your crust is golden brown in color. Remove from oven and cool on a wire rack.
  • While crust is cooling, in a saucepan over medium heat bring coconut milk and sugar to a low boil, reduce heat and simmer for approximately 45 minutes, stirring frequently until the mixture has reduced by half. The coconut milk mixture should be thick reduced to about 3/4 cup. Remove from heat and cool slightly. Pour the sweetened condensed coconut milk over the crust and spread to the edges.
  • Sprinkle the chocolate chips evenly over the condensed milk, then the flaked coconut, and then the pecans. Using your hands, press the mixture down a tiny bit until the milk soaks upward into the layers.
  • Place in oven (still at 350°F) and bake for about 30 minutes, until edges are browning a bit. Remove from oven and cool for 30 to 60 minutes on a cooling rack. Once the bars have cooled a bit, place the pan in the refrigerator to allow the bars to set-up for at least two hours (or overnight). If you’re in a rush you could put the bars in the freezer for an hour instead.
  • After cooling, lift the parchment out of the pan and place bars on a cutting board or other flat surface. If the bars are coming from the freezer, you may need to let them thaw for a few minutes before cutting as they will be pretty firm. Cut bars into 16 squares and dig in! Any leftover bars should be wrapped or placed in a sealed container. They can be left out for a couple days or stored in the fridge or freezer for longer storage.

Video

Notes

Recipe adapted from Simply Living Healthy.

Nutrition

Serving: 1bar | Calories: 263kcal | Carbohydrates: 20g | Protein: 3g | Fat: 19g | Saturated Fat: 12g | Sodium: 50mg | Fiber: 1g | Sugar: 16g

Nutrition information is automatically calculated, so should only be used as an approximation.

Additional Info

Course: Dessert
Cuisine: American
Keyword: coconut magic cookie bars, magic cookie bars, seven layer bars
Did you make this recipe?Mention @eatingbirdfood and tag #eatingbirdfood!

About Brittany

Hey there, I’m Brittany, the creator of Eating Bird Food, cookbook author, health coach and mama of two littles. Here you’ll find quick and easy recipes that make healthy fun and enjoyable for you and your family!

More about Brittany
Chicken fajita filling on a sheet pan with a wooden spoon. Tortillas are resting on the bottom of the sheet pan.
Get Your FREE High-Protein Meal Plan
Struggling to eat enough protein? Subscribe to my email list and I’ll send you a 3-Day High-Protein Meal Plan with a Shopping List!

Leave a comment

Your email address will not be published. Required fields are marked *

Recipe Rating




116 Comments

  1. I hope you have a good trip, the cold is brutal here! The Brooklyn Brewery tour is great and it’s free on weekends.

  2. 5 stars
    These look incredible! Is the difference between flaked and shredded coconut major? Or can I sub shredded for both?
    Thanks!

  3. 5 stars
    Yum these look delicious! I’ve been looking for a new sweet healthier recipe to try this weekend 🙂

  4. If you haven’t been to Pure Food and Wine restaurant.. that is a must! Amazing raw vegan food . The menu is like heaven for a vegan 🙂 .

  5. These are my boyfriend’s favorite dessert! I never thought to test out a healthier (basically, dairy and gluten free) version, but if I do that means that I get to do some of the tasting too!

  6. Wow these look so good! You are an inspiration. I will definitely be trying these!
    thewholefullyou.blogspot.com

  7. What a great recipe Brittany! So glad Isaac called to let us know you did a redo! My coworker has also made an autumn magic cookie bar recipe (think it has apples and maybe pumpkin too). I’ll send you that one if you want to experiment with that too.

    Can’t wait to try the recipe. I wonder if there is something that can replace the almond flour since Caroline can’t have nuts. I always do a batch without nuts for her when I make the unhealthy version.

    Hope you and Mr. Isaac have a great time in NYC.

    1. I have made a similar version using chocolate chip cookies and coconut oil as the base.. and instead of nuts on the top i used pretzels… super yummy for nut free!

  8. Thank you for this recipe!! My friend used to make these all the time and I could not resist them! I will have to have her try this version to see if she will be able to tell they are GF and V. PS if you are still in New York- I highly recommend Pala for some GF V pizza. It is the best I have ever tried 🙂

  9. These look amazing! My mom used to make the less-healthy version all the time. I’m going to have to make these for her. 🙂

  10. You take amazing photos, and I’m so excited to have all of these ingredients on hand in my pantry. Guess I know what I’m making this week 🙂

  11. My aunt and I used to make the original version every time I visited her. I sent her a link to this recipe, and she’s so excited to try it. Personally, I love how it’s still decadent and rich. Can’t wait to try it myself.

  12. I made these tonight and they were REALLY GOOD!! My gluten free husband loved magic cookie bars so I’m glad I found a good gf version for him.

  13. 5 stars
    I made these this weekend and they were fantastic! My friends loved them and there’s no way anyone would be able to tell these were made with 100% wholesome and nourishing ingredients. I’m going to make them for my colleagues this week and then tell them how healthful they are only after they’ve tried them. I get such a kick out of that.

    1. hmmmm.. it does take quite a long time (about 45 minutes) — did you have it simmering for that long? Perhaps it wasn’t at a high enough heat during the simmer? I would also make sure the top of your pot is off while simmering. Hope these ideas help!

  14. 5 stars
    I made these cookie bars last week and, even though they were slightly singed, they were delish! I made them again yesterday and they were even better because I didn’t burn them this time! My mum used to make the 7 layer cookie bars on rare occasions when I was a kid, and I remember them as yummy, delectable treats – and very rich. This vegan, refined-sugar free recipe is just as good – actually better since they are so benign.

    Many thanks for the great recipe!

  15. This recipe looks wonderful! I’m planning to make these for the holidays this year. My dad requested a healthier version of magic bars, and I think this recipe looks like the perfect fit.

        1. Hey Kris – Yes, I think walnut or oat flour would work just fine as a replacement for the almond flour. Let me know how they turn out for you if you make these bars. 🙂

  16. this is pretty sweet!!! my family is obsessed with classic magic cookie bars, i wonder if i can trick them with these.

  17. Thank you for sharing this recipe – is it ok to substitute other kids of flour – eg coconut flour, oat flour? what would that change the baking time?

    1. I’m not 100% sure because I’ve only tried it with almond flour, but feel free to experiment! Coconut flour typically requires more liquid so I’d probably use less (maybe 1/2 cup instead of 3/4 cup)? Let me know how they turn out if you try them. 🙂

  18. 5 stars
    I’ve been craving a good dessert with some substance (being gluten free (And rice/oat free) sometimes I miss the texture of food). This was an out of park home run – and my gluten eating husband also gave it a 5+ rating! (Darn now he and I will be competing to eat them)
    Thank you!

    1. Ahh I love hearing that, Judy! Looks like you might have to make a double batch next time. 🙂 Thanks for coming back to leave a comment + star rating. It means the world to me!

  19. 5 stars
    Omg made them yesterday, saw them on your instagram ! Wow, I think I didn’t let the coconut milk reduce enough but it was a gooey heaven. I put most of them in the freezer so I don’t eat them all ! Seriously I just wish I found this recipe earlier, I have always love magic bars but know it is not the healthiest so it had been a while since I had some, and really does taste as the less healthy version 🙂

    1. Ahh that makes me so happy to hear, Emilie!! I’m so glad you tried this recipe and loved it. 🙂 Thanks so much for coming back to leave a comment + star rating. It means the world to me. <3

    1. Hey Alexandra – I’m not sure, I’ve never tried it! It might not turn out the same, but you can certainly try it. Let me know if you do and how the bars turn out!

    1. Aren’t they sooo good?! I’m glad they were a hit! Thanks for trying this recipe and for coming back to leave a comment + star rating, Stacey. I so appreciate it!

  20. Just made these. First the sweetened condensed coconut milk- omg just sipping it with a spoon! I did have to use regular sugar as I was out of coconut sugar. The milk took a while to make but I just did other cooking while it reduced. I baked and refrigerated them. We have already eaten like half the pan! OMG dangerous- I keep telling myself it’s mostly good fat😆

    1. Ahh this makes me so happy to hear, Julie!! I’m so glad these bars were a hit. Thanks for tying my recipe and for coming back to leave a comment. I so appreciate it!

  21. 5 stars
    This was so frikin’ good! I never comment on recipe blogs but for this one I just had to. My husband requested magic squares like the ones he grew up eating but minus all the crap. And here we are! So so good!

    1. Ahh this makes me so happy to read, Sarah! 🙂 I’m so glad these bars were a hit. Thanks for trying my recipe and for coming back to leave a comment and star rating. I really appreciate it.

  22. 3 stars
    The recipe is good, all the flavours are delicious. However, realistically this makes 9servings. 16 servings in an 8×8 is 1/2 inch by 1/2 inch…
    I also would do 1.5x the crust recipe to make it thicker, it barely went to the edges of an 8×8 pan.

    1. 5 stars
      Absolutely delicious! I took one shortcut and used a can of sweetened condensed coconut milk but otherwise followed the recipe exactly. Yum, my husband and I loved these. Love all of the recipes we’ve tried from your site!

      1. Ahh yay! I’m so glad you enjoyed this recipe, Kaitlyn. Thanks for trying it and for coming back to leave a comment and star rating. I really appreciate it!

  23. Hi Brittany, thank you for all of the delicious recipes! I was wondering if for the crust, you could just use vegan Graham crackers and coconut oil, and if you would happen to know roughly how much that would require?
    I am soooooo excited to try these, haven’t had these bars in YEAAARSSS!
    Thank youuuu :))

    1. You’re so welcome, Morgan!! I’m sure you could, I haven’t tried it so I’m not sure how many graham crackers you would need, but I’d just experiment with it. 🙂 Let me know if you try it and how the bars turn out!!

  24. 5 stars
    I have a complaint. These are too delicious and my boyfriend demands them too frequently. It’s straining our relationship. Please, think twice before posting such an amazing, easy, and adaptable recipe again. Jk, never stop.

    1. Haha!! You had me worried for a second. 🙂 I’m so glad you guys are loving these bars, Katherine!! I so appreciate you taking the time to come back to leave a comment + star rating. It means the world to me!

  25. 1 star
    It was a disaster. I did everything to the directions and the liquid did not reduce down. I had no idea what spreading meant. In my case it means you pour over the crust. They did not turn out. Wish I had a video I could have referred to.

    1. Hi Diane. I’m so sorry the recipe didn’t turn out for you. Were you using regular canned coconut milk to make the sweetened condensed coconut milk? Did you change anything with the ingredients?

        1. You could try oat or gluten-free AP flour. I haven’t tried it, so I’m not 100% sure if the ratios should be the same, but let me know what you end up trying and how it turns out!

    1. Hey Christine – Do you have a granulated sweetener like brown sugar or cane sugar? I would go for one of those options as the consistency is more similar to that of coconut sugar. Using maple syrup might work, but it also might make the condensed milk too liquidy.

      1. I tried brown sugar and my first try came out grainy and burnt at 45 minutes. I tried again and stirred for 30 minutes on low heat until it was carmel color and runnier than the video provided. It seemed to work fine, just a bit runnier. I also chopped up dates since I didn’t have enough chocolate chips. It’s in the oven now! Looking forward to trying this yummy desert!

        1. Ohhh I’m so sorry the first batch didn’t turn out for you, but thank you for letting me know. How did the second batch turn out and taste?!

  26. 5 stars
    My kids and I made these yesterday and the bars are delish — they say they taste just like Girl Scout Samoas! Thanks for another yummy, healthier, sweet treat recipe I don’t feel guilty about giving my kiddos.

    1. Ahh that makes me so happy to hear, Tina!! I’m so glad these bars were a hit. Thanks for making them and for coming back to leave a comment + star rating. I so appreciate it. <3

  27. 5 stars
    Made them. Love them. I too, grew up with the traditional Magic cookie bar with eagles brand sweetened condensed milk. I saw this recipe and said, oh, trying this one. And, true to your word…..who could tell the difference. And, actually, I like your version better! Thanks again for doing what you do! Much appreciated.
    shelley

    1. Ahh that makes me so happy to hear, Shelley! I’m so glad you enjoyed this recipe. Thanks for making it and for coming back to leave a comment + star rating. The reviews are super helpful for other readers, so I appreciate it. 🙂

  28. 1 star
    You have got to be kidding me, this recipe was so long in the same amount of time it took to make it a could’ve grown a tree. Not to mention the ingredients, Who in their right dang mind would spend 100$ on the ingredients to make this long crazy recipe. Who do you think I am, do I have all the time in the dang world. I mean seriously what the heck

    1. This was a very simple recipe. To leave that kind of comment is a bit unfair. Many of us who follow this site have those ingredients on hand. I have grown many trees and I can assure you the was much more simple. Lol I made this the first time following all directions and didn’t like the taste of the coconut condensed milk so I buy ready made now. Makes everything easier….for me. Lol either way, fabulous recipe.

  29. 5 stars
    Are about 3 squares of these tonight! I hated I had to let them cool for so long- haha. I had a hard time getting the condensed milk mixture thick enough but probably because I had an electric stove instead of gas like I’m used to. Wonderful recipe!

    1. I know, that’s definitely the hardest part is waiting for them to cool!! So glad these bars were a hit. Thanks for making them, Danielle. 🙂

  30. 1 star
    Unfortunately even 20 minutes at 350 burnt it to a crisp. I’m sure it would have been lovely but that was a very long recipe and expensive ingredients to have it be ruined. 10 minutes would be enough to melt the chocolate and toast the pecans. So disappointed.

    1. Oh no!! I’m so sorry so hear that they burnt that quickly. Did you change anything about the recipe?

  31. I just made these and they are yummy! But how long did it take for the milk to get thick? Much more than 45 minutes right?

  32. 5 stars
    These are INCREDIBLE! I made these for a family event and no one could even tell they were “healthy”. Do yourself a favor and make these ASAP!

    1. Ahh yay! That makes me so happy to hear, Amanda. I’m so glad these bars were a hit with your family. Thanks for making them and for coming back to leave a review. I so appreciate it!

  33. 4 stars
    Recipe is very good, decadent. Yes it’s a little time consuming, but usually good things are. Took me about an hour to reduce my coconut milk (not 45min). For me it’s a little too much on the chocolate chips, I’d probably 1/2 or 2/3 it if I made them again…couldn’t really taste the condensed milk later because of all the chocolate. My only other gripe really is I would NOT label these “healthy” at all. The recipe calls to cut it into 16 bars- which makes it a two bite tiny desert. If you cut into 9 bars (like most 8×8 inch pan desserts are cut) then you have nearly 500 calories and 40g of fat per bar 🙈🙈

  34. 3 stars
    The base of mine came out very crumbly. When I put it in, I thought that was ok because it looked crumbly on the video too, but it did not hold together when I took it out like hers did. My syrup took about double the time that it said to cook down, but that could be because I used a low heat and lite coconut milk instead of full fat. The portions are also only about bite-size if cut into sixteen slices. That being said, they are definitely delicious! A great appeaser for a sweet tooth that isn’t as unhealthy as the real version.

    1. I’m glad you enjoyed these bars, but sorry to hear that they were difficult for you to make. Did you change anything about the recipe? It sounds like the crust was too dry which caused it to crumble. 🙁

  35. 5 stars
    I used coconut sweetened condensed milk and it came out perfect!
    Thank you for the delicious recipe!
    Definitely a keeper!!!

    1. Ahh yay!! That makes me so happy to hear. So glad these bars turned out for you. Thanks for making them and for coming back to leave a review. I so appreciate it. 🙂

  36. 5 stars
    Made these last night for our vegan holiday cookie baking and the bars turned out amazingly! I love the coconut-pecan-chocolate combo and the texture is nice and crunchy. Definitely will be a repeat for me. Thank you!

    1. Woo!! That makes me so happy to hear. I’m so glad these bars turned out for you. Thanks for making them and for coming back to leave a review. I so appreciate it. 🙂

  37. 5 stars
    I used OAT Flour instead of almond flour, it was a success! Definitely on the top of my healthy dessert recipes. Delicious!!

  38. 5 stars
    Made this recipe a few times and have read a lot of comments about the milk and sugar taking a while to thicken up…definitely takes a while but it helps a lot to let the rim of mixture in the saucepan thicken up and then just keep pushing the mixture into the middle every few minutes! Regardless of how long it takes its worth the wait!! Can’t wait for my family to try these on Christmas!

    1. Ahh yay, so glad you loved this recipe!! I hope your family did too. Thanks for making them and for coming back to leave a review. I so appreciate it!

  39. Question – could you just use a can of sweetened condensed coconut milk & skip the simmer/reducing process part? Or would that be too runny?

  40. 5 stars
    I have made these several times now, they are a family favorite! One of my go-to desserts. Thank you for this awesome recipe! <3

    1. Yay!! So glad this recipe is a hit with your family! Thanks for the review. I so appreciate it, Julia!

    1. Hey Gloria – I’m not sure as I’ve never tried it, so I’m not sure how the bars will turn out! Let me know if you try it and how they turn out.

  41. 5 stars
    I made these for my husband the other day and he loved them! My daughter is coming home for a few weeks and I wanted to make them so she could eat them too, but she is allergic to pecans. Is there a good replacement or should I just omit all together? Thanks!

    1. You could use another nut like almonds or walnuts if she’s able to have those nuts!

  42. Just a note that sweetened condensed coconut milk is now available in stores. I saw it at Walmart this week!

  43. 5 stars
    These were amazing!!! We discovered magic cookie bars at a restaurant and I’ve been wanting to make a healthier, less sweet version at home. I used granulated monk fruit instead of coconut sugar and sprinkled a little bit of sea salt on top to balance the sweetness. They are soooo good, we couldn’t resist and ate several spoonfuls, warm out of the oven! The rest set nicely in the fridge. My hubby already finished the first batch and is asking for the second! Thank you!

    1. Ah so happy to hear these magic cookies were a success, Christy! So glad the substitution of monk fruit worked for you. Thanks so much for the review. I really appreciate it!

    1. Hi Jo – I have not tested this recipe with oat flour, but a few followers have and they did it turned out great. I hope you and your daughter love this recipe and I can’t wait to hear how it turns out! Enjoy!

  44. 5 stars
    This is literally one of the best things I have ever eaten. It hits all the notes, and it’s vegan. Amazing. My family is asking for it on a regular basis. It’s so simple to make that that is not a problem.
    Thank you for a wonderful recipe!!

    1. Ahh this is seriously the best, Danielle. I am so glad this recipe is a hit for you and your family. Thanks so much for giving it a try and for sharing your review & star rating, it means so much to me!