These Paleo Magic Cookie Bars are just as rich and delicious as the classic seven-layer bars you know and love! This gluten-free, vegan, and refined sugar-free version features an almond flour crust and homemade coconut milk caramel, making it a healthier magic cookie bar that you’ll be just as obsessed with.

Let’s talk about my favorite childhood dessert for a minute: Magic Cookie Bars. Also known as Seven Layer Bars or Hello Dolly Bars, this chewy, chocolatey dessert is truly delicious and decadent.
I really don’t know that I’ve ever had someone not love them. The combination of so many delicious things piled on top of a buttery graham cracker crust and topped with sweetened condensed milk can only end up delicious.
My mom and I would make so many batches of these for Christmas every year when I was growing up. When I was little, I was constantly sneaking outside to grab a bar (or three) out of the freezer in our garage where my mom would attempt to hide them from us.

Why Make These Paleo Magic Cookie Bars
If you grew up loving classic seven-layer bars (aka magic cookie bars) like me, you’ll adore this healthier twist. These Paleo Magic Cookie Bars are made without gluten, dairy, or refined sugar — but they’re still every bit as rich, gooey, and satisfying.
Here’s why they’re worth baking:
- Naturally gluten-free and dairy-free – made with wholesome ingredients like almond flour, coconut milk, and coconut sugar.
- Indulgent flavor with healthier swaps – a creamy caramel layer, dark chocolate, and toasty coconut taste just like the original, without the heavy processed ingredients.
- Simple to prepare – just layer, bake, and let them set for a treat that looks impressive but comes together easily. They’re especially easy if you skip making the caramel yourself, and use a sweetened condensed coconut milk instead.
- Perfect for holidays and gatherings – they keep well in the fridge or freezer, so you can make them ahead of time and always have a crowd-pleasing dessert ready.
- Nostalgic and comforting – these bars capture the magic of the childhood favorite while fitting a modern, Paleo-friendly lifestyle.

Ingredients Breakdown
Here’s what you’ll need to make these Paleo Magic Cookie Bars and why each ingredient matters:
- Full-fat coconut milk – the base of the homemade caramel, giving it that creamy, luscious texture you’d usually get from condensed milk.
- Coconut sugar – a natural sweetener with a rich, caramel-like flavor that deepens the flavor.
- Coconut butter – replaces melted butter in the crust, and it’s used to thicken the caramel.
- Vanilla extract – adds warmth and complements the sweetness of the caramel.
- Almond flour – forms a sturdy, nutty crust that holds everything together without gluten, while giving a similar texture vibe to graham cracker crumbs.
- Cinnamon – adds a cozy spice that pairs perfectly with the caramel and nuts.
- Sea salt – balances the sweetness and enhances all the flavors.
- Dark chocolate chips – the gooey, melty layer that makes these bars irresistible.
- Walnuts + almonds – add crunch, healthy fats, and a nutty balance to all the sweet layers. You can substitute with pecans, peanuts, or any other nut you love.
- Unsweetened flaked or shredded coconut – toasty and chewy, this finishing touch makes the bars taste just like the classic magic cookies you remember.
The toppings are remarkably similar to the classic magic bars recipe, except for omitting the butterscotch chips. I couldn’t think of a reasonable substitute, and the original chips weren’t a significant loss for me. The bars are still plenty sweet and decadent without them!
Need a shortcut? Skip making the caramel yourself, and use a can of sweetened condensed coconut milk to make this a super quick and easy recipe!

What’s the best way to store them?
My personal storage preference is to keep them in an airtight container in the refrigerator or freezer. It keeps them super chewy and absolutely delicious. They’ll last a week or two in the fridge, or a few months in the freezer.
They’ll be good at room temperature for a few days, if you choose to keep them that way.

Craving healthier holiday treats?
Healthy Homemade Chocolate Recipe
This easy recipe for homemade Chocolate Chunks makes delicious dark chocolate that melts in your mouth with only three ingredients! It’s perfect to use as a Paleo-friendly or refined sugar-free alternative in any recipes calling for chocolate chips or chunks.
Homemade Healthy Cranberry Bliss Bars
These Homemade Cranberry Bliss Bars are a homemade take on the Starbucks holiday favorite! These cakey blondies are chewy and loaded with cranberry, orange, and white chocolate flavors. They’re gluten-free, paleo, and vegan.

Paleo Magic Cookie Bars (Gluten Free + Vegan)
Ingredients
For the coconut milk caramel (see notes for a shortcut)
- 1 15.5 oz can full-fat coconut milk
- ½ cup coconut sugar
- 2 tablespoons coconut butter, you can substitute vegan butter or coconut oil
- ½ teaspoon vanilla extract
For the bars
- 1 cup (96g) almond flour
- ½ teaspoon cinnamon
- ½ teaspoon sea salt
- 3 tablespoons coconut butter, melted
- ¾ cup dark chocolate chips
- ½ cup coarsely chopped walnuts
- ¼ cup coarsely chopped almonds
- ½ cup unsweetened flaked coconut
Instructions
For the coconut milk caramel
- In a heavy saucepan, heat the coconut milk and sugar over medium heat, stirring often, until coconut milk begins to boil. Lower heat to simmer and reduce by half, stirring often to prevent the sugar from scorching. (If thicker, caramelized sugar begins to form on sides or bottom, use a whisk to reincorporate it.)
- When it reaches a similar consistency to a thick sweetened condensed milk or a drippy caramel sauce, in around 30 minutes, add 2 tablespoons coconut butter and vanilla. Stir well and remove from heat. You should end up with a little over a cup of caramel-colored, sweetened coconut milk.
For the crust/bars
- Preheat the oven to 350°F and line an 8×8″ pan with parchment paper, then lightly grease with coconut oil.
- While the caramel is simmering (be sure to continue stirring every few minutes), mix together the almond flour, cinnamon, salt, and coconut butter. Sprinkle the crust mixture into the prepared baking pan. Using your fingers or a spatula, press the mixture down in an even layer, covering the bottom of the baking dish.
- Sprinkle the chocolate chips, chopped nuts, and coconut flakes evenly over the crust. Pour the sweetened coconut milk evenly over everything. Bake for 25-30 minutes, until lightly browned.
- Let chill in the refrigerator for about an hour or until completely chilled and set. Cut into 16 squares with a sharp knife and serve!





Hi! I’m planing on making these this week, and was looking over the ingredients. I’m not sure how much canned coconut milk I need to ise. We use ml and grams where i’m from. I googled 115 onces and the result came back 3400 ml. It seemes a lot. How many cans do I need?
Thanks,
Denisa
Hi Denisa, it’s not 115 ounces, but one 15.5 oz can of coconut milk, which would be about 440g. It’s one standard size can here in the US. Does that help? Hope you enjoy the bars!
I have never had a magic cookie bar (I’m from the Netherlands and don’t think they are sold here) but man I want to make these!! Pinning the recipe to make later for sure!
I hope you love them Simone – they’re one of my favorites, and I hope your first foray into Magic Cookie Bars is a delicious one :) enjoy!
Hi! I’m planing on making these this weekend, but have no idea how much cocnut milk I need. I googleled form oz to ml and the result was 3400 ml which seems a lot. Help :-). How much milk do I need?
Hi Denisa – I think you’re misreading! It’s one 15.5 oz can – not 115 oz. I’m going to fix it on the post so no one else makes the mistake. Hope this helps, and hope you love the bars.
Thank you! Can’t wait to sink my teeth into them :-)
Rachel as always you rock! I love the adaptation of 7 layer bars! Like you, I grew up making these and our whole family love them. Last year I was determined to make or find a replacement for condensed milk, before I knew you had this recipe of course. I found a sweetened coconut condensed milk from Nature’s Charm. It’s good and does the trick. The ingredients are coconut milk, sugar and salt , that’s it. So if your in a pinch and want to make grainfree 7 layer bars, the Nature’s Charm coconut condensed milk is a great alternative, but I am sure not as good as your homemade version. Thank you for sharing your brilliant recipes!
Thanks so much Elaine! I actually picked up a can of that sweetened coconut condensed milk and have been meaning to try it with these. Thanks for letting me know how it is! Hope you’ll give these a try this year :)
I just made these and they are fantastic!! I’ve never had magic bars before and they might be one of the best things I’ve ever eaten. Thanks so much for creating an awesome paleo dessert option!
Yay so thrilled to hear you’re loving them! One of my faves, too. Thanks Alyssa!
Can I use coconut oil instead of coconut butter?
Yes that will work! Enjoy :)
Made these today but the caramel topping stayed on the surface rather than sinking down as the pictures suggest. Followed directions carefully so not sure why this happened. They taste delicious though.
Hi Elsa, I’m guessing what must have happened is the caramel got too thick so it wasn’t thin enough to drip between the nuts/chocolate/coconut. Next time, I’d try cooking for a little less time – it should be the consistency of sweetened condensed milk or a drippy caramel sauce. I’ll update the recipe to make it more clear. Glad you’re still enjoying them though, sorry for the trouble!
Hello!
I love your blog and alternative healthy options. Just a quick question. Did you know that raw cacao contains a very high percentage of omega fatty acids. So, while this recipe is amazingly vegan, gluten free and virtually sugar free, it contains rancid fats, because cacao is heat sensitive. Do you have an alternative to add instead of chocolate nibs?
Looking forward to hear from you!
Hi Lise-Marie, this recipe doesn’t use cacao nibs, it uses dark chocolate. Feel free to leave out the chocolate if it bothers you. Enjoy!
Do you mean to oil the parchment paper?
Hi Shell, just put a little coconut oil on the parchment paper to help prevent the bars from sticking to the paper. Enjoy!
These turned out really well for gluten free and paleo. I used vegan butter in place of the coconut butter. I would make them again.
So glad you enjoyed them, Tamz!