Infinite Cookies in Cookie Clicker: Full Guide
In this article
Getting truly infinite cookies in Cookie Clicker requires either using the game's built-in cheat commands or modifying your save file. This guide covers both methods, plus the golden cookie and garden exploits that can generate effectively unlimited cookies without cheating. You'll need a browser with Cookie Clicker open, and for the save-editing method, a text editor.
What You'll Need
- A browser with Cookie Clicker loaded (any version, but the Steam or web version works best)
- For the console method: developer tools (F12 on most browsers)
- For the save-editing method: a text editor like Notepad
- Optional: an auto-clicker for the golden cookie method
Step-by-Step
Method 1: Console Commands (Easiest)
- Open Cookie Clicker in your browser.
- Press F12 (or right-click and select "Inspect") to open the developer console.
- Click on the "Console" tab in the developer tools panel.
- Type
Game.cookies = Infinityand press Enter. This sets your cookie count to infinity. - To also get infinite cookies per second (CPS), type
Game.cookiesPs = Infinityand press Enter. - If you want infinite sugar lumps, type
Game.lumps = Infinity. - To unlock all upgrades and achievements instantly, type
Game.SetAllUpgrades()andGame.SetAllAchievs(). - Close the developer tools. Your game now has infinite cookies.
Method 2: Save File Editing
- In Cookie Clicker, click on the Options tab (the wrench icon).
- Click Export save and copy the long string of text that appears.
- Paste the string into a text editor.
- Find the part that says
"cookies":followed by a number. Replace that number withInfinity(e.g.,"cookies":Infinity). - Also, find
"cookiesPs":and replace its value withInfinity. - Copy the entire modified string.
- Back in Cookie Clicker, click Import save, paste the modified string, and click Import.
- Your game will reload with infinite cookies.
Method 3: Golden Cookie Exploit (No Cheats)
- Unlock the "Get Lucky" upgrade (requires 77,777,777 cookies) to make golden cookie effects last twice as long.
- Buy the "Lucky Day" and "Serendipity" upgrades to increase golden cookie spawn rates.
- Keep your cookie count below 10% of your banked cookies to maximize the "Lucky" effect's payout.
- Use an auto-clicker to click golden cookies as soon as they appear.
- Stack the "Frenzy" (x7 CPS) and "Click Frenzy" (x777 click power) effects by clicking golden cookies quickly when they overlap.
- With enough golden cookie clicks, you can accumulate quadrillions of cookies in minutes, effectively making the game trivial.
Common Mistakes
- Typing
Game.cookies = Infinityin the wrong console (e.g., the browser's main console instead of the game's). - Forgetting to include the quotes around "cookies" when editing the save file.
- Not backing up your original save before editing – if you mess up, you lose progress.
- Using
Game.cookiesPs = Infinityalone, which may not update the display until you refresh. - Clicking golden cookies too slowly, missing the overlap window.
Tips
- If you use the console method, the game will still show a finite number in the cookie counter, but your actual cookie count is infinite.
- For the save-editing method, make sure to use a fresh export after each major purchase, or your changes may be overwritten.
- Combine the console method with
Game.RuinTheFun()to disable achievements if you want a truly clean infinite game. - If you want to keep achievements, use
Game.SetAllAchievs()after setting cookies to Infinity. - Golden cookie farming works best in the late game when you have high CPS and bank.
Troubleshooting
- Console says "Game is not defined": Make sure you are on the Cookie Clicker tab, not the developer tools console of another page. Refresh the game and try again.
- Import save doesn't work: Check that you copied the entire string, including the opening and closing quotes. Also, ensure you didn't accidentally delete any characters.
- Cookie count resets after refresh: This is normal if you didn't save after editing. Use the in-game save (Options > Save) or export/import again after making changes.
- Golden cookies stop appearing: Make sure you have the "Lucky Day" and "Serendipity" upgrades. If you're in a challenge mode (e.g., "Born again"), golden cookies may be disabled.
- Infinite cookies don't show in stats: The stats panel may still show a finite number, but your actual cookie count is infinite. Check by buying an expensive upgrade.
Frequently Asked Questions
Does using console commands disable achievements?
No, but some achievements may not trigger correctly if you set cookies to Infinity. You can manually unlock all achievements with Game.SetAllAchievs().
Can I get banned for using these methods?
Cookie Clicker is a single-player game, so there is no ban risk. However, if you use the Steam version, achievements earned via cheats may not sync to Steam.
Will my save file be corrupted if I edit it?
If you edit it correctly, no. Always keep a backup of the original save. If the game fails to load, import the backup.
Is there a way to get infinite cookies without cheating?
Not truly infinite, but the golden cookie exploit can give you effectively unlimited cookies in a short time. The garden can also produce net-positive cookie gains with the right plants.
Why does my cookie count show as "Infinity" but I can't buy anything?
This happens if you set Game.cookiesPs to Infinity but not Game.cookies. Set both to Infinity to fix it.
Can I use these methods on the mobile version?
The mobile version does not support console commands or save editing in the same way. The golden cookie method works, but the other two are not available.