
There is a reason that my Keto Nanaimo Bars are widely considered the best. It was my favorite dessert as a kid! And as a stickler for taste and texture, I worked overtime to make this recipe as close to the original as possible. Now it’s one of my most popular no-bake keto desserts.
They’re almost as popular as my keto peanut butter bars, and that’s saying something!

If you are scratching your head, wondering exactly what they are, you are not alone. They aren’t a well-known dessert outside of Canada, although they have has become increasingly popular in the United States. They consist of a dense chocolate crust, a sweet vanilla layer that’s somewhere between frosting and pudding, and a rich chocolate topping. And once you try my low carb Nanaimo bars, you will be hooked.
Wondering how to pronounce the name? Repeat after me: “Na-Nigh-Mo”. Nanaimo. It’s a small city on Vancouver Island, and originally comes from the anglicized version of a First Nations word meaning “big, strong tribe”.
Reader’s Thoughts
“These are one of the best desserts I’ve ever had. We LOVE them, especially the crust, which I’ve been using for all kinds of keto deserts. There are a lot of steps here, but the final product is worth it!” — Zhenya

Why you will love this recipe
- Three indulgent layers: My keto version has the same rich chocolate base, creamy custard filling, and a silky chocolate topping as the original.
- Made with healthier ingredients: This recipe contains no instant pudding mix or custard powder, just high-quality keto-friendly staples.
- Freezer-friendly: You can make these bars in advance for holidays, potlucks, or just to have some sweet treats on hand.
- Customizable: You can easily adapt these bars to be dairy-free or nut-free.
- Canadian nostalgia: My fellow Canadians will be delighted to enjoy Nanaimo bars again, without blowing their macros!
- Crowd-pleaser: I’ve served these bars to keto dieters and non-keto folks alike. Everyone always loves them!
Ingredient notes

- Heavy whipping cream: This helps make the luscious vanilla cream filling for these bars.
- Almond or hemp milk: I updated the filling with a bit of nut milk to lighten it up just a touch. You can use all heavy cream if you prefer.
- Sweetener: I recommend using powdered sweetener for both the crust and the filling.
- Cream cheese: Conventional Nanaimo bars don’t use any cream cheese, but this allows for a thicker filling without using a ton of sweetener.
- Cocoa powder: I prefer Dutch process cocoa powder as it has a deeper, richer chocolate flavor.
- Almond flour: This replaces the graham cracker crumbs in the original bars.
- Shredded coconut: If you really don’t enjoy coconut, you can use more almond flour instead.
- Nuts: Nanaimo bars almost always have some chopped nuts in the crust.
- Sugar free chocolate: Do note that this isn’t the same as unsweetened chocolate, which contains no sweetener whatsoever. You do want some sweetness in the topping. I usually use Lily’s dark chocolate.
- Kitchen staples: Butter, eggs, vanilla extract and salt.
Recipe overview: How to make Keto Nanaimo Bars
Don’t be daunted by the long ingredient list and lengthy instructions. These are actually quite easy to make, require no baking and are undoubtably worth it. And you get a little taste of Canada into the mix!

- Make some pastry cream: Traditional Nanaimo bars use custard powder for the unique texture and flavor. But custard powder contains cornstarch which isn’t keto friendly. My solution is to create an actual vanilla custard (aka pastry cream) to add to the filling. Preparing pastry cream is very much like making keto pudding on the stove.
- Prepare the crust: The ingredients for the no-bake crust are cooked together in a saucepan for a few minutes. This helps them bind together well before pressing the mixture evenly into a square baking pan. Then the crust is chilled for a little while to set and firm up.
- Complete the filling: While the crust is chilling, beat the cream cheese together with the butter until it’s nice and smooth, then beat in the the cooled pastry cream until combined. Don’t over-beat is as it can begin to separate. Some additional powdered sweetener gives it the classic Nanaimo bar flavor.
- Add the topping: Melt the chocolate and butter and spread evenly over the filling and let set.

Tips for Success
I created an early version of these keto Nanaimo bars back when I first started out on my low carb journey. Not being quite as adept at low carb dessert as I am now, I relied on sugar-free pudding mix to replace the standard custard powder. But I don’t use these things anymore as they have usually contain questionable ingredients.
My solution to this dilemma? Creating a real vanilla custard and mixing that into cream cheese and butter to achieve the requisite flavor and consistency of conventional Nanaimo bars. It’s so good and making custard (pastry cream) is easier than you think.
But keep a close eye on it! Mixtures like this can thicken up suddenly and you don’t want it to curdle. Be sure to stay close to your stove and not walk away while it’s cooking. And make this part first, as indicated in the recipe, so it has time to cool before you add it to the filling.
Chocolate toppings like this can crack as you try to cut them into bars. I recommend heating up your knife so that it slices through the chocolate more easily. I do this over the flame of my gas stove but dipping it into a glass of hot water works as well.
Dairy-Free Option: If you can’t tolerate dairy, you can use coconut cream and your favorite butter substitute in the pastry cream. For the crust and topping, coconut oil or another butter substitute will work nicely. Cut back to 6 tablespoons of coconut oil for the crust as it can be more greasy.
Nut-Free Option: Replace the almond flour with sunflower seed flour and use hemp milk or another nut-free milk for the pastry cream.
Sweetener Options
The sweetener you choose for this recipe definitely has an impact on how it turns out. The crust can be made with your favorite powdered sweetener, but the filling is more finicky. I’ve made it with both erythritol and allulose, and while both technically work, allulose can make it extra soft. This means it takes longer to set properly and it can be a little squishy when you try to cut the bars.
So I recommend erythritol for the filling. If you want to cut back on it more, you can use a little concentrated sweetener like stevia or monk fruit extract.

Frequently Asked Questions
This keto nanaimo bar recipe has 6.8g of carbs and 3.3g of fiber per serving. That comes to 3.5g net carbs per bar.
Store the bars in a covered container on the counter for up to 4 days or in the fridge for up to a week. You can also freeze them for up to 3 months.

Keto Nanaimo Bars Recipe
Ingredients
Pastry Cream
- 1/3 cup (78.86 ml) whipping cream
- 3 tbsp (45.65 g) almond or hemp milk
- 2 large egg yolks
- 1/4 cup (47.5 g) powdered sweetener
- Pinch salt
- 1 1/2 tbsp (21.3 g) butter, cut into two pieces
- 1 1/2 tsp vanilla extract
Crust
- 1/2 cup (113.5 g) butter
- 1/3 cup unsweetened cocoa powder
- 1/4 cup (47.5 g) powdered sweetener
- 1 large egg, beaten
- 1 tsp vanilla extract
- 1 cup (112 g) almond flour
- 3/4 cup (69.75 g) unsweetened shredded coconut
- 1/2 cup (54.5 g) chopped pecans or walnuts
Vanilla Filling
- 4 ounces (113.4 g) cream cheese, softened
- 1/4 cup (56.75 g) butter, softened
- Pastry cream, (from above)
- 6 tbsp (60.87 g) powdered sweetener
Chocolate Topping:
- 3 ounces (85.05 g) sugar-free dark chocolate, such as Lily’s, chopped
- 2 tbsp (28.4 g) butter
Instructions
Pastry Cream:
- In a medium saucepan over medium heat, bring the whipping cream and almond milk to a simmer. In a medium bowl, whisk the egg yolks with the sweetener and salt until well combined.
- Slowly whisk about half of the hot cream into the yolks to temper, then stir the yolk/cream mixture back into the remaining cream in the saucepan and cook until thick and glossy, about 3 to 4 minutes, whisking continuously.
- Remove from heat and whisk in the butter and vanilla. Let cool to room temperature.
Crust:
- In a medium saucepan over low heat, melt the butter. Stir in the cocoa powder and the sweetener, and then slowly whisk in the egg.
- Cook, stirring constantly, until the mixture thickens. Remove from heat and stir in the vanilla, almond flour, shredded coconut and nuts. Press the crust evenly into a 9×9 or 8×8 square pan and refrigerate until firm.
Filling
- Beat the cream cheese and butter until smooth. Beat in the cooled pastry cream until well combined, then beat in the powdered sweetener. Spread the filling over crust and refrigerate until firm, at least one hour.
Chocolate Topping
- Combine the chopped chocolate and butter in a heatproof bowl set over a pan of barely simmering water. Stir until melted and smooth. Spread over filling and let set.
Notes
Nutrition
Nutritional Disclaimer
Please note that I am not a medical or nutritional professional. I am simply recounting and sharing my own experiences on this blog. Nothing I express here should be taken as medical advice and you should consult with your doctor before starting any diet or exercise program. I provide nutritional information for my recipes simply as a courtesy to my readers. It is calculated using MacGourmet software and I remove erythritol from the final carb count and net carb count, as it does not affect my own blood glucose levels. I do my best to be as accurate as possible but you should independently calculate nutritional information on your own before relying on them. I expressly disclaim any and all liability of any kind with respect to any act or omission wholly or in part in reliance on anything contained in this website.
Free Bonus: Secrets to Keto Baking!
Sign up for your favorite recipes delivered straight to your inbox plus get our FREE bonus: Secrets to Keto Baking!







These are fantastic- one of my favorites among many of yours. I like to add instant coffee to the cream filling- sooo good!
bars are good, i take back my initial comment! turns out i just didn’t chill it enough, after popping it back in the fridge for a few hours it was much better
I read your initial comment… I am curious what sweetener you used? Just trying to help!
Sooo de-lish!!
Made these for the first time last yesterday and they are delicious and relatively easy. My only powdered sugar is allulose so the custard was a little soft but still sliceable. I’m wondering if adding another egg yolk or extra cream cheese might firm it up with the allulose? Next time I’m going to try making the pastry cream by adding the egg yolk mixture with the other ingredients before heating like I do with ice cream.
Absolutely worth the effort to make these. They are EXCELLENT! Thanks so much for developing this recipe.
well OH Canada 🇨🇦 These are better than the real thing. They are perfect. once again you’ve have hit a home run!! they are a perfect balance of chewy and sweet. Now, how do I not eat the whole pan?
Although this takes me much longer than 35 minutes, it is well worth the time. The custard in the middle is delicious!
Another amazing recipe!
these look absolutely decadent. Thank you. I can’t wait to try them.