Magic Coconut Bars are simply going to win you over. It only takes a few minutes to put them together and the combination of chocolate, coconut and nuts really just flows together so perfectly.

Magic Coconut Bars hit all the craving notes. They are sweet, a little salty, crunchy and chewy. The first time my friend brought them over to my house for a get-together, I couldn’t stop myself from going back to the tray time and time again. I can’t wait for you to try them!
This recipe makes about 40 medium-sized bars, making them great for a party. Honestly, my boys sometimes ask for these bars on their birthdays instead of having traditional cakes. But, no matter what occasion you make them for, I promise you they will get gobbled up.
What are Magic Cookie Bars?
Magic Bars are pretty much packed with every decadent morsel you can think of. For this reason, I have also heard them referred to as “Kitchen Sink Bars” because they contain every ingredient but the kitchen sink! Corny, I know…
Even though these bars have a ton of components, the flavors just work so well together. First, you start with a sweet graham cracker crust made with butter, baking powder, flour and brown sugar. While you bake the crust in the oven for a short time, you will mix up coconut flakes, chocolate chips and sweetened condensed milk in a bowl. Spread this mixture on top of the crust and finish the bars off in the oven!






Ingredients to Add to Magic Cookie Bars
- Graham Crackers: Any brand of graham crackers will work well. If you want a bit more convenience, you might be able to find pre-made graham cracker crumbs at the grocery store.
- Coconut Flakes: Feel free to use sweetened or unsweetened coconut flakes. It is up to have much of a sweet tooth you have!
- Nuts: I love using walnuts or pecans, but use whatever nut you love!
- Chocolate: Use dark, milk or semi-sweet chips. I prefer to use semi-sweet since there is so much sugar in these bars.
Note: I have seen some cooks substitute butterscotch chips for chocolate chips. You could also use half-and-half!
- Condensed Milk: Condensed milk is what makes this bar so bomb. As it bakes, it turns the bar a golden, lightly browned color and adds a yummy dulce de leche flavor.
- Butter: I love European butters for their richness and higher fat content. My favorites are Kerrygold and Plugra.
Hot tip: Allow the butter to reach room temperature before incorporating it into your graham cracker crust!

Storing Magic Cookie Bars
Magic Bars will stay fresh for a few weeks in an airtight container or Ziploc Bag on the counter. Although I would be surprised if you had them for that long :). They are too delicious to not be gone in a couple of days.
Refrigerating Magic Bars
Although you can store Magic Bars on the counter, I think your safest bet here is to keep them refrigerated between snacking — especially if you live in a hot climate. These bars are prone to melting!
Can you Freeze Coconut Bars?
Yes, you can! It would be a good idea to freeze them if you want to preserve them for a few months. Place them in an airtight container, ensuring you separate layers of cookies with parchment paper to prevent sticking. Allow them to defrost in the refrigerator before snacking.
Recipe
Ingredients
Crust
- 2 cup graham cracker crushed
- 1/2 cup flour
- 1 tsp salt
- 14 tbsp Unsalted Butter melted
- 2/3 cup brown sugar
- 1 tsp baking powder
Topping
- 3 cup coconut flakes
- 2 cup semi sweet chocolate chips
- 24 oz condensed milk
- 2/3 cup chopped walnuts
Instructions
- Crush gram crackers using food processor or blender. In a large bowl combine together flour, baking powder, salt, brown sugar and crackers. Add butter to the mixture and mix until you get a soft crumbly mixture.
- Spread the dough evenly in a thin layer on a lined baking sheet (size 11X16), pressing down with your hands. Bake for 10 minutes at 350 °F.
- Combine coconut flakes with chocolate chips and walnuts. Drizzle condensed milk over the mixture and stir to combine.
- Spread the mixture evenly over the crust. Bake for another 20 minutes at 350 °F.
- Remove the baked goodness from the oven and let it cool to a room temperature. Cut into sizes of your choice and serve.
Mine are in the oven as we speak! Can't wait to try them.
Hi Suzanne, Hope they were delicious! Let us know how you liked them.
I made these 2 years ago and I will be making them again! They were so good I didn't share them :c.
Hi Ty, That's too funny! I am glad to hear that you love this recipe! I appreciate your feedback!
Hi I made these today and the tasted exactly like my childhood except I added 1:1 semi sweet chocolate chips and butterscotch chips that’s how I used to make them it’s soo good
Hi Gabriel, that's great to hear! Thank you for the feedback. Enjoy!
Great recipe! I reduced the different sugars (condensed milk, chocolate chips) due to preference 🙂
Hi Lily, Great to hear you were able to make the recipe to your liking! Thanks for sharing. Enjoy!
14 Tbsp butter??
Hello, Terry. That is correct!
Can you shred candied coconut and use that.
Hey Brandy, you can as long as they are in equal size pieces.
I made these for the first time today and oh my were they delish! Thank you so much for your recipe. It will be in heavy rotation for sure!!
I'm so glad you enjoyed them, Kristi! Thank you for taking the time to comment!
Years ago these were called Hello Dolly bars.
Hahaha, that’s a great name for them!
Great idea to add half butterscotch and half chocolate chips to the recipe. Gives it a little extra bit of flavor. Can't wait to try these!
Jen, yes, it really does elevate the flavors. Hope you love them!
One of our favorite bars to make! Love the layers and the coconut!
Oh, I am so glad! Thank you for sharing!
These coconut bars are so easy to make and so delicious! They are loaded with flavors and loved by everyone!
Thank you Valentina, so good to hear!
My mother made these for us when I was a little girl and called them "Dream Bars" but now everyone calls them 7 Layer Bars and sometimes people add the Butterscotch chips which are good but I am a purest and prefer them the way Mom made them.
I like that name, Dream Bars! I would agree on the name. Butterscotch would be a good addition, thanks for sharing!
is that sweetened condensed milk?
Yes, use sweetened condensed milk.
How many days in advance can this be made?
They can be stored in a airtight container for up to a week.
I really really love those. They are so easy to make. And my kiddos love them as well. Thanks for the recipe.
That is so awesome to hear! 🙂 I think I will be making them for Christmas
are the coconut flakes supposed to be sweetened for this recipe? Thanks!
Yes, sweetened coconut flakes that you see most commonly sold at grocery stores.
I used 11X16
what size of baking sheet do you need?
perfect, let me know how they turn out 🙂
Oh that makes more sense. Thank you! I'll try them today:) i have been waiting for this recipe;)
I really missed that step. I am sorry. Made a correction 🙂
Hello, umm so it's gram crackers OR flour salt and brown sugar? Are the steps the same for making crust from scratch? Thank you can't wait to try these!!!:)