Baseball caps made of cotton twill or a similar material can typically go in the washing machine as long as they do not have a cardboard or paper-filled bill. Other types of hats that might need washing include knit caps and straw hats, especially those worn outdoors to keep the sun off your face.