Cheat Sheets / Stardew Valley item codes

Cheat Sheets · Stardew Valley

Stardew Valley Item Codes

Stardew Valley item codes are the game's own item ID numbers, typed in square brackets into a name. Name your farmer [74] and every time a villager says your name, a Prismatic Shard lands in your inventory; [74][645][499] gives a Prismatic Shard, an Iridium Sprinkler and Ancient Seeds. It works on PC in version 1.6.15; the Switch, PlayStation 4 and Xbox One versions removed it in 2018 and 2019, and for phones the sources disagree.

Find a code and build your name

Every code is in the table below. With JavaScript on, tap any code to add it to a name you can copy.

Most wanted

1,056 codes: 807 objects, 182 machines and big craftables, 67 weapons.

CodeItemSells for
Weeds
Diamond Stone
Ruby Stone
Jade Stone
Amethyst Stone
Topaz Stone
Emerald Stone
Aquamarine Stone
Wild Horseradish50g
Daffodil30g
Leek60g
Dandelion40g
Parsnip35g
Mussel Stone
Lumber2g
Stone
Stone
Stone
Stone
Stone
Stone
Gem Stone
Mystic Stone
Snowy Stone
Snowy Stone
Snowy Stone
Snowy Stone
Snowy Stone
Snowy Stone
Emerald250g
Aquamarine180g
Ruby250g
Amethyst100g
Topaz80g
Banana Sapling850g
Jade200g
Trimmed Lucky Purple Shorts
Diamond750g
Golden Walnut
Prismatic Shard2,000g
Geode Stone
Frozen Geode Stone
Magma Geode Stone
Cave Carrot25g
Secret Note1g
Quartz25g
Fire Quartz100g
Frozen Tear75g
Earth Crystal50g
Coconut100g
Cactus Fruit75g
Banana150g
Sap2g
Torch5g
Spirit Torch5g
Radioactive Stone
Dwarf Scroll I1g
Dwarf Scroll II1g
Dwarf Scroll III1g
Dwarf Scroll IV1g
Chipped Amphora40g
Arrowhead40g
Lost Book
Ancient Doll60g
Elvish Jewelry200g
Chewing Stick50g
Ornamental Fan300g
Dinosaur Egg350g
Rare Disc300g
Ancient Sword100g
Rusty Spoon25g
Rusty Spur25g
Rusty Cog25g
Chicken Statue50g
Ancient Seed5g
Prehistoric Tool50g
Dried Starfish40g
Anchor100g
Glass Shards20g
Bone Flute100g
Prehistoric Handaxe50g
Dwarvish Helm100g
Dwarf Gadget200g
Ancient Drum100g
Golden Mask500g
Golden Relic250g
Strange Doll (green)1,000g
Strange Doll (yellow)1,000g
Pufferfish200g
Anchovy30g
Tuna100g
Sardine40g
Bream45g
Largemouth Bass100g
Smallmouth Bass50g
Rainbow Trout65g
Salmon75g
Walleye105g
Perch55g
Carp30g
Catfish200g
Pike100g
Sunfish30g
Red Mullet75g
Herring30g
Eel85g
Octopus150g
Red Snapper50g
Squid80g
Seaweed20g
Green Algae15g
Sea Cucumber75g
Super Cucumber250g
Ghostfish45g
White Algae25g
Stonefish300g
Crimsonfish1,500g
Angler900g
Ice Pip500g
Lava Eel700g
Legend5,000g
Sandfish75g
Scorpion Carp150g
Treasure Chest5,000g
Joja Cola25g
Trash
Driftwood
Broken Glasses
Broken CD
Soggy Newspaper
Large Egg (white)95g
Egg (white)50g
Hay
Egg (brown)50g
Large Egg (brown)95g
Milk125g
Large Milk190g
Green Bean40g
Cauliflower175g
Ornate Necklace
Potato80g
Fried Egg35g
Omelet125g
Salad110g
Cheese Cauliflower300g
Baked Fish100g
Parsnip Soup120g
Vegetable Medley120g
Complete Breakfast350g
Fried Calamari150g
Strange Bun225g
Lucky Lunch250g
Fried Mushroom200g
Pizza300g
Bean Hotpot100g
Glazed Yams200g
Carp Surprise150g
Hashbrowns120g
Pancakes80g
Salmon Dinner300g
Fish Taco500g
Crispy Bass150g
Pepper Poppers200g
Bread60g
Tom Kha Soup250g
Trout Soup100g
Chocolate Cake200g
Pink Cake480g
Rhubarb Pie400g
Cookies140g
Spaghetti120g
Fried Eel120g
Spicy Eel175g
Sashimi75g
Maki Roll220g
Tortilla50g
Red Plate400g
Eggplant Parmesan200g
Rice Pudding260g
Ice Cream120g
Blueberry Tart150g
Autumn's Bounty350g
Pumpkin Soup300g
Super Meal220g
Cranberry Sauce120g
Stuffing165g
Farmer's Lunch150g
Survival Burger180g
Dish O' The Sea220g
Miner's Treat200g
Roots Platter100g
Sugar50g
Wheat Flour50g
Oil100g
Garlic60g
Kale110g
Tea Sapling250g
Rhubarb220g
Triple Shot Espresso450g
Melon250g
Tomato60g
Morel150g
Blueberry50g
Fiddlehead Fern90g
Hot Pepper40g
Warp Totem: Desert20g
Wheat25g
Radish90g
Seafoam Pudding300g
Red Cabbage260g
Flounder100g
Starfruit750g
Midnight Carp150g
Corn50g
Unmilled Rice30g
Eggplant60g
Rice Shoot20g
Artichoke160g
Artifact Trove
Pumpkin320g
Wilted Bouquet100g
Bok Choy80g
Magic Rock Candy5,000g
Yam160g
Chanterelle160g
Cranberries75g
Holly80g
Beet100g
Cherry Bomb50g
Bomb50g
Mega Bomb50g
Ostrich Egg600g
Iron Stone
Mahogany Seed100g
Brick Floor1g
Twig
Twig
Salmonberry5g
Grass Starter50g
Hardwood Fence10g
Amaranth Seeds35g
Amaranth150g
Grape Starter30g
Hops Starter30g
Pale Ale300g
Hops25g
Void Egg65g
Mayonnaise190g
Duck Mayonnaise375g
Void Mayonnaise275g
Acorn20g
Maple Seed5g
Pine Cone5g
Weeds
Weeds
Weeds
Weeds
Weeds
Weeds
Ice Crystal
Ice Crystal
Ice Crystal
Wood Fence1g
Stone Fence2g
Iron Fence6g
Gate4g
Dwarvish Translation Guide
Wood Floor1g
Stone Floor1g
Clay20g
Weathered Floor1g
Crystal Floor1g
Copper Bar60g
Iron Bar120g
Gold Bar250g
Iridium Bar1,000g
Refined Quartz50g
Honey100g
Tea Set200g
Pickles100g
Stone
Jelly160g
Beer200g
Rare Seed200g
Wine400g
Energy Tonic500g
Juice150g
Muscle Remedy500g
Basic Fertilizer2g
Quality Fertilizer10g
Basic Retaining Soil4g
Quality Retaining Soil5g
Clam50g
Golden Pumpkin2,500g
Poppy140g
Copper Ore5g
Iron Ore10g
Coal15g
Gold Ore25g
Iridium Ore100g
Wood2g
Stone2g
Nautilus Shell120g
Coral80g
Rainbow Shell300g
Coffee150g
Spice Berry80g
Sea Urchin160g
Grape80g
Spring Onion8g
Strawberry120g
Straw Floor1g
Sweet Pea50g
Field Snack20g
Common Mushroom40g
Wood Path1g
Wild Plum80g
Gravel Path1g
Hazelnut90g
Crystal Path1g
Blackberry20g
Cobblestone Path1g
Winter Root70g
Blue Slime Egg1,750g
Crystal Fruit150g
Stepping Stone Path1g
Snow Yam100g
Sweet Gem Berry3,000g
Crocus60g
Vinegar100g
Red Mushroom75g
Sunflower80g
Purple Mushroom250g
Rice100g
Cheese230g
Fairy Seeds100g
Goat Cheese400g
Tulip Bulb10g
Cloth470g
Jazz Seeds15g
Truffle625g
Sunflower Seeds20g
Truffle Oil1,065g
Coffee Bean15g
Stardrop7,777g
Goat Milk225g
Red Slime Egg2,500g
L. Goat Milk345g
Purple Slime Egg5,000g
Wool340g
Explosive Ammo20g
Duck Egg95g
Duck Feather250g
Caviar500g
Rabbit's Foot565g
Aged Roe100g
Stone Base
Stone
Weeds
Poppy Seeds50g
Ancient Fruit550g
Spangle Seeds25g
Algae Soup100g
Pale Broth150g
Bouquet100g
Mead300g
Mermaid's Pendant
Decorative Pot200g
Drum Block100g
Flute Block100g
Speed-Gro20g
Deluxe Speed-Gro40g
Parsnip Seeds10g
Bean Starter30g
Cauliflower Seeds40g
Potato Seeds25g
Garlic Seeds20g
Kale Seeds35g
Rhubarb Seeds50g
Melon Seeds40g
Tomato Seeds25g
Blueberry Seeds40g
Pepper Seeds20g
Wheat Seeds5g
Radish Seeds20g
Red Cabbage Seeds50g
Starfruit Seeds200g
Corn Seeds75g
Eggplant Seeds10g
Artichoke Seeds15g
Pumpkin Seeds50g
Bok Choy Seeds25g
Yam Seeds30g
Cranberry Seeds
Beet Seeds10g
Spring Seeds35g
Summer Seeds55g
Fall Seeds45g
Winter Seeds30g
Ancient Seeds30g
Small Glow Ring50g
Glow Ring100g
Small Magnet Ring50g
Magnet Ring100g
Slime Charmer Ring350g
Warrior Ring750g
Vampire Ring750g
Savage Ring750g
Ring of Yoba750g
Sturdy Ring750g
Burglar's Ring750g
Iridium Band1,000g
Jukebox Ring100g
Amethyst Ring100g
Topaz Ring100g
Aquamarine Ring200g
Jade Ring200g
Emerald Ring300g
Ruby Ring300g
Geode50g
Frozen Geode100g
Magma Geode150g
Alamite150g
Bixite300g
Baryte50g
Aerinite125g
Calcite75g
Dolomite300g
Esperite100g
Fluorapatite200g
Geminite150g
Helvite450g
Jamborite150g
Jagoite115g
Kyanite250g
Lunarite200g
Malachite100g
Neptunite400g
Lemon Stone200g
Nekoite80g
Orpiment80g
Petrified Slime120g
Thunder Egg100g
Pyrite120g
Ocean Stone220g
Ghost Crystal200g
Tigerseye275g
Jasper150g
Opal150g
Fire Opal350g
Celestine125g
Marble110g
Sandstone60g
Granite75g
Basalt175g
Limestone15g
Soapstone120g
Hematite150g
Mudstone25g
Obsidian200g
Slate85g
Fairy Stone250g
Star Shards500g
Prehistoric Scapula100g
Prehistoric Tibia100g
Prehistoric Skull100g
Skeletal Hand100g
Prehistoric Rib100g
Prehistoric Vertebra100g
Skeletal Tail100g
Nautilus Fossil80g
Amphibian Fossil150g
Palm Fossil100g
Trilobite50g
Artifact Spot
Tulip30g
Summer Spangle90g
Fairy Rose290g
Blue Jazz50g
Sprinkler100g
Plum Pudding260g
Artichoke Dip210g
Stir Fry335g
Roasted Hazelnuts270g
Pumpkin Pie385g
Radish Salad300g
Fruit Salad450g
Blackberry Cobbler260g
Cranberry Candy175g
Apple100g
Green Tea100g
Bruschetta210g
Quality Sprinkler450g
Cherry Sapling850g
Apricot Sapling500g
Orange Sapling1,000g
Peach Sapling1,500g
Pomegranate Sapling1,500g
Apple Sapling1,000g
Apricot50g
Orange100g
Peach140g
Pomegranate140g
Cherry80g
Iridium Sprinkler1,000g
Coleslaw345g
Fiddlehead Risotto350g
Poppyseed Muffin250g
Stone
Stone
Weeds
Weeds
Weeds
Weeds
Weeds
Weeds
Green Slime Egg1,000g
Rain Totem20g
Mutant Carp1,000g
Bug Meat8g
Bait1g
Spinner250g
Dressed Spinner500g
Warp Totem: Farm20g
Warp Totem: Mountains20g
Warp Totem: Beach20g
Barbed Hook500g
Lead Bobber150g
Treasure Hunter250g
Trap Bobber200g
Cork Bobber250g
Sturgeon200g
Tiger Trout150g
Bullhead75g
Tilapia75g
Chub50g
Magnet15g
Dorado100g
Albacore75g
Shad60g
Lingcod120g
Halibut80g
Hardwood15g
Crab Pot50g
Lobster120g
Crayfish75g
Crab100g
Cockle50g
Mussel30g
Shrimp60g
Snail65g
Periwinkle20g
Oyster40g
Maple Syrup200g
Oak Resin150g
Pine Tar100g
Chowder135g
Fish Stew175g
Escargot125g
Lobster Bisque205g
Maple Bar300g
Crab Cakes275g
Shrimp Cocktail160g
Woodskip75g
Haley's Lost Bracelet
Strawberry Seeds
Jack-O-Lantern
Rotten Plant
Rotten Plant
Omni Geode
Weeds
Copper Stone
Stone
Stone
Gold Stone
Iridium Stone
Slime5g
Bat Wing15g
Solar Essence40g
Void Essence50g
Mixed Seeds
Fiber1g
Oil of Garlic1,000g
Life Elixir250g
Wild Bait15g
Glacierfish1,000g
Weeds
Weeds
Weeds
Battery Pack500g
Lost Axe
Lucky Purple Shorts
Berry Basket
Golden Coconut
Weeds
Weeds
Weeds
Void Salmon150g
Slimejack100g
Pearl2,500g
Midnight Squid100g
Spook Fish220g
Blobfish500g
Wedding Ring1,000g
Cactus Seeds
Iridium Milk
Tree Fertilizer10g
Dinosaur Mayonnaise800g
Void Ghost Pendant4,500g
Movie Ticket500g
Crabshell Ring1,000g
Napalm Ring1,000g
Roe30g
Squid Ink110g
Tea Leaves50g
Fossil Stone
Fossil Stone
Clay Stone
Omni Geode Stone
Fossilized Skull100g
Fossilized Spine100g
Fossilized Tail100g
Fossilized Leg100g
Fossilized Ribs100g
Snake Skull100g
Snake Vertebrae100g
Mummified Bat100g
Mummified Frog100g
Ginger60g
Taro Root100g
Taro Tuber20g
Pineapple300g
Pineapple Seeds240g
Mango130g
Mango Sapling850g
Stingray180g
Lionfish100g
Blue Discus120g
Thorns Ring100g
Rustic Plank Floor1g
Stone Walkway Floor1g
Journal Scrap1g
Cinder Shard Stone
Cinder Shard Stone
Stone
Stone
Stone
Cinder Shard50g
Copper Stone
Iron Stone
Magma Cap400g
Dragon Tooth500g
Curiosity Lure500g
Tiger Slime Egg8,000g
Qi Gem
Lucky Ring100g
Hot Java Ring100g
Protection Ring100g
Soul Sapper Ring100g
Phoenix Ring100g
War Memento
Gourmet Tomato Salt
Stardew Valley Rose
Advanced TV Remote
Arctic Shard
Wriggling Worm
Pirate's Locket
Fairy Dust300g
Piña Colada300g
Bug Steak50g
Ectoplasm
Prismatic Jelly
Quality Bobber300g
Monster Musk50g
Combined Ring50g
Bone Fragment12g
Weeds
Weeds
Weeds
Fiber Seeds5g
Warp Totem: Island20g
Immunity Band250g
Glowstone Ring100g
Qi Fruit1g
Qi Bean1g
Mushroom Tree Seed100g
Warp Totem: Qi's Arena20g
Fireworks (Red)50g
Fireworks (Purple)50g
Fireworks (Green)50g
Galaxy Soul5,000g
Pierre's Missing Stocklist
Son of Crimsonfish1,500g
Ms. Angler900g
Legend II5,000g
Radioactive Carp1,000g
Glacierfish Jr.1,000g
Ginger Ale200g
Banana Pudding260g
Mango Sticky Rice250g
Poi400g
Tropical Curry500g
Magic Bait1g
Radioactive Ore300g
Radioactive Bar3,000g
Horse Flute
Enricher200g
Pressure Nozzle200g
Qi Seasoning200g
Hyper Speed-Gro70g
Deluxe Fertilizer70g
Deluxe Retaining Soil30g
Squid Ink Ravioli150g
SupplyCrate
SupplyCrate
SupplyCrate
Slime Crate3,000g
Cookout Kit80g
Camping Stove1g
Golden Egg500g
Hedge10g
???
Stone
Stone
Blue Grass Starter50g
Animal Catalogue2,000g
Treasure Appraisal Guide500g
Dwarvish Safety Manual1,000g
The Art O' Crabbing1,000g
Jack Be Nimble, Jack Be Thick500g
The Diamond Hunter1,000g
Friendship 1013,000g
Ol' Slitherlegs1,000g
Horse: The Book1,000g
Mapping Cave Systems4,000g
Book of Mysteries3,000g
Price Catalogue1,000g
Queen Of Sauce Cookbook10,000g
Jewels Of The Sea800g
Way Of The Wind pt. 15,000g
Way Of The Wind pt. 210,000g
The Alleyway Buffet3,000g
Monster Compendium2,000g
Raccoon Journal1,000g
Woody's Secret500g
Broccoli70g
Broccoli Seeds40g
Butterfly Powder
Calico Egg
Calico Egg Stone
Calico Egg Stone
Calico Egg Stone
Carrot35g
Carrot Seeds15g
Cave Jelly180g
Challenge Bait1g
Deluxe Bait1g
Dried (fruit)25g
Dried (mushrooms)25g
Far Away Stone500g
Goby150g
Gold Coin1g
Golden Animal Cracker1,000g
Golden Bobber
Golden Mystery Box
Green Rain Weeds
Green Rain Weeds
Green Rain Weeds
Green Rain Weeds
Green Rain Weeds
Green Rain Weeds
Green Rain Weeds
Green Rain Weeds
Mixed Flower Seeds
Moss5g
Moss Soup80g
Mossy Seed100g
Mystery Box
Mystic Syrup1,000g
Mystic Tree Seed100g
Pet License
Stone
Powdermelon60g
Powdermelon Seeds20g
Prize Ticket1g
Book Of Stars2,500g
Raisins600g
River Jelly125g
Sea Jelly200g
Artifact Spot
Stardew Valley Almanac500g
Bait And Bobber500g
Woodcutter's Weekly500g
Mining Monthly500g
Combat Quarterly500g
Smoked25g
Sonar Bobber250g
Bait (targeted)5g
Stardrop Tea77g
Summer Squash45g
Summer Squash Seeds20g
Tent Kit200g
Treasure Totem20g
Golden Tag
Stone
Stone
Gold Stone
House Plant
House Plant
House Plant
House Plant
House Plant
House Plant
House Plant
House Plant
Scarecrow
Lightning Rod
Bee House
Keg
Furnace
Preserves Jar
Cheese Press
Loom
Oil Maker
Recycling Machine
Crystalarium
Table Piece L
Table Piece R
Mayonnaise Machine
Seed Maker
Wood Chair
Wood Chair
Skeleton Model
Obelisk
Chicken Statue
Stone Cairn
Suit Of Armor
Sign Of The Vessel
Basic Log
Lawn Flamingo
Wood Sign
Stone Sign
Dark Sign
Big Green Cane
Green Canes
Mixed Cane
Red Canes
Big Red Cane
Ornamental Hay Bale
Log Section
Grave Stone
Seasonal Decor
Stone Frog
Stone Parrot
Stone Owl
Stone Junimo
Slime Ball
Garden Pot
Bookcase
Fancy Table
Ancient Table
Ancient Stool
Grandfather Clock
Teddy Timer
Dead Tree
Staircase
Tall Torch
Ritual Mask
Bonfire
Bongo
Decorative Spears
Boulder
Door
Door
Locked Door
Locked Door
Wicked Statue
Wicked Statue
Sloth Skeleton L
Sloth Skeleton M
Sloth Skeleton R
Standing Geode
Obsidian Vase
Bone Mill
Singing Stone
Stone Owl
Strange Capsule
Empty Capsule
Feed Hopper
Incubator
Heater
Tapper
Camera
Plush Bunny
Tub o' Flowers
Rarecrow
Decorative Pitcher
Dried Sunflowers
Rarecrow
Charcoal Kiln
Stardew Hero Trophy
Soda Machine
Barrel
Crate
Barrel
Crate
Barrel
Crate
Barrel
Crate
Rarecrow
Statue Of Endless Fortune
Mushroom Box
Chest
Rarecrow
Rarecrow
Rarecrow
Rarecrow
Rarecrow
Prairie King Arcade System
Wooden Brazier
Stone Brazier
Gold Brazier
Campfire
Stump Brazier
Carved Brazier
Skull Brazier
Barrel Brazier
Marble Brazier
Wood Lamp-post
Iron Lamp-post
Worm Bin
??HMTGF??
Slime Incubator
Slime Egg-Press
Junimo Kart Arcade System
Statue Of Perfection
??Pinky Lemon??
??Foroguemon??
Cask
Solid Gold Lewis
Auto-Grabber
Deluxe Scarecrow
Barrel
Crate
Geode Crusher
Seasonal Plant
Seasonal Plant
Seasonal Plant
Seasonal Plant
Seasonal Plant
Seasonal Plant
Workbench
Mini-Jukebox
Wood Chipper
Telephone
Mini-Fridge
Cursed P.K. Arcade System
Item Pedestal
Solar Panel
Stone Chest
Mini-Obelisk
Farm Computer
Coffee Maker
Sewing Machine
Mini-Shipping Bin
Ostrich Incubator
Junimo Chest
Barrel
Crate
Heavy Tapper
Deconstructor
Auto-Petter
Hopper
Campfire
Statue Of True Perfection
Anvil
Bait Maker
Big Chest
Big Stone Chest
Dehydrator
Deluxe Worm Bin
Fish Smoker
Heavy Furnace
Mini-Forge
Mushroom Log
Statue Of Blessings
Statue Of The Dwarf King
Text Sign
Rusty Sword
Silver Saber
Dark Sword
Holy Blade
Galaxy Sword
Bone Sword
Iron Edge
Templar's Blade
Obsidian Edge
Lava Katana
Claymore
Steel Smallsword
Wooden Blade
Insect Head
Neptune's Glaive
Forest Sword
Carving Knife
Iron Dirk
Burglar's Shank
Shadow Dagger
Elf Blade
Crystal Dagger
Wind Spire
Galaxy Dagger
Wood Club
Alex's Bat
Lead Rod
Wood Mallet
The Slammer
Galaxy Hammer
Sam's Old Guitar
Femur
Slingshot
Master Slingshot
Galaxy Slingshot
Elliott's Pencil
Maru's Wrench
Harvey's Mallet
Penny's Fryer
Leah's Whittler
Abby's Planchette
Seb's Lost Mace
Haley's Iron
Pirate's Sword
Cutlass
Wicked Kris
Kudgel
Scythe
Yeti Tooth
Rapier
Steel Falchion
Broken Trident
Tempered Broadsword
Golden Scythe
Dwarf Sword
Dwarf Hammer
Dwarf Dagger
Dragontooth Cutlass
Dragontooth Club
Dragontooth Shiv
Ossified Blade
Iridium Needle
Infinity Blade
Infinity Gavel
Infinity Dagger
Meowmere
Iridium Scythe

Sell prices are what a shop pays for one at normal quality, before profession bonuses, from the game's data. Rings sell for half the price in their data, so the table shows the half. A blank means the item has no sell price, or the data and the wiki disagree on it (Cranberry Seeds: 120g in the data, 60g on the wiki). Machines, big craftables and weapons show none.

How to use an item code, step by step

  1. Pick your items in the table or on the shelf above and copy the name, for example [74][645][499].
  2. Put it in a name. On a new farm, type it into the Name box when you make your character. On a farm you already have, change your name at the Shrine of Illusions in the Wizard's basement, which opens at four hearts with the Wizard and costs 500g each time. Or buy an animal from Marnie and give it the codes as its name.
  3. Get someone to say the name. An easy way is the telephone (Robin sells it for 2,000g): call Gus while the saloon is open, noon to midnight, and his usual greeting uses your name. Pierre's does too while his shop is open. Villagers also say your name in some of their everyday lines. For an animal, Marnie says its name once, right after you name it.
  4. Check your inventory. Each time the name is said, you get one of each item in it.

This works because the game uses the same bracket command when a villager hands you a gift in conversation, and your name is pasted into their lines before the game reads them. These steps are for a single-player farm.

Where the trick works in 2026

Every platform now runs the same version as PC, 1.6.15 (the PlayStation Vita stopped at an old 1.2 version). Here is what the patch notes and the game's own files say, platform by platform. We could not run the game ourselves, so a platform with no clear record is marked as not confirmed rather than guessed.

PlatformStatusWhat the record says
PC: Windows, Mac and LinuxWorksThe wiki lists it as a PC trick with an example in 1.6's own code format, item lists built from the 1.6.15 files are made for it, and since version 1.5 the game itself answers with a joke chat message when you put codes in your name at the Shrine of Illusions.
Nintendo SwitchRemovedIts 1.3 update (12 December 2018) stopped item codes in character names. The wiki notes Nintendo required it, since the trick could crash the game. No later patch note brings it back.
PlayStation 4RemovedRemoved in its 1.3 update, 24 September 2019. No later patch note brings it back.
Xbox OneRemovedRemoved in its 1.3.37 update, 8 November 2019. No later patch note brings it back.
Android and iOSNot confirmedThe sources disagree. The wiki's Secrets page says PC and mobile, but iOS update 1.15 (15 December 2018) lists the same fix as the consoles, and no later note undoes it.

Some guides say the codes work on Switch and every other platform. We found no patch note that brings them back after the 1.3 updates, so we could not confirm that.

What changed in version 1.6

Version 1.6 (19 March 2024) gave every item a text ID. The old numbers did not change: every object from before 1.6 keeps its number, so [74] is still a Prismatic Shard. Items added in 1.6 got words instead, like [CaveJelly] for a Cave Jelly or [CalicoEgg] for a Calico Egg.

1.6 also gave every kind of item a short prefix in brackets: (O) objects, (BC) machines and other big craftables, (W) weapons, (F) furniture, (H) hats, (B) boots, (S) shirts, (P) pants, (T) tools, (TR) trinkets, (M) mannequins, and (WP) and (FL) for wallpaper and flooring. A code with a prefix can make any kind of item, which is why the name trick now reaches machines and weapons. A plain number means an object first, and 134 numbers belong to both an object and a big craftable, so the prefix matters:

[128] Pufferfish
[(BC)128] Mushroom Box
[130] Tuna
[(BC)130] Chest
[163] Legend
[(BC)163] Cask
[165] Scorpion Carp
[(BC)165] Auto-Grabber
[4] Ruby Stone
[(W)4] Galaxy Sword

The table above covers objects, big craftables and weapons, the three kinds people ask for. Furniture, hats and clothes work the same way with their own prefix.

What can go wrong

Questions people ask

What is the item code for a Prismatic Shard in Stardew Valley?

[74]. Type [74] as your farmer's name and you get a Prismatic Shard each time a villager says your name. Other favorites: [645] for an Iridium Sprinkler, [499] for Ancient Seeds, [434] for a Stardrop, [337] for an Iridium Bar and [(W)4] for the Galaxy Sword.

Do Stardew Valley item codes still work in 1.6?

Yes, on PC. The trick works in version 1.6.15, the current version, and 1.6 made it stronger: with a type prefix such as (BC) or (W) you can make machines and weapons too, not just objects. Every object number from before 1.6 still means the same item.

Do item codes work on Switch, PS4, Xbox or mobile?

Not on the consoles, as far as any patch note says: Switch, PlayStation 4 and Xbox One each removed item codes in names with their 1.3 update, in 2018 and 2019, and no later note brings them back. On Android and iOS we could not confirm it either way: the wiki lists mobile as working, but an iOS update in December 2018 lists the same fix as the consoles.

How do you put item codes in your name in Stardew Valley?

Type the codes, brackets and all, into the Name box when you make a new character, like [74][645]. On a farm you already have, change your name at the Shrine of Illusions in the Wizard's basement (it opens at four hearts with the Wizard and costs 500g a time), or name a new farm animal from Marnie with the codes. Then get someone to say the name, for example by calling Gus on the telephone while the saloon is open.

How many item codes can you put in your name?

As many as fit in the name box, which is limited by its width, not by a set number of letters. Three short codes, like the wiki's example [645][499][(O)163], fit. Each pair of brackets gives one item every time your name is said.

What is the item code for the Galaxy Sword?

[(W)4]. Weapons need the (W) in front because their numbers overlap with objects: [4] on its own is a Ruby Stone, the rock you break in the mines, not the sword.

Is there a cheat command in Stardew Valley?

Version 1.6.9 added hidden chat cheat commands, but they are off by default: you switch them on by editing your save file's allowChatCheats setting, then type commands in the chat box. The name trick needs nothing but typing.

Sources (all read on 11 November 2026)

  1. The game's own data: Stardew Valley 1.6.15 (build 1.6.15.24356, released 20 December 2024), the files Data/Objects, Data/BigCraftables and Data/Weapons with their English names, and Strings/Characters for the telephone greetings. Codes, names and prices on this page come from these files.
  2. Stardew Valley Wiki, Secrets: Item Spawn Cheat and Shrine of Illusions.
  3. Stardew Valley Wiki, Modding: Dialogue (the bracket gift command and the name in dialogue).
  4. Stardew Valley Wiki, Modding: Migrate to Stardew Valley 1.6 and Modding: Items (text IDs, prefixes, how a plain number is read).
  5. Stardew Valley Wiki, Version History, Console Version History and Mobile Version History.
  6. Stardew Valley Wiki, The Player (the name box), The Shrine of Illusions, Telephone and Multiplayer: Cheat commands.
  7. Cross-checks: all 1,056 codes and names against Mateus Aquino's Stardew Valley Vanilla IDs list (built from the 1.6.15 files), 618 object numbers against the wiki's object ID chart, and 636 sell prices against the wiki's item pages. They all agree.