If stored in an airtight container or sealed bag, shredded coconut will last for several months in the refrigerator or up to a year in the freezer. If your coconut has an off taste or smell, or any visible signs of mold, it's time to toss it.