Machine washing can be unhealthy for caps, but you can do it in some circumstances. Avoid machine washing if your washing machine is a top-loader with an agitator. Use a gentle cycle, and do not wash your cap in hot water. Do not put your baseball cap in the dryer, always air dry.