Hats are accessories in Plants vs. Zombies: Garden Warfare and Plants vs. Zombies: Garden Warfare 2. In both games, hats are purchased with coins via the Sticker Shop. The player can apply them to their respective characters using the customization menu. In Plants vs. Zombies: Garden Warfare 2, there are legendary hats to obtain, such as the Everlasting Crown.
Plants vs. Zombies Wiki has a gallery for Hats (PvZ: GW).