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 until well combined.
03 - In a large bowl, beat softened butter and granulated 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 extract and almond extract if using.
05 - Gradually add the dry ingredients to the wet mixture, mixing until just combined and a smooth dough forms.
06 - Divide dough in half. On a lightly floured surface, shape each half into a 12-inch long by 2-inch wide log.
07 - Transfer logs to the prepared baking sheet, spacing them apart. Flatten slightly with hands and sprinkle with coarse sugar if desired.
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 thick pieces.
11 - Arrange slices cut side down on the baking sheet. Bake for 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 and allow to set before serving.