Flip the hat inside out and choose the washing machine's gentle cycle with cold water. Let the hat air dry to prevent it from shrinking and to minimize the appearance of pilling.