If you want to hack Cookie Clicker to get infinite cookies, unlock all upgrades, or spawn Golden Cookies, you can use cheats, the developer console, mods, or save editing. Hereโs how to do it step by step:
1๏ธโฃ USE THE DEVELOPER CONSOLE (EASIEST METHOD)
You can use the browser’s developer console to enter cheat codes.
โ STEPS:
Open Cookie Clicker
- Go to https://cookieclicker.ee/.
Open Developer Console
- Press F12 (Windows/Linux) or Cmd + Option + I (Mac).
- Click the Console tab.
Enter Cheat Codes:
- Infinite Cookies:
Game.cookies = Infinity;
- Add 1 Million Cookies:
Game.cookies += 1000000;
- Unlock All Upgrades:
Game.UpgradesById.forEach(upgrade => upgrade.unlock());
- Spawn a Golden Cookie:
Game.goldenCookie.spawn();
- Enable Dev Mode (Admin Menu):
Game.OpenSesame();
Press Enter
- Cheats will activate instantly!

2๏ธโฃ ENABLE DEV MODE (“SAYSOPENSESAME”)
This method unlocks Dev Mode, which allows you to access cheat options easily.
โ STEPS:
Rename Your Bakery
- Click your bakery name and change it to:
YourName saysopensesame
- Example: “CookieMaster saysopensesame”
- Press Enter.
Open the Dev Tools Menu
- A red “dev tools” button appears in the top-left corner.
- Click it to access hacks, including:
โ Infinite cookies
โ Spawn Golden Cookies
โ Unlock all upgrades & achievements
โ Change game speed
โ HOW TO DISABLE DEV MODE:
- Rename your bakery to anything else.
- Refresh the page to remove Dev Mode.
3๏ธโฃ USE A BOOKMARKLET (ONE-CLICK CHEAT)
A bookmarklet allows you to activate cheats with a single click.
โ STEPS:
Create a New Bookmark
- Right-click the bookmarks bar and choose Add Page or Add Bookmark.
Enter 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, unlocked 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 modified save data.
5๏ธโฃ USE MODS (STEAM & BROWSER)
Mods allow auto-clicking, stock market automation, and infinite cookies.
โ BEST MODS FOR HACKING:
- Cookie Monster (Adds 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.
๐ฅ 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 have all the tools to hack Cookie Clicker and dominate the game! ๐ช๐ฅ๐