OneStopList

Gods and goddesses

How to Cheat in Cookie Clicker

Updated November 25, 2026

This guide covers the most common and effective ways to cheat in Cookie Clicker, the idle game where you bake cookies by clicking. Cheating can help you skip the slow early game, experiment with rare upgrades, or just have fun with god-like cookie production. Before you start, note that cheating is done via the browser’s developer console (usually opened with F12 or right-click > Inspect). The game saves your progress automatically, and cheats will not permanently break your save unless you do something drastic—but they will mark your game as ‘cheated’ in some statistics. Always back up your save file before experimenting.

What You’ll Need

  • A computer with a web browser (Chrome, Firefox, Edge, or Safari).
  • An active Cookie Clicker save file (you can start a new game or load an existing one).
  • Basic familiarity with opening the developer console.
  • Optional: a text editor to save your favorite cheat commands.

Step-by-Step

  1. Open the developer console. In most browsers, press F12 or Ctrl+Shift+J (Windows/Linux) or Cmd+Option+J (Mac). If that doesn’t work, right-click anywhere on the page and select ‘Inspect’ or ‘Inspect Element’, then click the ‘Console’ tab.
  2. Test that the console works with the game. Type Game.cookies and press Enter. If you see a number (your current cookie count), you’re connected. If you get an error, make sure you’re on the Cookie Clicker tab and that the game is loaded (the cookie should be visible).
  3. Add cookies instantly. Type Game.cookies = Game.cookies + 1000000 and press Enter. This adds 1,000,000 cookies to your current total. You can change the number to anything you want. The game will update immediately.
  4. Add cookies per second (CPS) boost. To permanently increase your cookie production, type Game.cookiesPs = Game.cookiesPs * 10 and press Enter. This multiplies your current CPS by 10. You can repeat this or use a different multiplier. Note: this affects the displayed CPS, but some achievements may not trigger correctly.
  5. Unlock all upgrades. To instantly unlock every upgrade in the game (including seasonal ones), type Game.UpgradesById.forEach(function(u) { if (u.unlock()) {} }); and press Enter. This will unlock all upgrades that are available in the current season and game stage. Be aware this can make the game less challenging.
  6. Unlock all achievements. To get every achievement, type Game.AchievementsById.forEach(function(a) { a.win(); }); and press Enter. This will award you all achievements, including those for special events. Some achievements may not appear until you refresh the page.
  7. Set your cookie count to a specific number. If you want a precise amount, type Game.cookies = 1234567890 (replace with your desired number) and press Enter. This sets your current cookies to that exact value.
  8. Add sugar lumps. Sugar lumps are a premium currency used for upgrades. To add them, type Game.lumps = Game.lumps + 10 and press Enter. This adds 10 sugar lumps. You can change the number.
  9. Buy every building instantly. To instantly purchase one of every building (up to the maximum you can afford), type Game.ObjectsById.forEach(function(o) { o.buy(1); }); and press Enter. This will buy one of each building type, but only if you have enough cookies. To buy multiple, change the 1 to a higher number.
  10. Use the built-in cheat menu. Type Game.OpenSesame() and press Enter. This opens a hidden debug menu with options like ‘Cheat cookies’, ‘Cheat lumps’, ‘Unlock all’, and more. This is the easiest way to do multiple cheats at once.
  11. Save your game after cheating. After applying cheats, type Game.WriteSave(1) and press Enter to save your game. This ensures your cheated state is stored. You can also use the game’s normal save button.

Common Mistakes

  • Typing commands in the wrong console. Make sure you’re in the game’s console, not the browser’s default console for a different page. If you see errors like ‘Game is not defined’, you’re on the wrong tab.
  • Using capital letters incorrectly. JavaScript is case-sensitive. Game.cookies works, but game.cookies or Game.Cookies will fail.
  • Forgetting to refresh after unlocking achievements. Some achievements require a page refresh to appear in your stats. After running the achievement unlock command, refresh the page (F5) to see them.
  • Overwriting your save accidentally. If you type Game.cookies = 0 by mistake, you’ll set your cookies to zero. Always double-check your numbers before pressing Enter.
  • Using cheats in a challenge run. If you’re trying to get a specific achievement like ‘Neverclick’ (which requires no clicks), using cheats will invalidate that run. Save a separate file before cheating.

Tips

  • Back up your save first. Go to Options > Export Save, copy the text, and paste it into a text file. This way you can restore your game if something goes wrong.
  • Use the debug menu for convenience. Game.OpenSesame() gives you buttons for common cheats, so you don’t have to type long commands.
  • Combine cheats for fun. For example, add a huge amount of cookies, then buy all buildings, then unlock all upgrades, and you’ll have a nearly maxed-out game.
  • Experiment with Game.RuinTheFun(). This command is a built-in cheat that gives you a massive boost, but it also marks your game as ‘cheated’. Use it if you want a one-click boost.
  • Know that cheats may affect achievements. Some achievements are disabled if you use certain cheats, like the ‘Cheated cookies taste awful’ achievement which you get for using the console. This is not a punishment, just a marker.

Troubleshooting

  • Command does nothing. If you type a command and nothing happens, check for typos. Also, make sure you’re pressing Enter after the command. If the command is long, copy and paste it from this guide.
  • Game freezes or crashes. If the game becomes unresponsive after a cheat, refresh the page. Your save should be intact, but if not, use your backup. Avoid using commands that set Game.cookies to extremely large numbers (like 1e100) as they may cause performance issues.
  • Achievements don’t unlock. Some achievements are tied to specific actions, like clicking the cookie a certain number of times. Simply unlocking all achievements via console may not trigger the ‘click 100 times’ achievement if you haven’t clicked that many times. Use the command Game.ClickCookie(100) to simulate clicks if needed.
  • Cheats not working after an update. The game’s code changes with updates, so some commands may break. If a command fails, try using the debug menu (Game.OpenSesame()) instead, as it’s more likely to be updated.
  • Can’t open the console. Some browsers or keyboard layouts may have different shortcuts. Try right-clicking and selecting ‘Inspect’, then click the Console tab. If you’re on a Mac, use Cmd+Option+I to open the inspector.

Frequently Asked Questions

  1. Will cheating break my game? Generally, no. Cheating may mark your save as ‘cheated’ in the stats, but the game will continue to function. However, some achievements may be permanently locked if you cheat before earning them legitimately. Always back up your save.
  2. Can I get banned for cheating? Cookie Clicker is a single-player game, so there is no ban. You can cheat freely without any consequences other than the game’s internal ‘cheated’ flag.
  3. How do I remove the ‘cheated’ flag? The flag is stored in your save file. You can edit the save text to remove it, but it’s complex. Alternatively, you can export your save, edit the text to remove the ‘cheated’ flag, and import it back. Search online for ‘Cookie Clicker save editor’ for tools that can do this.
  4. Is there a way to cheat without the console? Yes, you can use browser extensions or third-party tools, but the console is the most reliable and safe method. Some websites offer ‘save editors’ where you paste your save and modify values, then export a new save.
  5. What does Game.RuinTheFun() do exactly? It gives you a large boost (like 100,000 cookies and some upgrades), but it also triggers the ‘Cheated cookies taste awful’ achievement. It’s a quick way to jumpstart a game, but it’s not as customizable as manual commands.
  6. Can I use cheats on the mobile version? The mobile version of Cookie Clicker does not have a developer console, so these cheats won’t work. You can use save editors or find mobile-specific exploits, but they are less reliable.

Related

How pages are sourced and corrected: Sources and editorial policy.