Grease an 8-inch square baking pan and line with parchment paper, leaving overhang on two sides.
Combine peanut butter and butter in a medium saucepan over medium heat. Stir occasionally until the mixture just comes to a boil and is completely smooth.
Remove from heat. Add the sifted powdered sugar, vanilla extract, and salt if using. Stir until fully combined and silky with no lumps.
Pour immediately into the prepared pan and spread evenly with a spatula.
Cool at room temperature for 2 hours or refrigerate for 1 hour until firm.
Lift out using the parchment overhang, transfer to a cutting board, and cut into 1-inch squares.