TL;DR
Yes, most can. Fiberfill and many down pillows are machine washable. Memory foam is the main exception and should never go in.
Pillows collect sweat, oil, and dust mites over months of nightly use, which is why washing them matters more than people think. The filling type decides the method, and getting it wrong can either ruin the pillow or leave it damp enough to mildew.
Care labels exist for a reason here. Manufacturers test their specific fill and know its limits better than a generic rule of thumb does.
Which fillings can go in the machine
Polyester fiberfill pillows are the most washing-machine-friendly and hold up well to repeated cycles without losing much shape. Many down and down-alternative pillows can also be machine washed, though some down pillows are labeled dry-clean or hand-wash only because the natural fill clumps more easily, so check the tag first rather than assuming.
How to wash them correctly
Use a gentle cycle, cold or warm water, and a mild detergent, roughly half the amount you'd use for a regular clothes load. Washing two pillows together helps balance the drum instead of one lopsided pillow banging around alone and throwing the machine off balance. Front-loading machines or top-loaders without a center agitator are gentler on the filling than agitator-style washers, which can twist and mat the fill unevenly.
Drying is the part people get wrong
Pillows need low heat and multiple dry cycles, sometimes 2-3 rounds of 30-45 minutes, because the filling clumps and takes longer to dry through than clothing does. Toss in a couple of clean tennis balls or dryer balls to break up clumps and restore loft as they tumble. A pillow that feels dry on the outside can still be damp inside, so check by squeezing the center firmly before calling it done and putting it back on the bed.
What can't go in the machine
Memory foam pillows should never be machine washed or fully soaked; water breaks down the foam structure and it won't dry through, which can lead to mold growing inside where you can't see it. Spot clean the foam instead with a damp cloth and mild soap, or remove and hand wash a removable cover separately.
How often to wash pillows
Most guidance suggests washing pillows about every 3-6 months, alongside using a pillow protector under the pillowcase to cut down on how much sweat and oil reaches the filling in the first place. A pillow that's gone noticeably lumpy, yellowed, or flat no longer bouncing back when folded in half is usually past the point where washing alone will fix it, and it's worth replacing instead.
Most standard pillows survive the washing machine just fine, but the drying step decides whether you end up with a fresh pillow or a moldy one. Check the fill type before starting.