Quick answer: To wash a hat safely, pretreat sweat stains, hand wash it in cool or lukewarm water with gentle soap, then air dry it. Never tumble dry a hat, because heat can warp the brim and ruin the shape.
The safest way to wash a hat is to treat stains first, then hand wash it in cool or lukewarm water, and always air dry it. The biggest mistake is tossing it in the dryer, which can warp the brim and ruin the shape.
Before you wash anything, look at the care label and the brim construction. Most baseball caps have a brim that can be damaged by heat and rough agitation, so hand washing is usually the best choice.
If the hat is very structured, vintage, expensive, or has a cardboard brim, hand washing is safer. If you do use a machine, a hat cage can help, but only if the brim is flat enough to fit properly.
For sweat stains and general dirt, apply an enzymatic or all-purpose stain remover to the dirty areas, especially the interior sweatband. Let it sit for about an hour if you can. That dwell time helps break down body oils and buildup before washing.
If the hat still looks yellow after washing, spray the damp areas with 3% hydrogen peroxide. Wear gloves, keep it out of direct sun while it dries, and repeat only if needed. Hydrogen peroxide and UV light do not mix well for this step.
Fill a sink, tub, or bucket with cool or lukewarm water and a small amount of dish soap or gentle detergent. Submerge the hat and gently scrub with your hands or a soft brush, focusing on the sweatband and stained spots.
Reshape the hat and let it air dry. Set it on a towel, a clean bowl, or a form that helps it keep its shape. Do not tumble dry a hat; heat can damage the brim and shrink or distort the fabric.
If old sweat stains remain, repeat the pretreat-and-wash process. For especially oily stains on premium hats, a dry cleaning solvent may be needed, and delicate or expensive hats are worth professional attention.
If you want the hat to look clean without losing its shape, gentle washing and careful drying matter more than aggressive scrubbing.
Or ask about any laundry or garment care question