Soft homemade cookies remain fresh for 2 to 3 days on the pantry shelf, while hard homemade cookies stay fresh for 2 to 3 weeks after they are made. Homemade cookies of most types can be kept even longer in the freezer; both soft and hard homemade cookies will last for 4 to 5 months if frozen after baking.
When it comes to storing cookies that come from a bakery, unopened cookies last longer than those that have been opened. Bakery cookies that have never been opened will last for 2 to 3 days past their printed date in the pantry. Unopened bakery cookies can last for 4 to 5 months past their printed date in the freezer.
Both soft and hard packaged cookies can last unopened on a pantry shelf for 1 to 2 months. In the freezer, packaged cookies can remain fresh for 4 to 5 months.
Once packaged cookies are opened, their shelf life begins to decline. Opened soft cookies can last for 7 to 10 days past their recommended printed date on the pantry shelf, while packaged hard cookies can last for 2 to 3 weeks after being opened on the pantry shelf. Both hard and soft packaged cookies can be stored for 4 to 5 months past their printed date in the freezer.