This post may contain affiliate links. Please read our disclosure policy.
A crisp shortbread crust is topped with a chewy gooey layer of pineapple and coconut to make these Pineapple Coconut Bars.
With a deep love of all things pineapple, I’ve been playing with the idea for Pineapple Bars for a while now and I’m thrilled to be sharing it with you at last!

Not too sweet and slightly tart, these bars are a fruity tropical drink in bar cookie form. I liked these bars so much that I am making them again this weekend for a family barbecue and I’ll be posting a gluten-free version next week as well.
Pineapple Recipes
When Dole asked me to create a pineapple recipe with their pineapple tidbits many years ago, my reply might have been the fastest yes I’ve ever typed. I’ve been partial to Dole pineapple ever since I started buying my own groceries.
Canned, fresh or frozen, I love pineapple in all forms. I didn’t even need to go to the store for the pineapple in this recipe. I had several cans ready to use, waiting in my pantry.
I have been on quite the pineapple kick lately, from pineapple salsa to this sriracha chicken stir-fry; I can’t get enough of the sweet kick that pineapple adds to almost any recipe.
One of the reasons Dole pineapple is my favorite pineapple is because the slices, chunks, and tidbits hold their shape very well. There are never soggy or wilted pieces of fruit in the can.
I love how easy it is to just pull a bag out of the freezer or open a can and immediately get to enjoy the juicy sweet pineapple flavor I crave. As much as I enjoy fresh pineapple recipes, sometimes I just don’t have the time or energy to mess with the cutting and slicing.
I keep pineapple on hand year-round to add a sweet, tropical flavor to meals, snacks, and desserts. If you’re interested, you can check out all the pineapple recipes on my blog here.

Coconut Recipes
Coconut and pineapple are a match made in tropical heaven. Whenever I can find a way to incorporate pineapple into coconut recipes and coconut into pineapple recipes, I go for it.
The texture of shredded sweetened coconut in these Pineapple Coconut Bars is off the charts delicious. The coconut adds a slight crunch to the smooth pineapple filling and looks pretty to boot.
I also love coconut sans pineapple and have had fun experimenting with different ways of using it in my baked goods, from Coconut Scone Cookies to Grandma’s Coconut Chews.

At the moment, these Pineapple Coconut Bars are all I need when it comes to fruity and tropical desserts. They’re also super easy to assemble and take less than an hour in the oven.
Perfect for parties, potlucks and afternoon snacks, everyone loves biting into these perfect pineapple coconut dessert bars. The flavors remind me a little of Pineapple Upside Down Cake but with a crisp, buttery crust and the perfect amount of coconut. If that sounds like your cup of tea, grab your pineapple and your shredded coconut and get baking.

Pineapple Coconut Bars
- Preheat the oven to 350 degrees. Combine the crust ingredients and press the mixture into the bottom of a well-greased or parchment-lined 10” square pan. Doubling this recipe will fill a 9×13 pan.
- Bake for 12 minutes (or 15 minutes for a doubled recipe).
- Remove from the oven and let the crust cool for 10 minutes while preparing the filling. Place the pineapple and 1 cup of shredded coconut in a bowl. Sprinkle with flour, brown sugar and salt. Stir to coat. Mix together the eggs, vanilla and lime and stir into the pineapple mixture.
- Pour the filling over the crust and top with the remaining coconut. Bake for 25-27 minutes, until the coconut turns golden brown. Let cool completely before slicing. Enjoy!

If you would like to double this recipe, it will fill a standard 9×13 pan. You can make this recipe in an 8, 9 or 10-inch square pan. Simply increase the cooking times by a minute or two for slightly thicker bars in the smaller size pans.
If you are doubling the recipe, simply drain the pineapple (saving the juice for Pineapple Rice or this Sweet and Sour Stir Fry) and use the full amount of pineapple in the can.
I highly recommend doubling the recipe, the bars freeze well and thaw perfectly in less than an hour!

What’s your favorite recipe to make with pineapple? If you’re looking for ideas, this Pineapple Fluff Salad features a dreamy mix of cream cheese, vanilla pudding, and whipped cream is loaded with juicy bits of sweet tropical fruit.

Pineapple Coconut Bars
Ingredients
Crust Ingredients
- ½ cup butter very soft or melted
- ½ cup light brown sugar
- 1 cup all-purpose flour
Filling Ingredients
- 2 eggs
- 1 tablespoon vanilla extract
- 1 tablespoon fresh lime juice
- 1/3 cup light brown sugar
- ¼ cup all-purpose flour
- ¼ teaspoon kosher salt
- 1 cup pineapple tidbits in 100% juice drained
- 1 cup shredded sweetened coconut
Topping Ingredients
- 1 cup shredded sweetened coconut
Instructions
Crust Instructions
- Preheat the oven to 350 degrees. Combine the crust ingredients and press the mixture into the bottom of a well-greased or parchment lined 10” square pan. Doubling this recipe will fill a 9×13 pan.
- Bake for 12 minutes (or 15 minutes for a doubled recipe). Remove from the oven and let the crust cool for 10 minutes while preparing the filling.
Filling and Topping Instructions
- Place the pineapple and 1 cup of shredded coconut in a bowl. Sprinkle with flour, brown sugar and salt. Stir to coat. Mix together the eggs, vanilla and lime and stir into the pineapple mixture.
- Pour the filling over the crust and top with the remaining coconut. Bake for 25-27 minutes, until the coconut turns golden brown. Let cool completely before slicing. Enjoy!
Video
Nutrition
Nutrition information is automatically calculated, so should only be used as an approximation.
{originally published 6/3/2013 – recipe notes updated 5/27/21}
Check out all of the Gluten Free Dessert Recipes on this website!

Disclosure: I was compensated to create a recipe for Dole Canned Pineapple (a product that I’ve used and loved in my own kitchen for years). All opinions shared about this product are my own.













Very good!!!
I’m so glad you like the bars, Amanda.
It did not work out for me..at all.. dismal failure. Crust was horrible
I’m sorry to hear that. Did you bake the crust, as directed, before adding the filling? What was wrong with it? Without being in your kitchen with you, it’s hard to guess what might have gone wrong.
So good, I did add a dash of salt making the bottom crust. Followed steps exactly and it turned out wonderful, a new favorite desert recipe for my family. Thank you!
I’m thrilled that you love the recipe!
is there an egg substitute with this please? ☺️
I haven’t tried that, but if there is an egg substitute that typically works for you, it’s worth trying here.
Not a coconut fan. Can I make this without it?
This is not a great recipe to make without the coconut. It provides a lot of the structure for these bars.
I will put a cup of bitter sweet chocolate chips melted with a Tbsp or two of melted salted butter in micro in micro wave in 15 second incrorrmrnts to melt and stir to mix and melt ,stir,drip over the pineapple cocoanut.
Also when I make cowboy candy I place about 5 or 6 pieces of Dole pineapple tid bits or chunks in bottom ( juice drained)of each 12 oz. mason jar then
place the cowboy candy cooked mixture over the pineappl pieces. After pressure cooking I wait at least 4 – 6 weeks before opening a jar to see ifvitcsuits me taste- wise. It makes for a delicious twist on my Recipe for these pickled jalepino peppers! So yummy!
I’m glad you’re enjoying the recipe. (And that pickled pineapple sounds great!)
Can you use crushed pineapple?
You can, but you won’t have the desired texture in the resulting bars.
Would lemon juice sub for the lime?
Sure thing, Roxann.
Excellent recipe…I doubled it then realized I only had one can of pineapple so I made half pineapple half peach …we liked the peach even better than pineapple but both were great!
I’m thrilled to hear that you love them!
These dessert bars had an incredibly wonderful tropical flavor. The crust was sublimely rich. The bars were easy to make. I did not have a 10-inch square baking pan, so I instead used an eight-inch pan and added two to three minutes of baking time. Instead of canned pineapple, I used fresh chopped pineapple, which worked perfectly. Great recipe and a definite keeper!
Awe! I’m so happy to hear you love them.