These classic, no-fuss magic cookie bars (also known as Hello Dolly Bars or 7-Layer Bars) are gooey, sweet, and incredibly easy to make—just layer the ingredients and bake! The “magic” comes from how the sweetened condensed milk binds everything into perfect chewy layers.
{Jump to Recipe}
Ingredients
Milk, Dark or Semi-Sweet Chocolate Chips
Organic Creamy Peanut Butter, smooth and spreadable
Unsweetened Coconut Flakes
Graham Crackers
Grass-Fed Butter, melted
Finishing Salt
Sweetened Condensed Milk
Pecans, chopped



Your message has been sent
Directions
- Line a 9×13 baking dish with parchment paper. Preheat your oven to 350°.
- Using a food processor or blender, pulse the graham crackers until they resemble crumbs. If they come out a little thicker, that is ok.
- Melt the butter. Add it to the graham crackers and stir together until combined. Spread the mixture on the bottom of the parchment paper and press down onto the paper.
- Next, add the chocolate chips. Spread evenly.
- Now, using a spatula, spread the peanut butter on top of the chocolate chips.
- Layer the coconut flakes next.
- Pour the sweetened condensed milk evenly over the entire mixture.
- Sprinkle some finishing salt on top.
- Lastly, add the chopped pecans.
- Bake in the oven for 25-30 minutes. I use a convection oven so mine were done baking at 28 minutes.



Tips
- For clean cuts, chill the bars before slicing. If you try and cut them while they are still warm, they will fall apart. So, just make sure they are cool before slicing.
- If your peanut butter is refrigerated, scoop the cup in a glass bowl and either allow it to come to room temperature or microwave it for about 30 seconds. It just needs to be creamy and smooth for spreading.
- Variations: Swap butterscotch for white chocolate or peanut butter chips; use almonds instead of pecans; add a pinch of sea salt on top.
- Storage: Keep in an airtight container at room temperature for up to 5 days, or refrigerate for a week. They freeze well for up to 3 months. If freezing in a container, layer them with wax or parchment paper.
- These are perfect for holidays, potlucks, or anytime you need a quick crowd-pleaser!


Why are These Magic Cookie Bars a Tradition?
I grew up in the 70’s and my mom would make these every year at Christmastime. At the time when I was little, I didn’t even know what they were made of haha. I just knew they were delicious. Now that my mom is getting older, she doesn’t have the ability to make them anymore. So, I’m carrying on her tradition. I’ve changed up the recipe just a tad to make it more health friendly. These are just like I remember when I was a child. Ooey-gooey-goodness.
FOOD ALLERGY
If you have a nut allergy, omit the peanut butter and pecans. Maybe go with a granola topping. I would also swap the peanut butter for white chocolate chips.
The Original Magic Cookie Bars
Here are the original ingredients for these ooey-gooey bars. As I stated above, I changed up a few of the ingredients. I don’t eat white sugar anymore and I couldn’t find butterscotch chips made with organic cane or coconut sugar. I figured peanut butter would be a great option. These bars are delicious and don’t require more sugar even in the coconut.
- Graham cracker crumbs
- Melted salted butter
- Granulated sugar
- Chopped pecans
- Semisweet chocolate morsels
- Butterscotch morsels
- Sweetened flaked coconut
- Sweetened condensed milk


What are the 7-Layers in This Recipe?
- Graham Cracker Crumbs
- Chocolate Chips
- Creamy Peanut Butter
- Sweetened Condensed Milk
- Unsweetened Coconut Flakes
- Finishing Salt
- Chopped Pecans
Make Your Own Graham Crackers
Using simple clean ingredients, you can make your own graham crackers and then turn them into crumbs.
History of these Magic Cookie Bars
The core recipe—layering ingredients over a graham cracker base and baking with sweetened condensed milk—existed in various forms before the 1960s, appearing in local newspapers and community cookbooks under names like Graham Chip Squares, Chocolate Graham Squares, Chewy Delights, or simply Seven-Layer Cookies.
Borden’s Eagle Brand sweetened condensed milk played a key role in popularizing the dessert further by printing a similar recipe on their cans in the 1960s, branding it as Magic Cookie Bars (or Seven Layer Magic Cookie Bars), emphasizing the “magical” way the condensed milk transforms the layers during baking.

Origin of Hello Dolly
The modern version gained massive popularity in the mid-1960s, coinciding with the Broadway musical Hello, Dolly! (which opened in January 1964, starring Carol Channing, and became a cultural phenomenon).
- One of the earliest printed references to the name “Hello Dolly” appeared on July 22, 1965, in the Ada (Oklahoma) Evening News as “Hello Dolly Cookies.”
- A widely cited milestone came on September 19, 1965, when food columnist Clementine Paddleford featured a recipe called “Hello Dolly Cake” in This Week magazine, submitted by 11-year-old Alecia Leigh Couch from Dallas, Texas, who credited it to her grandmother.
The exact connection to the musical remains unclear—no direct tie to the show or its stars (like Carol Channing) has been confirmed—but the timing and catchy name helped it spread rapidly through newspapers and word-of-mouth.
Pin For Later

See my full disclosure here.
Tools Used in This Recipe
9×13 Dish – This is similar to mine or I like that this one has a lid.
Resources
https://www.mashed.com/264544/the-untold-truth-of-magic-cookie-bars
https://www.southernliving.com/recipes/hello-dolly-bars

Classic Magic Cookie Bars
Ingredients
Method
- Line a 9×13 baking dish with parchment paper. Preheat your oven to 350°
- Using a food processor or blender, pulse the graham crackers until they resemble crumbs. If they come out a little thicker, that is ok.
- Melt the butter. Add it to the graham crackers and stir together until combined. Spread the mixture on the bottom of the parchment paper and press down onto the paper.
- Next, add the chocolate chips. Spread evenly.
- Now, using a spatula, spread the peanut butter on top of the chocolate chips.
- Layer the coconut flakes next.
- Pour the sweetened condensed milk evenly over the entire mixture.
- Sprinkle some finishing salt on top.
- Lastly, add the chopped pecans.
- Bake in the oven for 25-30 minutes. I use a convection oven so mine were done baking at 28 minutes. Allow to cool and enjoy.
Notes
- For clean cuts, chill the bars before slicing. If you try and cut them while they are still warm, they will fall apart. So, just make sure they are cool before slicing.
- If your peanut butter is refrigerated (it will be hard), scoop the cup in a glass bowl and either allow it to come to room temperature or microwave it for about 30 seconds. It just needs to be creamy and smooth (not runny) for spreading.
- Variations: Swap butterscotch for white chocolate or peanut butter chips; use almonds instead of pecans; add a pinch of sea salt on top.
- I cut my bars in 2×2 inch squares. If you do smaller cuts, you’ll receive more bars.
- Storage: Keep in an airtight container at room temperature for up to 5 days, or refrigerate for a week. They freeze well for up to 3 months. If freezing in a container, layer them with wax or parchment paper.
- These are perfect for holidays, potlucks, or anytime you need a quick crowd-pleaser!
I hope you enjoy making this recipe and sharing them with friends and family. Please share this post over on Pinterest and tag me over on Instagram. I’d love to see how you make yours.

Wendy Lea Walker, NTP
Nutritional Therapy Practitioner
I’m Wendy. A wife, empty-nester mama, homemaker, homebaker, gardener and small-time farmer. I love sharing wisdom and mistakes I’ve learned along the way. Anyone can garden or homestead, no matter where you live. It’s a mindset. You just have to start somewhere. I believe food is medicine. Feed the body real whole foods and healing will begin. I’ve learned to slow down over the years from all the noise that came with life and enjoy creating a simple home.


Leave a Reply