01 - Preheat oven to 350°F. Line a baking sheet with parchment paper.
02 - In a medium bowl, whisk together flour, baking powder, and salt.
03 - In a large bowl, cream butter and sugar together until light and fluffy, about 2–3 minutes.
04 - Add eggs one at a time, beating well after each addition. Mix in vanilla and almond extract.
05 - Gradually add the dry ingredients to the wet ingredients, mixing until just combined.
06 - Divide dough in half. On a lightly floured surface, shape each half into a log about 12 inches long and 2 inches wide.
07 - Transfer logs to the prepared baking sheet, spacing them apart. Flatten logs slightly with your hands. Sprinkle with coarse sugar if using.
08 - Bake for 25–28 minutes, until logs are lightly golden and set. Remove from oven and cool for 10 minutes.
09 - Reduce oven temperature to 300°F.
10 - Using a sharp serrated knife, slice logs diagonally into 3/4-inch pieces. Arrange slices cut side down on the baking sheet.
11 - Bake for another 12–15 minutes, flip biscotti, then bake an additional 10–12 minutes until crisp and golden.
12 - Cool completely on a wire rack. Drizzle with melted white chocolate if desired. Allow chocolate to set before serving.