Buttery coconut walnut bars filled with raspberry jam and white chocolate ready in 45 minutes.
In my Austin kitchen, I often find myself torn between making a fruit crumble and baking a batch of sturdy cookies. These Raspberry Coconut Bars are the perfect compromise, marrying the buttery chew of a cookie with the sticky sweetness of a fruit tart. They remind me of the "magic bars" often found at Texas church potlucks, but with a brighter, fruit-forward profile. The combination of toasted walnuts, sweet coconut, and tart raspberry preserves creates a complex texture-crisp on top, jammy in the middle, and soft on the bottom. They are incredibly resilient, making them my top choice for packing into picnic baskets for an afternoon at Zilker Park or sending in care packages to friends.
The dough for the base is quite stiff and sticky due to the coconut. To make spreading the raspberry preserves easier without tearing up the bottom layer, empty the jar of preserves into a small bowl first and whisk it vigorously with a fork. This loosens the gelatinous set of the jam, turning it into a spreadable sauce that glides over the dough effortlessly.
The Ultimate Potluck Sweet

Why You'll Love This Recipe
- Textural Complexity: You get the crunch of walnuts, the chew of coconut, the smoothness of white chocolate, and the stickiness of jam all in one bite.
- Sturdy Structure: Unlike some fruit bars that fall apart, the coconut-infused dough holds its shape well, making these easy to eat by hand.
- Customizable Sweetness: While rich, the tartness of the raspberry preserves cuts through the sugar of the white chocolate and coconut.
- No Rolling Pin: The crust is a simple press-in dough, eliminating the need for chilling, rolling, or flouring your countertop.
Ingredients
To ensure the layers set properly, using the right components is essential. Here is what you need:
- Butter: ¾ cup, softened. This is crucial for creaming with the sugar to create a light crumb.
- Sugar: 1 cup granulated sugar provides the structural sweetness for the cookie base.
- Egg: 1 large egg, at room temperature, binds the dough.
- Vanilla Extract: ½ teaspoon adds aromatic depth.
- All-Purpose Flour: 2 cups provides the base structure.
- Baking Powder: ¼ teaspoon gives the dense dough just enough lift to be tender rather than hard.
- Coconut: 2 cups sweetened shredded coconut, divided. It adds moisture and chewiness to both the crust and the topping.
- Walnuts: ½ cup chopped. The tannins in the walnuts balance the sweetness of the white chocolate.
- Raspberry Preserves: One 12-ounce jar. I prefer preserves with seeds for texture, but seedless jam works if you prefer a smoother filling.
- White Baking Chips: 1 cup adds creamy pockets of vanilla flavor.
How to Make Raspberry Coconut Bars

Cream the Butter and Sugar
Preheat your oven to 350°F. Grease a 13x9-inch baking pan with butter or cooking spray. In a large bowl, cream the softened butter and sugar until the mixture is very light, pale, and fluffy. Do not rush this; let it go for 5 to 7 minutes to aerate the butter properly.
Mix the Dough
Beat in the egg and vanilla extract until well combined. In a separate small bowl, whisk together the flour and baking powder. Gradually add the dry ingredients to the creamed mixture, beating on low speed. The dough will be thick. Stir in 1-¼ cups of the sweetened coconut and the chopped walnuts by hand to ensure they are evenly distributed.
Create the Base
Take about ¾ of the dough mixture and press it firmly into the bottom of the prepared pan. I find that lightly flouring my fingers or using the bottom of a measuring cup helps create an even, compact layer.
Layer the Filling
Spread the raspberry preserves evenly over the dough base. Sprinkle the white baking chips and the remaining ¾ cup of coconut over the jam layer.
Add the Topping
Take the remaining dough and crumble it over the top of the jam and coconut layer. It will not cover the surface completely; you want gaps where the jam can bubble through. Press the crumbs down very lightly just to ensure they adhere to the jam.
Bake and Cool
Bake for 30 to 35 minutes. You are looking for the coconut topping to turn a golden brown and the jam to be bubbling slightly near the edges. Remove from the oven and cool completely in the pan on a wire rack. The filling needs to solidify before you cut it, or the bars will be messy.
Common Mistakes to Avoid
- Using Cold Jam: If you dump cold, stiff jam directly onto the soft dough base, you will tear holes in the crust when trying to spread it. Stir the jam first.
- Overbaking: Coconut burns quickly. Keep an eye on the oven around the 30-minute mark. If the coconut tips are browning too fast but the center is jiggly, tent loosely with foil.
- Cutting Too Soon: White chocolate and hot jam are liquid when warm. If you cut these bars before they are room temperature, they will lose their structural integrity.
Tips and Tricks for Success
- The Parchment Sling: For the easiest removal, line your baking pan with parchment paper, leaving an overhang on the two long sides. Once cooled, you can lift the entire slab out of the pan and cut it on a board for clean, sharp edges.
- Toast the Walnuts: Toasting the walnuts in a dry skillet for 3 minutes before adding them to the dough will intensify their nutty flavor and keep them crunchier.
- Variety in Chips: Use high-quality white chocolate chips (like Ghirardelli) rather than generic "vanilla flavored" chips, which can be waxy and refuse to melt.
Variations
- Apricot Almond: Swap the raspberry preserves for apricot preserves and substitute the walnuts for slivered almonds.
- Tropical Twist: Use pineapple preserves, macadamia nuts instead of walnuts, and add a pinch of dried ginger to the flour mixture.
- Dark Chocolate: If you find white chocolate too sweet, semi-sweet or dark chocolate chips offer a sophisticated, slightly bitter contrast to the sweet coconut.
How to Serve
These bars are rich enough to stand alone as a finger food dessert. They pair exceptionally well with black tea or a dark roast coffee, which helps cleanse the palate of the sweetness. They also look beautiful arranged on a platter with fresh raspberries.

Make Ahead and Storage
- Storage: Store cut bars in an airtight container at room temperature for up to 4 days. If your kitchen is particularly hot or humid, store them in the refrigerator to keep the jam from becoming too sticky.
- Freezing: These bars freeze excellently. Wrap cooled bars individually in plastic wrap and place them in a zip-top freezer bag. Freeze for up to 3 months. Thaw on the counter for 30 minutes before eating.
Recipe Notes / What I Learned
During testing, I found that sweetened shredded coconut adds significant moisture. If you attempt to use unsweetened desiccated coconut, the dough will be much drier and crumbly. If you must use unsweetened, add an extra tablespoon of melted butter to the dough.
Nutrition Snapshot
One bar contains approximately 240 calories, 12g fat, and 32g carbohydrates.

Raspberry Bars with Coconut
Equipment
- 13x9-in. baking pan greased
- Large bowl
- Hand mixer
- Wire rack
Ingredients
Group: Dough & Topping Base
- ¾ cup butter, softened
- 1 cup sugar
- 1 large egg, room temperature
- ½ teaspoon vanilla extract
- 2 cups all-purpose flour
- ¼ teaspoon baking powder
- 2 cups sweetened shredded coconut, divided
- ½ cup chopped walnuts
Group: Filling & Mix-ins
- 1 jar (12 ounces) raspberry preserves
- 1 cup white baking chips
Instructions
- Preheat oven to 350°. In a large bowl, cream butter and sugar until light and fluffy, 5-7 minutes. Beat in egg and vanilla. Combine flour and baking powder; gradually beat into creamed mixture. Stir in 1-¼ cups coconut and walnuts.
- Press ¾ of the dough into the bottom of a greased 13x9-in. baking pan. Spread with preserves. Sprinkle with chips and remaining ¾ cup coconut. Crumble remaining dough over the top; press lightly.
- Bake until golden brown, 30-35 minutes. Cool in pan on a wire rack. Cut into bars.
Notes
Nutrition
FAQs
Can I use fresh raspberries instead of preserves?
I do not recommend using fresh berries for this specific recipe. Fresh fruit releases a lot of water during baking, which will make the bottom crust soggy. The concentrated sugar and pectin in the preserves are necessary for the bars to hold together.
Why is my crust crumbly?
If the crust falls apart, it likely wasn't pressed down firmly enough before baking, or the butter was too cold when mixing, preventing the dough from binding properly.
Can I omit the nuts?
Yes, you can omit the walnuts for a nut-free version. You may want to increase the coconut in the dough by ¼ cup to make up for the lost volume.




