1. Enable Dev Mode (“saysopensesame”)
This is the easiest way to unlock a built-in cheat menu.
Steps:
Open Cookie Clicker
- Go to https://cookieclicker.ee/.
Rename Your Bakery
Click on your bakery name and change it to:
YourName saysopensesame
- Example: “CookieMaster saysopensesame”
- Press Enter.
Open the Dev Tools Menu
- A red “dev tools” button will appear in the top-left corner.
- Click it to access hacks like:
- Add infinite cookies
- Spawn Golden Cookies
- Unlock all upgrades & achievements
- Change game speed

2. Use the Developer Console (Best for Specific Hacks)
The browser developer console lets you enter cheat codes manually.
Steps:
Open Cookie Clicker.
Open Developer Console:
- Press F12 (or Ctrl + Shift + I) on Windows/Linux.
- Press Cmd + Option + I on Mac.
- Click the Console tab.
Enter Cheat Codes:
- Infinite Cookies:
Game.cookies = Infinity;
- Add Cookies:
Game.cookies += 1000000;
- Unlock All Upgrades:
Game.UpgradesById.forEach(upgrade => upgrade.unlock());
- Spawn a Golden Cookie:
Game.goldenCookie.spawn();
- Enable Dev Tools manually:
Game.OpenSesame();
Press Enter
- Cheats apply instantly!
3. Use a Bookmarklet (One-Click Hack)
A bookmarklet allows you to trigger hacks with a single click.
Steps:
Create a New Bookmark
- Right-click the bookmarks bar and choose Add Page or Add Bookmark.
Enter a Cheat Code as the URL
- Set the bookmark’s URL to:
javascript:Game.cookies=Infinity;
Click the Bookmark
- While playing Cookie Clicker, click the bookmark to activate infinite cookies.
4. Edit Your Save File for Permanent Hacks
This method lets you modify your save file for infinite cookies, upgrades, and more.
Steps:
Export Your Save
- Go to Options > Export Save.
- Copy the save string.
Edit the Save File
- Paste the save string into Notepad or another text editor.
- Find the
"cookies"
value and change it to:
"cookies":1e+100
- Modify other values like unlocked upgrades.
Re-import the Save
- Go to Options > Import Save and paste the new save data.
5. Use Mods (Steam & Browser)
Mods add auto-clicking, stock market automation, and infinite cookies.
Best Mods for Cheating:
- Cookie Monster (Advanced stats & optimizations).
- CCSE (Cookie Clicker Script Extender) (Allows custom scripts & cheats).
How to Install Mods:
- Steam Version
- Open Steam and go to the Steam Workshop.
- Search for “Cookie Clicker mods” and subscribe.
- Restart the game to apply mods.
- Browser Version
- Install Tampermonkey (a Chrome/Firefox extension).
- Download a Cookie Clicker mod script.
- Activate the script and refresh the game.
6. Use an Auto-Clicker for Unlimited Clicking
An auto-clicker helps you generate cookies faster.
Steps:
- Download GS Auto Clicker (Windows) or AutoClicker (Chrome extension).
- Set the click interval to 1 millisecond.
- Aim at the Big Cookie or Golden Cookies.
- Activate the auto-clicker for massive CPS boosts.
7. Best Cheat Codes for Cookie Clicker
Cheat | Code |
---|---|
Add Cookies | Game.cookies += 1000000; |
Infinite Cookies | Game.cookies = Infinity; |
Spawn Golden Cookie | Game.goldenCookie.spawn(); |
Unlock All Upgrades | Game.UpgradesById.forEach(upgrade => upgrade.unlock()); |
Enable Dev Mode | Game.OpenSesame(); |
Final Tips
✅ Backup Your Save before using cheats (Options > Export Save).
✅ Some cheats disable achievements (especially on Steam).
✅ Experiment and have fun! Hacking is great for testing but removes the challenge.
Now you can hack Cookie Clicker and bake infinite cookies like a pro! 🍪🔥🚀