One of the reasons you may need to freeze peanut butter is because it is included in the recipe, such as a cookie filling, or maybe even a peanut butter cup filling.
To freeze small amounts of peanut butter for a cookie filling, you will first want to line a cookie sheet with parchment paper. Once your cookie sheet is lined with parchment paper, take a large spoon, or cookie scoop, and scoop the peanut butter onto your cookie sheet.
If desired, you can use a knife or spoon to flatten out the peanut butter. Once your peanut butter is shaped as desired, place your cookie sheet in the freezer for a few hours or overnight just until your peanut butter is frozen solid.
If you need to freeze the peanut butter for longer amount of time, transfer it to an airtight container or seal in a plastic freezer bag for up to six months. Then when you are ready, you can pop your cookie feelings out of the freezer and add them into your cookie dough.