Skip to main content

Hats in Stardew Valley

Every hat in Stardew Valley with its spawn ID — bought, crafted, achievement-rewarded, and rare event hats including the Skeleton Mask and Tropiclip.

How to spawn items

Vanilla, no edits

Character name. When creating a new save, name your character with up to three item IDs in square brackets, e.g. [16][66][72]. Every time a villager mentions your name in dialogue, those items spawn into your inventory. Character names lock to one set per save, so you're stuck with whatever three you pick.

Early-game trigger trick: call Gus by phone (or visit Pierre before noon) — both reliably say your name back to you. Once you unlock the movie theater, inviting Jodi with a Love Concession is the fastest repeatable trigger.

Pet or animal name. Buy an animal from Marnie's Ranch (a chicken is cheapest) or a pet, then name it with the item ID(s) in square brackets. You receive the items right after confirming the name. Repeat with another animal for different items.

If your code is longer than Marnie's name box allows, you can bypass the character limit by inserting line breaks with dialogue commands — handy when stacking many IDs at once.

Showing 150 of 120 items

  • The leather is old and cracked, but surprisingly supple. It smells musty.
  • Made from smooth felt.
  • Top Hat[(H)2]
    A gentleman's classic.
  • Sombrero[(H)3]
    A festively decorated hat made from woven straw.
  • Straw Hat[(H)4]
    Light and cool, it's a farmer's delight.
  • Looks like it belonged to a postman or policeman. Either way, it's still very soft and smells okay.
  • Harken back to simpler times with this prairie bonnet.
  • Looks alright.
  • The red eyes are glowing mysteriously.
  • Freak out the neighborhood with this creepy mask. Rubber ear joints for effect.
  • You'll be sure to get them grinning with this one.
  • Earmuffs[(H)11]
    Keep your ears toasty. Lined with artisanal velvet from Castle Village.
  • Little pink jewels glisten as you examine it.
  • Tropiclip[(H)13]
    It's shaped like a little palm tree.
  • This one is very soft.
  • The wool lining should stay warm deep into the forest.
  • Mesh in the back to keep your head cool.
  • It's fresh and starchy.
  • A floppy old topper with a creased bill. Looks like it's been through a lot.
  • Fedora[(H)19]
    A city-slicker's standard.
  • Cool Cap[(H)20]
    It looks really faded, but it used to be a vibrant blue.
  • Lucky Bow[(H)21]
    The middle is made of solid gold.
  • Polka Bow[(H)22]
    This one's sure to be turn heads.
  • This gnome had a very large head.
  • Eye Patch[(H)24]
    You can't tell if it's real or just from a costume shop.
  • Santa Hat[(H)25]
    Celebrate the magical season.
  • Tiara[(H)26]
    This one has a big amethyst encircled by gold.
  • Hard Hat[(H)27]
    Keep your dome in one piece.
  • Sou'wester[(H)28]
    The shape helps to keep sailors dry during storms.
  • Daisy[(H)29]
    A fresh spring daisy to put in your hair.
  • The color scheme was inspired by the beloved summer melon.
  • Mouse Ears[(H)31]
    Made from synthetic fibers.
  • Cat Ears[(H)32]
    Whiskers included.
  • Cowgal Hat[(H)33]
    The band is studded with fake diamonds.
  • For dairy experts.
  • Fashionable whether you're an archer or not.
  • Panda Hat[(H)36]
    A lovely panda hat.
  • A denim cowboy hat in cool blue.
  • An eye-catching cowboy hat in red suede.
  • Cone Hat[(H)39]
    A curiosity from a distant land.
  • Living Hat[(H)40]
    It absorbs moisture from your scalp. No watering needed!
  • Made with love by Emily. It's 100% organic!
  • It smells earthy.
  • A hat fashioned to look like a small dinosaur.
  • Totem Mask[(H)44]
    Don't worry, it won't warp your face...
  • Logo Cap[(H)45]
    A pink cap with a sleek profile.
  • A slightly larger, human sized version of the helmets worn by dwarves.
  • A fashionable hat with a feather in the brim.
  • This must have been a pretty big pumpkin once...
  • Hair Bone[(H)49]
    A prehistoric version of the hair bow.

How Hats IDs work

Every Hats entry uses the qualified ID form (H)0. The (H) prefix tells Stardew Valley which item type the ID belongs to — the same ID can exist in more than one type at once, so the prefix is what makes it unambiguous.

This page lists all 120 Hats entries in the vanilla game.

How to spawn Hats

The naming cheat cannot spawn Hats. Naming an animal [(H)0] does nothing at all — no error, no item — because the game only reads bare numeric object IDs out of a name. Enable chat cheats on your save instead, then run /debug iq ALL_ITEMS (H) in the in-game chat to pick any Hats item straight out of the browser.

How to enable chat cheats

Example Hats IDs

ItemIDNaming cheat
Cowboy Hat(H)0Chat cheat only
Bowler Hat(H)1Chat cheat only

Other Stardew Valley item types

Each item type has its own ID prefix and its own full list.

Hats ID questions

What do Hats IDs look like in Stardew Valley?
Every Hats entry uses the qualified ID form (H)0. The (H) prefix tells Stardew Valley which item type the ID belongs to — the same ID can exist in more than one type at once, so the prefix is what makes it unambiguous. This page lists all 120 Hats entries in the vanilla game.
How do I spawn Hats in Stardew Valley?
The naming cheat cannot spawn Hats. Naming an animal [(H)0] does nothing at all — no error, no item — because the game only reads bare numeric object IDs out of a name. Enable chat cheats on your save instead, then run /debug iq ALL_ITEMS (H) in the in-game chat to pick any Hats item straight out of the browser.
How many Hats items are in Stardew Valley?
There are 120 Hats entries in vanilla Stardew Valley, all listed on this page with their IDs.
Did Hats IDs change in Stardew Valley 1.6?
1.6 introduced qualified item IDs, which is where the (H) prefix comes from. The underlying numbers did not change, but anywhere the game has to be unambiguous it now expects the prefixed form.