Finding a way to sneak vegetables into treats that your family will actually eat can feel like an uphill battle. You want to serve something wholesome, but let’s be honest – mentioning zucchini in a cookie recipe usually gets you some pretty skeptical looks from the kids.
That’s where these pineapple zucchini cookies come to the rescue. They’re soft, naturally sweet, and packed with hidden veggies that no one will even notice. Plus, the tropical pineapple flavor makes them feel like a special treat while still being something you can feel good about serving.

Why You’ll Love These Pineapple Zucchini Cookies
- Sneaky way to eat more vegetables – The shredded zucchini adds moisture and nutrition without affecting the taste, making these cookies a guilt-free treat you can feel good about serving to your family.
- Tropical flavor – The crushed pineapple and pineapple juice give these cookies a sweet, fruity taste that’s like a mini vacation in every bite.
- Healthier than regular cookies – Made with whole wheat flour and packed with real fruit and vegetables, these cookies are a better-for-you option that still satisfies your sweet tooth.
- Soft and chewy texture – The combination of butter, pineapple, and zucchini creates cookies that stay moist and tender, perfect for lunchboxes or afternoon snacks.
What Kind of Zucchini Should I Use?
For these cookies, you’ll want to use medium-sized zucchini that feel firm and have smooth, unblemished skin. Small to medium zucchini tend to have fewer seeds and more tender flesh, which makes them perfect for baking. Avoid really large zucchini since they can be watery and have tough seeds that might affect the texture of your cookies. When shredding your zucchini, there’s no need to peel it first – the skin adds extra nutrients and you won’t even notice it in the finished cookies. Just make sure to pat the shredded zucchini dry with paper towels before mixing it into your dough to prevent the cookies from becoming too moist.

Options for Substitutions
These cookies are pretty forgiving when it comes to swaps – here’s what you can try:
- Butter: You can substitute with coconut oil (use solid, not melted) or vegetable oil for a slightly different texture. For dairy-free options, vegan butter works great too.
- Crushed pineapple: Fresh pineapple works if you dice it really small and drain well. You could also try crushed peaches or even applesauce, though the flavor will change a bit.
- Whole wheat flour: All-purpose flour is a perfect swap if that’s what you have. For gluten-free baking, try a 1:1 gluten-free flour blend, though the texture might be slightly different.
- Shredded zucchini: Yellow squash works just as well and tastes nearly identical. Make sure to squeeze out excess moisture with a clean kitchen towel before adding to the batter.
- Brown sugar: White sugar works fine, though you’ll lose some of that molasses flavor. You can also try coconut sugar or maple syrup (reduce other liquids slightly if using syrup).
- Pineapple juice: Orange juice or apple juice make good substitutes. In a pinch, you can use the juice from your crushed pineapple can.
Watch Out for These Mistakes While Baking
The biggest mistake when making pineapple zucchini cookies is not draining the crushed pineapple and zucchini properly, which can lead to cookies that spread too much and turn out flat and soggy. Make sure to squeeze the shredded zucchini in a clean kitchen towel to remove excess moisture, and drain the pineapple in a fine-mesh strainer for at least 15 minutes before using. Another common error is overmixing the dough once you add the flour – mix just until combined to keep your cookies tender rather than tough. Since whole wheat flour absorbs more liquid than regular flour, you might need to add a tablespoon or two of pineapple juice if your dough seems too dry, but add it gradually to avoid making the dough too wet.

What to Serve With Pineapple Zucchini Cookies?
These soft, fruity cookies are perfect with a cold glass of milk or your morning coffee – the pineapple and zucchini make them moist enough to pair beautifully with something creamy to drink. I love serving them as an afternoon snack alongside some vanilla Greek yogurt or even a scoop of vanilla ice cream if you want to turn them into a simple dessert. They’re also great packed in lunchboxes or enjoyed with a cup of herbal tea like chamomile or green tea. Since they have that lovely tropical pineapple flavor, they pair nicely with other fresh fruits like sliced strawberries or a handful of berries on the side.
Storage Instructions
Store: These soft pineapple zucchini cookies stay moist and delicious when kept in an airtight container at room temperature for up to a week. The zucchini and pineapple help keep them from drying out, so they actually taste great for days after baking.
Freeze: You can freeze these cookies for up to 3 months in a freezer-safe container with parchment paper between layers. I like to freeze them individually on a baking sheet first, then transfer to a bag so they don’t stick together.
Enjoy: Frozen cookies taste amazing straight from the freezer, or you can let them thaw at room temperature for about 10-15 minutes. They’re perfect for grabbing a quick snack or packing in lunch boxes since they’re naturally soft and chewy.
| Preparation Time | 30-40 minutes |
| Cooking Time | 10-15 minutes |
| Total Time | 2 days 40-55 minutes |
| Level of Difficulty | Medium |
Estimated Nutrition
Estimated nutrition for the whole recipe (without optional ingredients):
- Calories: 800-950
- Protein: 10-14 g
- Fat: 22-28 g
- Carbohydrates: 140-160 g
Ingredients
- grated seedless zucchini
- whole wheat flour
- packed brown sugar
- reserved pineapple liquid
- unsalted butter (I like Kerrygold unsalted butter for this)
- crushed pineapple in juice
Step 1: Prepare the Zucchini
- grated seedless zucchini
Using a sharp knife or vegetable peeler, remove the seeds from the zucchini if needed and shred the flesh using a grater.
Set the shredded zucchini aside for later use.
Step 2: Cream Butter and Sugar
- unsalted butter
- packed brown sugar
In a large mixing bowl, cream together the unsalted butter and packed brown sugar until the mixture is light and fluffy.
Use a mixer on medium speed for about 2-3 minutes to ensure a smooth consistency.
I like to really whip the butter and sugar at this stage to get the cookies extra tender.
Step 3: Incorporate Pineapple and Juice
- crushed pineapple in juice
- reserved pineapple liquid
Add the crushed pineapple and the reserved pineapple liquid to the creamed butter and sugar mixture.
Mix well to combine, using the pineapple and its juice instead of most of the oil.
This will give the cookies a lovely tropical flavor and keep them moist.
Step 4: Mix Dry Ingredients
- whole wheat flour
In a separate bowl, combine the whole wheat flour with the appropriate amount of baking soda and salt (if using).
Stir together until evenly mixed, ensuring no lumps remain.
Step 5: Combine Wet and Dry Ingredients
- grated seedless zucchini (from Step 1)
- whole wheat flour (from Step 4)
Gradually add the dry ingredients to the wet mixture, stirring gently until just combined.
Then fold in the shredded zucchini (from Step 1) until evenly distributed throughout the dough.
Avoid over-mixing to keep the cookies light and tender.
Step 6: Rest the Dough
Cover the bowl and refrigerate the dough for 2 days.
This resting period allows the flavors to fully develop and helps the dough firm up, resulting in a better cookie texture.
I find that this step makes a big difference in the final flavor.
Step 7: Bake the Cookies
Preheat your oven to 350°F (175°C).
Drop heaping spoonfuls of dough onto ungreased cookie sheets, spacing them about 2 inches apart.
Bake the cookies until they are set and lightly browned, usually about 10-12 minutes.
Check frequently to avoid overbaking.
Let the cookies cool on the sheets for a few minutes, then transfer them to a wire rack to cool completely before serving.