Skip to Content

Best Keto Magic Cookie Bars – 7 Layer Bars

You’re going to love these delicious Keto Magic Cookie Bars, they are the BEST ones you’ve ever had!  Easy to make, Low Carb and Sugar-Free, a perfect dessert for your next party!

Magic Cookie Bars Recipe

So I’m not going to lie, I’ve never been a fan of magic cookie bars, for 2 simple reasons…I don’t like nuts, and I don’t like coconut. Now that being said, I absolutely love these bars! I know weird right?

I was hesitant to make these mostly because I didn’t think I was going to like them but so happy I chose to make them. 

Normally everything about these bars would be a big no-no on a low carb diet due to their graham cracker crust, sugar, and condensed milk. But don’t worry, I’ve fixed all the problems and concerns with this recipe.

Not only did we make a delicious almond flour crust, but wait for it …we made a beyond scrumptious Sugar-Free Condensed Milk. It’s a key ingredient for these magic bars, and let me tell you, you’re going to love it. 

This is such an easy dessert to bring over to your next dinner party, and one of the best things about them is that everyone who’s low carb can enjoy them!

Since coming up with this recipe, I’ve made them at least a dozen times. Mostly because my mom who is diabetic has asked me for a nice sweet treat that she can actually eat.

I hope you all enjoy these Keto Magic Cookie Bars as much as we all have. 

What is the Difference Between 7 Layer Bars, Hello Dolly and Magic Cookie Bars?

You may be wondering “Now, what is a Hello Dolly?” I asked myself the same question, and the answer I found was that it’s the same thing as a Magic cookie bar or a 7 layer bar. It seems like it’s more of an older generation thing to call them Hello Dollies. 

Traditional 7 Layer Bars, Hello Dollies, and Magic Cookie Bars are made with a layer of crushed graham cracker, then shredded coconut, walnuts or pecans, chocolate chips or butterscotch chips, and then, of course, topped with a can of condensed milk.

Some people have chosen to only use one type of nut or to use a mix of chocolate chips and butterscotch chips. These are the main ingredients, but you use them however you like.

So you may not hear it very often, but if someone asks you if you’d like a Hello Dolly, your response can be “Ohhhh, you mean a magic cookie bar?? Why yes I’d love one!”

What Ingredients are in Keto Magic Cookie Bars?

Keto Magic Cookie Bars ingredients

Almond Flour – this is used to make the bottom layer/crust. Nut flours have become such a staple in my low carb cooking and baking. It’s not a 1-1 ratio for regular flour, so you have to play around with the quantities. 

Sugar-free Condensed Milk – Try my recipe for low carb condensed milk. It’s super simple and only requires 4 ingredients. Cook time is only about 30 minutes, and most of it is simmering time. 

Sugar-free Chocolate Chips – I’ve been using Lily’s Dark Chocolate Chips. They have zero sugar added but are sweetened with stevia. Surprisingly, they don’t have the typical stevia aftertaste, which is great. Only 5 net carbs for 60 chips.

At some point soon though, I will be trying to my own sugar-free chocolate chips. But for now, it’s Lily’s Dark Chocolate Chips all the way. 

Pecans and Walnuts – I couldn’t decide whether I wanted to use pecans or walnuts, so I decided why not use both. This is totally up to you and what kind of nuts you like. 

Can I Eat Magic Cookie Bars on Keto?

Simply put, yes! With ingredients like almond flour, nuts, and heavy cream it is a great snack to have while on keto or any low carb/sugar-free diet.

Of course, being only 3.2 NET CARBS per square makes it even more appealing! 

How to Make Magic Cookie Bars:

The first thing you need to do to make low carb magic cookie bars is to come up with a good keto crust to replace the normal graham cracker crust. Not too hard actually, now that nut flours are so popular and versatile.

ready to make low carb Magic Cookie Bars Recipe
  • In a small bowl mix together almond flour, egg, salt, sweetener, and melted butter. Stir well with a spoon.
  • Now line an 8×8 baking dish with parchment paper and put the crust into the pan.
  • At this point, it’s really just easier to use your hands to press it down evenly.
making Keto Magic Cookie Bars crust
  • Using a fork, poke some holes into your crust. This let’s the air out which keeps your crust from expanding and breaking.

Now pop it into the oven and bake it for about 10 minutes on 400 degrees. It should have golden brown edges. 

Keto Magic Cookie Bars Crust

Roughly chop your pecans and walnuts. Add shredded unsweetened coconut, sugar-free chocolate chips, walnuts, and pecans.

Stir together in a small bowl or plastic container. Set aside. 

Magic Cookie Bars Toppings 7 Layer Bars

Once the crust has cooled for a few minutes, sprinkle your coconut/chocolate mixture over the crust. Don’t use it all right now though, leave 1-2 tablespoons for the last step. 

Keto Magic Cookie Bar crust and toppings

The next challenge was coming up with sugar-free condensed milk, which actually proved not to be a challenge at all.

With only 4 simple ingredients and a 30-minute cook time, this sugar-free condensed milk is easy, fast, and of course low carb. Click on the link to get my step by step instructions for making it: Sugar-Free Condensed Milk.

  • Now that your yummy condensed milk is made, pour the whole batch on top of the coconut/chocolate layer. Spread evenly making sure to cover everything up. 
Pouring condensed milk on Keto Magic Cookie Bars
  • If you choose to save a couple of tablespoons of your mixture, now sprinkle it on top of the condensed milk. I personally like doing it this way. 
toppings for Magic Cookie Bars
  • Bake at 350 degrees for about 10 minutes. Then transfer into the fridge for about 2 hours. Make sure the condensed milk has completely hardened before cutting into it. 
  • Take out the Magic Cookie Bars from the fridge and gently pull them out of the baking dish. If you grab the parchment paper and pull that straight up, it should lift the entire block of Magic Cookie bars.
cutting Magic Cookie Bars out of oven
  • Place the block on the counter and with a sharp knife, gently cut them into the desired amount of squares. We’ve found that 16 is a good number.
Keto 7 Layer Magic Cookie Bars Recipe

That’s it! Enjoy!

Different Ways to Make Low Carb Magic Bars

There are a few different ways you can change this up a bit. I don’t think I would change it too much, but here’s a couple of ideas you can do. 

  • Different types of nuts Almonds, cashews, peanuts, walnuts, pecans, hazelnuts just to name a few. I used a combo of pecans and walnuts, but you can use all of them, just 1 nut, or do a combo of 2, 3, or even 4 nuts. 
  • Your bottom crust – Mine is made from almond flour, but some people like to do almond flour mixed with a small amount of coconut flour. I’m not exactly sure how much coconut flour to add, but based on other crusts I’ve made it seems like you only need a couple of tablespoons of coconut flour added to 1-2 cups of almond flour. 
  • Dairy-free?? Sure…replace the butter in the crust with coconut oil, and in the condensed milk replace the heavy cream with full-fat coconut milk.   
  • Add more shredded coconut if you’re a big coconut fan, or take it out completely if you hate it or especially if you’re allergic. 
7 Layer Magic Bars Recipe

Do I Have to Use a Mixer?

Nope! An electric mixer is definitely not needed for these magic cookie bars.

Go old school with this recipe and just use a spoon, or in fact, you can use your hands too. I found that it actually works better.   

Do Magic Cookie Bars Need to be Refrigerated? How to Store them?

Keto Magic Cookie Bars Recipe low carb

Once you’ve made these 7 Layer Bars and they have finished chilling up in the fridge, you can leave them on your counter in an airtight container.

If your kitchen is at all humid or hot, you might want to stick them in the fridge. I’ve done it both ways. 

We brought these Magic Cookie bars to the beach for 2 days as a snack, and they were perfect in a container inside of our beach cooler. You’ll be able to tell if the condensed milk starts to melt a bit, and if that’s the case, just pop them in the fridge. Problem solved! 

Are you wondering though how long do Keto Magic Bars keep? Good question! I recently made a batch and my mom put them in a container and stuck them in the fridge, they lasted 3 weeks!

Just make sure they are kept in the fridge if keeping them for that long.

How to Freeze 7 Layer Bars

These keto magic cookie or 7 layer bars, whatever you want to call them, freeze wonderfully. Make sure that they are cooled completely, cut them into squares and wrap them individually in plastic wrap. 

Place them in an airtight container or a Ziploc bag, then pop them in the freezer. When ready to eat them, place them into the fridge for a few hours before serving

Best Keto Magic Cookie Bars Recipe

Other Low Carb Dessert Recipes:

If you’re in the mood for some other Keto Dessert recipes then try our:

All of them are Keto-friendly and low carb, and you and your family will love them!

clock clock iconcutlery cutlery iconflag flag iconfolder folder iconinstagram instagram iconpinterest pinterest iconfacebook facebook iconprint print iconsquares squares iconheart heart iconheart solid heart solid icon
Keto Magic Cookie Bars Recipe 7 Layer Bars

Best Keto Magic Cookie Bars – 7 Layer Bars

5 Stars 4 Stars 3 Stars 2 Stars 1 Star

5 from 1 review

  • Author: Stephanie Parlegreco
  • Total Time: 30 minutes
  • Yield: 16 Square Bars 1x
Save Recipe


You’re going to love these delicious Keto Magic Cookie Bars, they are the BEST 7-Layer Bars you’ve ever had!  Easy to make, Glute-Free, Sugar-Free, and the perfect dessert for your next party!




  • 1 ½ cups almond flour
  • 1 egg
  • ¼ cup swerve sweetener, granulated 
  • ¼ cup butter, melted
  • ¼ tsp salt


  • 1 recipe for my Sugar-free Condensed Milk
  • ½ cup unsweetened shredded coconut
  • ¼ cup chopped pecans
  • ¼ cup chopped walnuts
  • ½ cup Lily’s sugar-free chocolate chips


  1. Preheat oven 400 degrees. Line an 8×8 pan with parchment paper. 
  2. In a small bowl mix almond flour, 1 egg, swerve, salt, and melted butter. Stir until it’s combined well. 
  3. Transfer into the baking dish, and using your hands or a spoon spread out crust evenly. Take a fork and poke some holes into it so the crust won’t rise and crack. Bake for about 10 minutes or until the edges are golden brown. 
  4. Make the sugar-free condensed milk following the recipe in the link.
  5. Chop the pecans and walnuts into bite-sized pieces. Combine nuts in a bowl with the shredded coconut and chocolate chips. 
  6. Sprinkle coconut and nut mixture over the crust, leaving about 2 tablespoons remaining. 
  7. Pour condensed milk evenly over the crust trying to cover most of the mixture. 
  8. Sprinkle the remaining 2 tablespoons over the condensed milk. 
  9. Bake for about 10 minutes at 350 degrees. 
  10.  Take out of the oven and pop in the fridge. Keep in the fridge for about 2 hours or until the condensed milk has completely firmed up. 


NET CARBS – 3.2 per serving (1 Bar)

For my sugar-free condensed milk recipe click the link here in the instructions.

To make this dairy-free replace the butter with coconut oil in the crust, and in the condensed milk replace the heavy cream with full fat coconut milk.

Bake times for the crust might vary depending on your oven.

  • Prep Time: 10 minutes
  • Cook Time: 20 minutes
  • Category: Desserts
  • Method: Baking
  • Cuisine: American
Recipe rating 5 Stars 4 Stars 3 Stars 2 Stars 1 Star

Leigh Oskwarek

Wednesday 8th of April 2020

Hi May,

I am so happy that you liked our recipe for Magic Cookie Bars and condensed milk. I like them a lot too and we make them quite often. I cut them into small squares and keep them in the refrigerator so that when I feel like something sweet I pull a couple of pieces out. Just like you, I feel like I am eating something with a lot of calories. Thanks for your 5 -star rating. We hope you will try some of our other recipes too.


Wednesday 8th of April 2020

Absolutely perfect! Made it tonight and tastes exactly like a regular 7-layer magic bar. I almost feel guilt eating it because it tastes so good. Also, I can't believe how delicious your condensed milk recipe turned out. 5 Stars!