Cheat Sheets / Cookie Clicker

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

  1. In the game, click or tap your bakery's name at the top.
  2. Paste the name and press Confirm.
  3. 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

1 trillion

Paste into the console on the game's tab

Game.Earn(1000000000000);

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.

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.

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:

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:

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:

  1. 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.
  2. 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:

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.

On phones, Chromebooks and Steam

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.

  1. The game's script, main.js, and its English text file, loc/EN.js, from orteil.dashnet.org/cookieclicker (version 2.058).
  2. 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.