Gather and measure all ingredients before you start.
Heat oven to 350°F (175°C) and line a sheet with parchment.
Stir peanut butter, sugar, egg and vanilla (if using) until a smooth thick dough forms, about 1 minute by hand.
Scoop and roll into 1-inch (about 1 Tbsp) balls, 2 inches apart.
Press each ball twice with a fork in a crosshatch to about 1/2 inch thick (dip fork in sugar if it sticks).
Bake 10-12 minutes until edges are set and lightly golden, centres still slightly soft.
Sprinkle flaky salt if using. Cool on the sheet a full 10 minutes, then move to a rack.