Unsalted butter is best because it allows you to control the amount of salt that goes into the cookies. Also, unsalted butter typically has less water content than salted butter, which results in cookies with a better texture.