Never shake out herbs and spices over a steaming pot where moisture and condensation form. Instead, measure away from the steam. For the same reason, never dip a wet spoon into your spice jar. To keep the essential oils trapped safely in dried herbs and spices, use airtight containers and keep the containers in a cool, dry, dark place. According to McCormick Spice Company, ground herbs and spices kept under ideal conditions can retain their effectiveness for one to three years.
Whole spices can last up to four years.
When purchasing fresh herbs, avoid herbs that are limp or yellowing, or have black spots. Store fresh herbs is in a resealable plastic bag and keep in the refrigerator. Because any moisture shortens their shelf life, wash them upon use rather than washing before you bag them. When using fresh herbs in cooking, simply place the whole herb in a cheesecloth bag for easy removal. Take advantage of the whole herb.