Cheat Sheets / Cookie Clicker
Cookie Clicker cheats
To cheat in Cookie Clicker, open your browser's console on the game's tab, paste a line such as Game.Earn(1000000000000); and press Enter: that one adds a trillion cookies. No console? The Cookie Clicker cheat name is any bakery name that ends in saysopensesame, such as Cookiesaysopensesame: the game then opens its own hidden dev tools.
Cookie Clicker cheat name
The game's rule: the name has to end in saysopensesame with at least one character in front, and the game keeps only letters, digits, spaces, ', - and _, cut at 28 characters. Type the start you want and copy the exact name:
Type this as your bakery name
Cookiesaysopensesame- In the game, click or tap your bakery's name at the top.
- Paste the name and press Confirm.
- The dev tools panel opens on the left at once. It works in the web version, phone browsers included, not on Steam, and it awards the shadow achievement Cheated cookies taste awful.
Cheat builder
Paste into the console on the game's tab
Game.Earn(1000000000000);To stop it
Adds 1 trillion cookies to your bank and to your cookies baked, as if you had baked them yourself.
- Your save
- Kept: the game saves it with your next save (every 60 seconds with autosave on, or Ctrl+S).
- Cheat achievement
- No. Cookies baked goes up by the same amount, so the game's cheat check never fires.
- Undo
- Import the backup you made first.
- Fastest cheat:
Game.Earn(1000000000000);in the console. How to open it. - Cheat name: name your bakery
Cookiesaysopensesame. Make yours. - Back up first: Options, then Export save. Two steps.
- The catch: some cheats earn the shadow achievement Cheated cookies taste awful. Which ones.
How to open the console
Go ahead and open Cookie Clicker in its own tab first, then press the keys for your browser. The console has to belong to the game's tab, not to this page, or it cannot see the game. A panel opens: click its Console tab if it is not already showing, paste the line next to the > and press Enter.
- Chrome, Edge, Brave, OperaCtrl+Shift+J on Windows and Linux, Cmd+Option+J on a Mac, or F12 and then Console
- ChromebookCtrl+Shift+J. A school or work Chromebook may have developer tools switched off by its owner; then use the bakery name trick, which needs no console.
- FirefoxCtrl+Shift+K on Windows and Linux, Cmd+Option+K on a Mac
- Safari on a MacTurn on the Develop menu in Safari's settings (Advanced), then Cmd+Option+C
- Phone or tablet browserThere is no console. Use the bakery name trick.
If the paste is refused: Chrome and Firefox ask you to type allow pasting and press Enter the first time you paste into a console. That is their guard against scams. Type it, then paste again. Only ever paste lines you can read and understand: every line on this page is shown in full and talks only to the game's own Game object.
Commands care about capital letters: it is Game, never game. Nothing appears to happen? Look at the cookie counter: most lines print undefined in the console, which is normal and means the line ran.
The cheat name, explained: saysopensesame
Cookie Clicker has a hidden developer panel, and the game opens it for anyone whose bakery name ends in saysopensesame. Click (or tap) your bakery's name at the top of the game, type a name such as Cookiesaysopensesame and press Confirm. The panel slides in on the left at once. The builder above makes a name that works: pick "Open the dev tools with your bakery name". The name cheat page goes deeper: a checker that runs any name through the game's own name code, what every button of the panel does, and everything else the panel switches on.
The rules, straight from the game's name check:
- The name has to end in saysopensesame, and something has to come before it: plain
saysopensesameon its own does nothing, because the game wants it to start after the first letter. - Capitals do not matter. The whole name can be at most 28 characters (the game cuts it there), so keep the front part to 14.
- Only letters, numbers, spaces, apostrophes, hyphens and underscores survive; anything else turns into a space.
- It works in the web version, in a phone browser too. The game skips the check when it runs inside the desktop app, so it does nothing on Steam.
- The name is saved, so the panel opens again every time the game loads that save. Rename the bakery to make it stop.
Opening the panel awards the shadow achievement Cheated cookies taste awful at once, and naming your bakery earns the normal achievement What's in a name. The panel's buttons:
- Ascend
- x10 and /10 cookies
- x1k and /1k cookies
- Buy 100 of all
- Sell 100 of all
- +10 lumps
- Reset levels
- HC x1k and HC /1k
- Reset cookies earned
- Ruin The Fun
- Wipe
- All debugs
- Timers
- No upgrades, All upgrades
- No achievs, All achievs
- Reset specials, Max specials
- Reset refills
- Ascend Edit
- Debug upgrades CpS
- Re-seed
- Max heralds
- One button per golden cookie effect
Careful with Wipe. It erases your whole save and keeps only your bakery name. Make a backup before you open the panel.
Back up your save first
Every cheat here writes into your save the moment the game saves (every 60 seconds with autosave on), and the only real undo is a backup. It takes two steps:
- Open Options and press Export save. Copy the long code and keep it in a note or a text file. On the web version, Save to file does the same as a download.
- To go back, open Options, press Import save, paste the code and press Load. Ctrl+O opens the same import box, and Ctrl+S saves right now.
Want to see what a save code holds, or change it without a console? The Cookie Clicker save editor reads your code in your browser (nothing is sent anywhere), shows your cookies, buildings, prestige and achievements, and writes a new code with the numbers you choose. The achievements checklist reads the same code and ticks every achievement in it.
The cheat achievement: Cheated cookies taste awful
The game keeps one achievement for cheaters, Cheated cookies taste awful. It is a shadow achievement, so it gives no milk and does not count toward your achievement total, but it sits in your stats for good. The game hands it out in four ways:
- Your bank is bigger than what you baked. Every 5 seconds the game checks whether your cookies in the bank are more than your cookies baked this ascension. Setting your cookies straight to a big number, or to Infinity, trips it.
- Opening the dev tools panel, by the bakery name or by
Game.OpenSesame();, awards it at once. - Unlocking every achievement includes it, since it is one of them.
- The panel's Wipe button awards it to the fresh save it leaves behind.
Game.Earn() adds the same amount to your bank and to cookies baked, so it never trips the check. Neither do the cookies per second and per click boosts, free buildings or sugar lumps. You can remove the achievement with Game.RemoveAchiev('Cheated cookies taste awful');, but if your bank is still bigger than your cookies baked, it comes back within 5 seconds.
Every cheat on this page
All 20, with the line the builder makes from its starting values. Each one was found in the game's own script before it went on this list.
- Add cookies
Game.Earn(1000000000000);No cheat achievementAdds 1 trillion cookies to your bank and to your cookies baked. - Set your cookies to an exact number
Game.cookies=1000000000;Cheat achievementYour bank becomes exactly 1 billion. Trips the cheat check if that is more than your cookies baked. - Infinite cookies
Game.cookies=Infinity;Cheat achievementYour bank becomes Infinity, and the save keeps it. - Multiply cookies per second
Game.registerHook('cpsMult',function(m){return m*10;});Game.recalculateGains=1;No cheat achievement10 times the cookies per second until you reload. - Multiply cookies per click
Game.registerHook('cookiesPerClick',function(n){return n*10;});Game.recalculateGains=1;No cheat achievement10 times the cookies per click until you reload. - Auto-click the big cookie
clearInterval(window.gfClicker);window.gfClicker=setInterval(Game.ClickCookie,50);No cheat achievement20 clicks a second, with a stop line in the builder. - Free buildings
Game.Objects['Grandma'].getFree(100);Game.recalculateGains=1;No cheat achievement100 grandmas without spending a cookie. Any of the 20 buildings works. - Add sugar lumps
Game.gainLumps(100);No cheat achievement100 sugar lumps, and sugar lumps switched on if you had not reached them. - Set heavenly chips
Game.heavenlyChips=1000000;No cheat achievement1 million chips to spend on heavenly upgrades. - Unlock every upgrade
Game.SetAllUpgrades(1);No cheat achievementEvery upgrade, heavenly ones too, and most of the hidden debug upgrades. - Unlock every achievement
Game.SetAllAchievs(1);Cheat achievementEvery achievement except the dungeon ones, the cheat achievement included. - Unlock one achievement
Game.Win('Tiny cookie');No cheat achievementAny achievement by its exact name. - Remove one achievement
Game.RemoveAchiev('Cheated cookies taste awful');No cheat achievementTakes one away. The cheat achievement comes back if your bank is still above your cookies baked. - Give one hidden debug upgrade
Game.Upgrades['Gold hoard'].earn();No cheat achievementGold hoard makes golden cookies appear really often. - Spawn a golden cookie
new Game.shimmer('golden');No cheat achievementOne golden cookie now. It does not count toward the golden cookie achievements. - Spawn a reindeer
new Game.shimmer('reindeer');No cheat achievementOne reindeer, in any season. - Open the dev tools panel
Game.OpenSesame();Cheat achievementThe game's hidden developer panel. - Open the dev tools with your bakery name
CookiesaysopensesameCheat achievementType it as your bakery name: no console needed. - Max out your dragon and Santa
Game.MaxSpecials();No cheat achievementBoth at their highest level. - Ruin the fun
Game.RuinTheFun();Cheat achievementEverything at once. Only a backup undoes it.
On phones, Chromebooks and Steam
- Phone and tablet browsers have no console, so console lines cannot be pasted there. The bakery name trick works, because the game only switches it off in the desktop app, and the panel's buttons answer taps like the rest of the game.
- Chromebooks run Chrome, so Ctrl+Shift+J works unless the Chromebook's owner turned developer tools off.
- Steam: the name trick does nothing there, since the game checks that it is not running in the desktop app first. When the game runs in the app it also reports every achievement it awards to Steam. How to open a console in the Steam version is not covered here: it is not in the web script, so we did not check it.
- The Cookie Clicker phone app is a separate game from the browser version. Nothing on this page was checked against it.
Questions people ask
How do you cheat in Cookie Clicker?
Open the browser console on the game's tab (Ctrl+Shift+J in Chrome, Cmd+Option+J on a Mac), paste a command such as Game.Earn(1000000000000); and press Enter. Without a console, name your bakery anything that ends in saysopensesame and the game opens its own dev tools panel.
What is the cheat name in Cookie Clicker?
Any bakery name that ends in saysopensesame with at least one character in front, such as Cookiesaysopensesame: rename your bakery to it and the web version opens its hidden dev tools panel.
Are there codes for Cookie Clicker?
There are no promo or redeem codes: the only code box in the game's script is Redeem a gift, for gift codes another player makes with Send a gift. Each gift holds 1 to 1,000 cookies, works for 2 days and needs the heavenly upgrade Wrapping paper and 1 billion cookies in your bank. What people call Cookie Clicker codes are the console lines on this page.
What are the Cookie Clicker cheat codes?
The cheat codes are lines for the browser console, such as Game.Earn(1000000000000); for a trillion cookies, Game.SetAllAchievs(1); for every achievement and new Game.shimmer('golden'); for a golden cookie. The builder above writes all 20 with a Copy button.
Is there a Cookie Clicker hack?
The hacks are the same console lines: Cookie Clicker runs in your browser, so its own functions can be called from the console, with nothing to download or install. To change a save without the console, use the save editor.
What is the Cookie Clicker code for infinite cookies?
Game.cookies=Infinity; makes your bank Infinity, and the save keeps it that way. Because your bank is then bigger than your cookies baked, the game awards the shadow achievement Cheated cookies taste awful within 5 seconds. Game.Earn(1e30); adds a nonillion cookies instead without tripping that check.
What does saysopensesame do in Cookie Clicker?
A bakery name that ends in saysopensesame, with at least one letter in front (Cookiesaysopensesame works, saysopensesame alone does not), opens the game's hidden developer panel with buttons for x10 cookies, buy 100 of everything, every upgrade, every achievement and every golden cookie effect. It works in the web version and not on Steam, and it awards Cheated cookies taste awful.
Do Cookie Clicker cheats work on Steam?
The bakery name trick does not: the game skips that check when it runs in the desktop app. The console commands are the game's own functions, but how to open a console in the Steam version is not covered here because it is not in the web script we checked.
Can you cheat in Cookie Clicker on a phone or a school Chromebook?
A phone browser has no console, but the bakery name trick works there, so the dev tools panel is one rename away. A Chromebook opens the console with Ctrl+Shift+J unless its owner turned developer tools off, in which case the name trick still works.
Will cheating ruin my Cookie Clicker save?
Only in the ways you choose, but most cheats cannot be taken back once the game saves, which it does every 60 seconds. Export your save from Options first; importing it later puts everything back exactly as it was.
How do you get rid of Cheated cookies taste awful?
Game.RemoveAchiev('Cheated cookies taste awful'); removes it. If your bank is still bigger than your cookies baked this ascension, the game gives it back within 5 seconds, so bring your bank down first or import a backup from before you cheated.
How do you spawn a golden cookie in Cookie Clicker?
new Game.shimmer('golden'); makes one appear, and the builder above can force its effect, such as Frenzy or Click frenzy. A golden cookie you spawn gives its effect but does not count toward the golden cookie achievements: the game only counts the ones it spawned on its own.
Is there an auto clicker command for Cookie Clicker?
Yes: clearInterval(window.gfClicker);window.gfClicker=setInterval(Game.ClickCookie,50); clicks the big cookie 20 times a second through the game's own click function, and clearInterval(window.gfClicker); stops it. The game ignores clicks less than 20 milliseconds apart, so 50 a second is the most that counts.
How this was checked
Every command, rule and number on this page was read in Cookie Clicker's own script, the file the game runs in your browser, as published at orteil.dashnet.org/cookieclicker on 2026-11-11. That copy declares version 2.058. Each function a line calls was found in that file and its code read, and the builder's lists (the 20 buildings, the golden cookie effects, the debug upgrades and every achievement name) are copied out of it by a script, so they match the game. The page was checked by reading the game's code, not by playing it, and nothing was taken from another site.
- The game's script, main.js, and its English text file, loc/EN.js, from orteil.dashnet.org/cookieclicker (version 2.058).
- Where each fact lives in it:
Game.Earn,Game.ClickCookie,Game.registerHook,Game.OpenSesame,Game.RuinTheFun,Game.SetAllUpgrades,Game.SetAllAchievs,Game.bakeryNameRefresh(the saysopensesame check) and the 5 second check that awards Cheated cookies taste awful.
Cookie Clicker is made by Orteil and Opti of DashNet. GardenFlouer is a fan site and is not connected to them.
Read next
- Cookie Clicker save editor: change cookies, buildings, heavenly chips, sugar lumps or your bakery name in your save code, in your browser.
- Every Cookie Clicker achievement: the full list with a checklist that remembers what you have.
- Cookie Clicker ascension guide: a prestige calculator, when to ascend, and every heavenly upgrade in buying order.
- Cookie Clicker garden guide: every seed and mutation, with a seed finder that draws the layout for your plot.
- Cookie Clicker Grandmapocalypse: the stages, a wrinkler calculator and the real odds of every wrath cookie.
- Cookie Clicker sugar lumps: lump types and their odds, a lump calculator, and what to spend lumps on first.
- Cookie Clicker name cheat: the saysopensesame rule, a name checker and every button of the dev tools panel.
- Cookie Clicker shadow achievements: all 17 with the check behind each and the quickest honest way.
- Stardew Valley item codes: every item code from the game's own files, and the name trick that turns a code into an item.
- Chrome Dino game: the max score, top speed and secrets, each with its line in the game's code, and a calculator for how far a run gets.
- Brotato calculator: shop odds by wave and Luck, armor, dodge and weapon damage, all from the game's own code.
- Cheat Sheets: codes and secrets for more games, each one checked.