1. Using the Browser Developer Console
The browser console allows you to input JavaScript commands to manipulate the game directly.
Steps:
Open Cookie Clicker:
- Visit the game at https://cookieclicker.me/.
Access the Developer Console:
- Press F12 (or Ctrl + Shift + I) on Windows/Linux, or Cmd + Option + I on Mac to open the browser’s developer tools.
- Click the Console tab.
Enter a Cheat Code:
- To set a specific number of cookies:
Game.cookies = 1000000; // Gives you 1 million cookies
- To add cookies to your current total:
Game.cookies += 1000000; // Adds 1 million cookies
- To give yourself infinite cookies:
Game.cookies = Infinity;
Press Enter:
- After entering the command, your cookie count will update immediately.

2. Using the Developer Tools Menu
You can enable the developer tools menu for an easier way to give yourself cookies.
Steps:
Enable Dev Tools:
- Rename your bakery to:
YourName saysopensesame
- Replace
YourName
with any name. The important part is “saysopensesame” (case-sensitive).
Access the Developer Tools:
- A red “dev tools” button will appear in the top-left corner of the screen.
- Click the button to open the developer tools menu.
Add Cookies:
- Use the “+ cookies” button in the developer tools menu to add as many cookies as you want.
3. Use a Bookmarklet Cheat
Bookmarklets allow you to cheat with a single click.
Steps:
Create a New Bookmark:
- Right-click your bookmarks bar and choose Add Page or Add Bookmark.
Enter a Cheat Code as the URL:
- Use the following as the bookmark’s URL:
javascript:Game.cookies+=1000000;
Click the Bookmark:
- While playing Cookie Clicker, click the bookmark to instantly add cookies.
4. Edit Your Save File
You can manually edit your save file to give yourself cookies.
Steps:
- Export Your Save:
- Go to Options > Export Save and copy the save string.
- Edit the Save String:
- Paste the save string into a text editor (e.g., Notepad).
- Look for
"cookies"
and change the value to a large number (e.g.,1e+100
).
- Re-import the Save:
- Copy the modified save string and paste it back into the game via Options > Import Save.
Things to Keep in Mind
- Backup Your Save:
- Export your save before using cheats in case you want to return to a legitimate game.
- Achievements:
- Using cheats may disable achievements, particularly in the Steam version.
- Experiment Freely:
- Cheats are great for testing and exploring the game but may reduce the fun of natural progression.
With these methods, you can easily give yourself as many cookies as you want in Cookie Clicker. Happy baking! 🍪