Imagine the lush, velvety filling of a diner-style coconut cream pie — rich with real coconut cream, tangy cream cheese, and a whisper of vanilla — poured over a golden, buttery coconut flour crust and crowned with crispy toasted coconut flakes. These bars deliver all of that nostalgic comfort in a neat, sliceable square that you can grab straight from the fridge. Every bite is impossibly creamy in the center with a satisfying crunch on top, and they taste even better on day two after the flavors meld together overnight.

The macro profile here is textbook keto: 43 grams of fat per serving — mostly from coconut cream, butter, and cream cheese — provide roughly 84 percent of the calories from fat. With only 7 grams of net carbs per bar (thanks to the high fiber content of coconut flour) and 10 grams of protein from eggs and cream cheese, these bars sit squarely in the sweet spot for maintaining ketosis while satisfying a serious dessert craving.

Best of all, this recipe is purpose-built for batch prep. One 8×8-inch pan yields four generous bars that store beautifully in the refrigerator for up to five days. Bake them on Sunday evening, slice, and stash — you have a ready-made keto dessert waiting every night of the workweek. No special equipment beyond a mixing bowl and a standard baking pan is required, and the hands-on time is barely fifteen minutes.

Ingredients (serves 4)

For the coconut flour crust:

  • 1/2 cup (56g) coconut flour
  • 3 tablespoons (42g) unsalted butter, melted
  • 1 large egg
  • 1 tablespoon (12g) granulated erythritol
  • 1/4 teaspoon fine sea salt

For the coconut cream filling:

  • 1 cup (240ml) full-fat coconut cream (from a can, not coconut milk)
  • 4 oz (113g) full-fat cream cheese, softened
  • 2 large eggs
  • 1/3 cup (53g) granulated erythritol or monk fruit sweetener blend
  • 1 teaspoon pure vanilla extract
  • 1/4 teaspoon fine sea salt

For the toasted coconut crumble:

  • 1/3 cup (25g) unsweetened shredded coconut
  • 1 tablespoon (14g) coconut oil, melted

Instructions

  1. Preheat and prep. Set your oven to 325°F (163°C). Line an 8×8-inch (20×20cm) baking pan with parchment paper, leaving a slight overhang on two sides for easy removal. Lightly grease any exposed surface with coconut oil or butter.

  2. Make the crust. In a medium bowl, whisk together the coconut flour, erythritol, and salt. Add the melted butter and egg, stirring with a fork until the mixture forms a thick, slightly crumbly dough. It will be denser than a typical pie crust dough — this is normal for coconut flour. Press the dough firmly and evenly across the bottom of the prepared pan using the back of a spoon or your fingers. Aim for a compact, uniform layer about 1/4-inch thick.

  3. Par-bake the crust. Slide the pan into the oven and bake for 10 minutes, until the crust looks dry on the surface and just barely golden at the edges. Remove and set aside while you prepare the filling. Keep the oven on at 325°F (163°C).

  4. Prepare the filling. In a large bowl, beat the softened cream cheese with the erythritol using a hand mixer or sturdy whisk until smooth and fluffy, about one minute. Add the coconut cream and blend until fully incorporated with no lumps remaining. Add the eggs one at a time, beating just until each one disappears into the mixture. Stir in the vanilla extract and salt. The filling should be pourable and silky smooth — if you see any cream cheese lumps, beat for another thirty seconds.

  5. Assemble and bake. Pour the coconut cream filling directly over the par-baked crust, spreading it gently with a spatula so it reaches all four corners. Bake at 325°F (163°C) for 28 to 32 minutes. The filling is done when the edges are set and the very center jiggles slightly — like a panna cotta wobble — when you gently shake the pan. It will firm up completely as it cools. Do not overbake, or the custard may crack.

  6. Toast the coconut crumble. While the bars bake, heat a small dry skillet over medium-low heat. Add the shredded coconut and stir frequently for 3 to 4 minutes, until the flakes turn golden brown and fragrant. Watch them closely — coconut goes from toasted to burnt in seconds. Transfer to a small bowl immediately, toss with the melted coconut oil and a tiny pinch of salt, and set aside.

  7. Cool and top. Remove the pan from the oven and let the bars cool at room temperature for 30 minutes. Scatter the toasted coconut crumble evenly over the surface, pressing it gently into the still-soft top. Transfer to the refrigerator and chill for at least 2 hours, or ideally overnight, before slicing. The bars firm up beautifully when cold.

  8. Slice and store. Use the parchment overhang to lift the entire slab out of the pan. With a sharp knife, cut into 4 large bars (or 8 smaller ones if you prefer half-portions). Store in an airtight container in the refrigerator for up to 5 days.

Nutrition per Serving

Nutrient Amount
Calories ~460 kcal
Fat ~43g
Protein ~10g
Total Carbs ~13g
Fiber ~6g
Net Carbs ~7g

Nutritional values are approximate and based on the stated ingredients. Erythritol carbs are excluded from net carb calculations as they have a glycemic index of zero.

Tips & Variations

Choose the right coconut cream. Not all cans are created equal. Look for full-fat coconut cream — not lite coconut milk — with at least 20 grams of fat per serving on the label. Brands like Thai Kitchen, Aroy-D, and Native Forest all work well. Refrigerating the can overnight and scooping only the thick cream from the top yields the richest, densest filling.

Sweetener swaps and avoiding the cooling effect. Erythritol can leave a slight cooling sensation on the tongue. If this bothers you, swap it for an allulose-based sweetener, which has a cleaner sugar-like taste and also stays soft in the fridge rather than crystallizing. A monk fruit and erythritol blend (like Lakanto Golden) also works beautifully and adds a subtle caramel note that complements the coconut.

Add a chocolate drizzle for variety. Melt 1 oz (28g) of 85% dark chocolate with 1 teaspoon of coconut oil and drizzle it over the chilled bars in thin lines. This adds roughly 2 grams of net carbs per serving but creates a stunning presentation and a flavor reminiscent of a chocolate-coconut cream pie. Let the drizzle set in the fridge for 10 minutes before serving.

Freeze for longer storage. These bars freeze exceptionally well for up to six weeks. Wrap each bar individually in plastic wrap, then place all wrapped bars in a freezer-safe bag. Thaw in the refrigerator overnight — the texture comes back perfectly. This makes them ideal for true batch cooking: double the recipe, freeze half, and rotate through your stash over several weeks.

Watch for hidden carbs in coconut products. Some brands of shredded coconut are sweetened — always check the label and confirm it says "unsweetened." Sweetened shredded coconut can contain 10 or more grams of sugar per quarter cup, which would push these bars well outside keto range. The same applies to flavored coconut creams, which sometimes contain added sugar.

Frequently Asked Questions

Will these bars kick me out of ketosis?
At 7 grams of net carbs per serving, these bars fit comfortably within the standard ketogenic daily limit of 20 to 25 grams of net carbs. The erythritol used in the recipe has a glycemic index of zero and does not raise blood sugar or insulin levels, so it is not counted toward net carbs. That said, portion control matters — eating two bars in a sitting would bring you to 14 grams of net carbs from dessert alone, leaving little room for the rest of your day. Stick to one bar per day as a satisfying end-of-meal treat, and you will stay well within your macros.
Can I substitute the cream cheese with something else?
Yes. Mascarpone cheese works as a one-to-one replacement and produces an even richer, more luxurious filling with a slightly milder tang. Full-fat ricotta (well-drained) also works but will yield a slightly grainier texture. For a dairy-free option, use a plant-based cream cheese made from cashews or coconut — just verify the carb count on the label, as some brands add starches that raise the net carbs significantly. Avoid low-fat or Neufchâtel cream cheese, as the reduced fat content alters both the texture and the macro profile.
How should I store and reheat these bars?
These bars are best served cold, straight from the refrigerator, so no reheating is necessary. Store them in a single layer in an airtight container with parchment paper between layers if stacking. They keep perfectly in the fridge for up to five days — in fact, the flavor deepens and the texture becomes silkier after the first 24 hours. If you prefer a slightly softer, more mousse-like texture, let a bar sit at room temperature for 10 minutes before eating. Do not microwave them, as the custard filling can break and become watery when heated.
How can I make these bars vegan keto?
Replace the three eggs (one in the crust, two in the filling) with a flax egg substitute: for each egg, mix 1 tablespoon of ground flaxseed with 3 tablespoons of warm water and let it sit for 5 minutes until gel-like. Swap the butter for additional coconut oil, and use a coconut-based cream cheese in place of dairy cream cheese. The texture will be slightly less custard-like and more like a dense mousse, but the coconut flavor actually becomes more pronounced. Bake for an extra 3 to 5 minutes, as the vegan version sets a bit more slowly. The macros will shift slightly — expect about 2 grams less protein per serving.
Why did my filling crack on top during baking?
Cracking is almost always caused by overbaking or too-high oven temperature. Coconut cream custard sets gently — it should still have a visible jiggle in the center when you pull it from the oven. Use an oven thermometer to verify your temperature reads a true 325°F, as many home ovens run 10 to 25 degrees hot. Also avoid opening the oven door during the first 20 minutes of baking, as the temperature drop and recovery can cause uneven setting. If cracking does happen, it is purely cosmetic and does not affect the taste — the toasted coconut crumble topping will cover any imperfections beautifully.