Prep the pan and oven: Heat the oven to 350°F (175°C). Line an 8x8-inch pan with parchment, leaving overhang for easy lifting.
Make the crust: In a bowl, mix 2 cups almond flour, 1/3 cup granulated keto sweetener, a pinch of salt, and 1 tablespoon coconut flour (optional). Stir in 1/2 cup melted unsalted butter and 1 teaspoon vanilla until a soft dough forms.
Press and bake: Press the dough evenly into the lined pan.
Use the back of a spoon to smooth it. Bake 12–15 minutes, until the edges are lightly golden. Set aside to cool slightly while you make the filling.
Whisk the filling: In a mixing bowl, whisk 4 large eggs until well combined.
Add 3/4 cup granulated keto sweetener, 1/2 cup fresh lemon juice, 1–2 tablespoons lemon zest, and a small pinch of salt. Whisk until smooth. For a silkier texture, strain the mixture through a fine sieve to remove zest bits and bubbles, then whisk again.
Pour and bake: Reduce oven temperature to 325°F (165°C).
Pour the filling over the warm crust. Bake 18–24 minutes, or until the center barely jiggles when you nudge the pan and the edges look set.
Cool and chill: Let the pan cool on a rack, then chill at least 2 hours (overnight is best). This helps the bars set cleanly and boosts the lemon flavor.
Finish and slice: Lift the bars out using the parchment.
Dust lightly with powdered keto sweetener if you like. Use a sharp knife to cut into 16 squares, wiping the blade between cuts for clean edges.