The answer depends on the type of sun hat you have. Many hats made of materials like polyester, nylon, and canvas can be machine washed, while those made of braided materials like straw or synthetic straw can’t be submerged and require spot-cleaning. Keep in mind that the correct method for cleaning a sun hat depends on the recommendations for care provided by the manufacturer. You should always check the hat’s care instructions before you wash it.