How to Get Unlimited Cookies in Cookie Clicker
To learn how to get unlimited cookies in Cookie Clicker, open the browser developer console and enter Game.cookies = Infinity;. Press Enter, return to the game, and your cookie bank should display an infinite amount that ordinary purchases cannot reduce. A large finite value such as Game.cookies = 1e100; is usually more stable because Infinity can interfere with some calculations. Before testing either method on ABCya3, export your save so you can restore your original progress.
You can also activate Cookie Clicker’s built-in Open Sesame debug panel by adding saysopensesame to your bakery name. These methods are intended for experimentation and may affect statistics, achievements, upgrades, and the normal progression of your save.
Quick Answer
Open Cookie Clicker in a desktop browser, press Ctrl + Shift + J on Windows or Command + Option + J on macOS, and select the Console tab. Enter Game.cookies = Infinity; for an infinite balance or Game.cookies = 1e100; for an enormous finite balance. Press Enter and return to the game. Export your save first because purchases and achievements obtained with cheated cookies may be difficult to reverse.
Table of Contents
- What to Do Before Getting Unlimited Cookies
- How to Get Unlimited Cookies With the Console
- Which Unlimited Cookie Command Is Best?
- How to Use the Open Sesame Cheat Menu
- Useful Cookie Clicker Console Commands
- Why the Unlimited Cookies Cheat Is Not Working
- How to Remove Unlimited Cookies
- Will Cheating Affect Your Save?
- How to Earn Cookies Faster Without Cheats
- Conclusion
- Frequently Asked Questions
What to Do Before Getting Unlimited Cookies
Console commands directly change information stored inside the active Cookie Clicker session. The command itself may take only a few seconds to run, but the buildings, upgrades, achievements, and statistics purchased afterward can remain permanently attached to the save.
Create a clean backup before entering any command. Open the Options menu, select the export-save feature, copy the generated text, and store it in a document that you can locate later.
- Open the Cookie Clicker Options menu.
- Select the option to export your save.
- Copy the complete save code.
- Paste it into a plain text document.
- Give the file a clear name and date.
- Keep the backup until you finish testing cheats.
A separate browser profile or private window can also provide a temporary testing environment. However, private browsing data may disappear after the window closes, so export any experimental save that you want to keep.
Important: Setting your cookie balance back to normal does not automatically remove buildings, upgrades, achievements, prestige progress, or statistics gained while unlimited cookies were active.
How to Get Unlimited Cookies in Cookie Clicker With the Console
The browser console allows you to run JavaScript commands inside the web version of Cookie Clicker. It is the quickest method because you do not need to install extensions, download files, or modify the game manually.
- Open the game. Start Cookie Clicker online in a desktop browser and wait until the full interface appears.
- Export your save. Preserve a clean version before changing the cookie balance.
- Open developer tools. Use the shortcut that matches your browser and operating system.
- Select Console. Developer tools may initially open on Elements, Inspector, Sources, or another tab.
- Enter the command. Type Game.cookies = Infinity; exactly as shown.
- Press Enter. The command should immediately change the current balance.
- Close the panel. Return to the game and check the number beside the large cookie.
- Test a purchase. Buy a building and confirm that the balance remains unlimited.
Browser Console Shortcuts
| Browser | Operating System | Shortcut | |
|---|---|---|---|
| Chrome or Edge | Windows or Linux | Ctrl + Shift + J | |
| Chrome or Edge | macOS | Command + Option + J | |
| Firefox | Windows or Linux | Ctrl + Shift + K | |
| Firefox | macOS | Command + Option + K | |
| Safari | macOS | Command + Option + C after enabling the Develop menu | Command + Option + C after enabling the Develop menu |
Unlimited Cookies Command
Game.cookies = Infinity;
The command assigns JavaScript’s Infinity value to your current cookie bank. Subtracting a normal building or upgrade price from Infinity still produces Infinity, so ordinary purchases will not reduce the displayed balance.
Infinity is not a conventional cookie number, however. Certain calculations, statistics, save operations, or interface elements may behave unpredictably when they receive a non-finite value.
Which Unlimited Cookie Command Is Best?
The best practical option is often a massive finite number rather than Infinity. A finite value provides more cookies than you are likely to spend during an experimental session while preserving normal subtraction and comparison behavior.
Game.cookies = 1e100;
The value 1e100 represents 1 followed by 100 zeros. Cookie Clicker can still treat it as a numeric balance, but it is large enough to feel unlimited for most testing purposes.
| Method | Result | Main Advantage | Possible Disadvantage |
|---|---|---|---|
| Game.cookies = Infinity; | Sets the current balance to Infinity | Ordinary purchases do not reduce it | May cause unusual calculations or displays |
| Game.cookies = 1e100; | Sets the balance to a huge finite amount | More stable than Infinity | The balance can technically decrease |
| Game.Earn(1e100); | Adds a huge amount to the current balance | Preserves and increases the existing amount | Changes cookies-earned statistics |
| Open Sesame | Opens a visual debug interface | Provides several testing controls | Makes accidental changes easier |
Use Game.cookies = 1e100; when you want a simple balance for buying and testing content. Use Game.Earn(1e100); when you specifically want the game to record the amount as earned cookies.
How to Use the Open Sesame Cheat Menu
Open Sesame is Cookie Clicker’s built-in debug panel. Instead of entering a separate command for every change, you can use visual controls to add cookies, test upgrades, trigger events, and modify other mechanics.
Activate Open Sesame With Your Bakery Name
- Click your current bakery name.
- Shorten the original name if necessary.
- Add saysopensesame to the end.
- Confirm the new bakery name.
- Look near the upper-left area for debug information or a green control.
- Open the panel and select only the feature you need.
For example, “Cookie Factory” would become “Cookie Factory saysopensesame.” The trigger phrase should be entered as one continuous word and must fit within the bakery-name limit.
If the original name is too long, the game may remove the last characters of the phrase. Rename the bakery simply as saysopensesame when you want to eliminate that possibility.
Activate Open Sesame Through the Console
You can also open the debug interface with the following browser-console command:
Game.OpenSesame();
Press Enter and return to the game. The panel may provide controls for adding cookies, unlocking upgrades, spawning golden cookies, changing seasons, modifying achievements, and activating debug upgrades.
Do not select every option at once. Make one change, observe the result, and reload your clean save if the game no longer behaves as expected.
Useful Cookie Clicker Console Commands
Several short commands can modify the cookie bank in different ways. JavaScript is case-sensitive, so capitalization and punctuation must match the examples.
| Command | What It Does |
|---|---|
| Game.cookies = Infinity; | Sets the current cookie bank to Infinity |
| Game.cookies = 1e100; | Sets the bank to a huge finite number |
| Game.Earn(1000000); | Adds one million cookies |
| Game.Earn(1e100); | Adds an enormous number of cookies |
| Game.cookies = 0; | Sets the current cookie bank to zero |
| Game.OpenSesame(); | Activates the Open Sesame debug menu |
Setting Cookies Versus Earning Cookies
The assignment command Game.cookies = number; replaces the current bank. For example, entering Game.cookies = 1000000; changes the bank to exactly one million cookies, regardless of how many you held before.
The function Game.Earn(number); adds cookies to the existing bank. If you hold 500 cookies and use Game.Earn(1000000);, the new balance becomes 1,000,500 cookies.
These methods may also affect statistics differently. Adding cookies through the game’s earning function is more likely to influence totals based on cookies baked or earned, while directly assigning the bank focuses on the currently held amount.
Why the Unlimited Cookies Cheat Is Not Working
If nothing changes, the usual cause is a typing error, an incorrect developer tab, an unsupported game version, or an incomplete page load.
You Opened the Wrong Tab
Make sure you selected Console. Entering the command into Elements, Inspector, Network, Sources, the search bar, or the browser address bar will not change the game.
The Capitalization Is Incorrect
The first word must begin with an uppercase G. The following examples are incorrect:
- game.cookies = Infinity;
- Game.Cookies = Infinity;
- Game.cookies = infinite;
- Game.cookies Infinity;
The correct form is:
Game.cookies = Infinity;
The Game Has Not Finished Loading
If the console reports that Game is undefined, wait until the cookie, store, upgrades, and statistics interface has appeared. Refresh the page, click inside the game, and try the command again.
The Browser Blocks Pasting
Some browsers display a warning when users paste text into the developer console. The warning helps protect people from running malicious scripts they do not understand.
Follow the browser’s displayed process only after reading the command yourself. Never paste a large script that requests passwords, account details, downloads, cryptocurrency, browser files, or personal information.
The Hosted Version Uses Different Code
A recreated or modified Cookie Clicker build may look familiar while using different variable names. Standard commands will fail when that version does not expose the expected Game object.
Try refreshing the game and running the command after the full interface loads. If Game remains undefined, the specific build may not support standard Cookie Clicker console commands.
You Are Using Steam or Mobile
The browser-console method is designed for web-based versions. Steam and mobile editions do not provide the same easily accessible browser console, and the bakery-name trigger may not work in every platform edition.
Players should avoid downloading unknown “unlimited cookie” apps, modified installation files, or save editors. These files can create security risks and are unnecessary when a compatible browser version provides built-in testing options.
How to Remove Unlimited Cookies
You can replace Infinity with any normal amount by assigning a new value. For example, the following command changes your current bank to one million cookies:
Game.cookies = 1000000;
This removes the infinite balance, but it does not reverse purchases made while the cheat was active. Buildings, upgrades, prestige progress, achievements, and unlocked features may remain.
Remove Open Sesame
- Click the bakery name.
- Delete saysopensesame.
- Choose a normal bakery name.
- Save the game.
- Refresh the page.
The debug panel should disappear after the trigger is removed and the page is reloaded. Any cookies or upgrades added through the panel can remain in the save.
Completely Restore Your Original Progress
- Open the Options menu.
- Select the import-save feature.
- Paste the clean backup created before cheating.
- Confirm the import.
- Check your balance, buildings, upgrades, achievements, and prestige.
Importing the original save is the most reliable rollback method because it restores the entire recorded game state rather than adjusting one value at a time.
Will Unlimited Cookies Affect Your Save?
Unlimited cookies can permanently change the pace of a run. You may instantly purchase buildings and upgrades that normally require hours, days, or longer to obtain.
Cookie Clicker may also award the shadow achievement associated with cheated cookies or debug access. Although a shadow achievement does not function exactly like an ordinary achievement, it indicates that the save has used a recognized cheat-related action.
Possible Effects
- Your cookie statistics may no longer represent normal gameplay.
- Buildings and upgrades may unlock much earlier than intended.
- Achievements may be earned without regular progression.
- Prestige levels may increase rapidly.
- Infinity may cause unusual number displays or calculations.
- Debug upgrades may remain active until manually removed.
- The normal challenge of the game may disappear.
Use a separate test save when you want to explore late-game content without changing your main progression. Cheating is best treated as an experimental tool rather than a required strategy.
How to Earn Cookies Faster Without Cheats
Cookie Clicker is designed around production growth, upgrade combinations, golden-cookie effects, minigames, and ascension. Efficient use of those systems can produce enormous cookie totals without console commands.
- Buy efficient buildings. Compare each building’s price with the production increase it provides.
- Prioritize multipliers. Strong upgrades can outperform purchasing another ordinary building.
- Click golden cookies. Their temporary effects can produce much more than regular idle production.
- Combine buffs. Overlapping production and clicking bonuses create powerful cookie combos.
- Unlock minigames. The Grimoire, Pantheon, Garden, and Stock Market provide additional strategies.
- Use the Grimoire carefully. Spells can support strong golden-cookie combinations.
- Manage the Garden. Plants can improve production and influence useful game effects.
- Ascend at a meaningful milestone. Prestige upgrades make later runs significantly faster.
- Keep useful reserves. Spending every cookie immediately is not always the most efficient choice.
Incremental games reward long-term planning and repeated upgrades. Players who enjoy this progression loop can browse more titles in the Other games category while preserving their legitimate Cookie Clicker save.
A related option is Planet Clicker, which also centers on generating resources, purchasing upgrades, and increasing production over time.
Conclusion
The fastest answer to how to get unlimited cookies in Cookie Clicker is to open the browser console and enter Game.cookies = Infinity;. This creates an infinite cookie bank that ordinary purchases will not reduce.
For a more stable result, use Game.cookies = 1e100;. It provides an enormous finite balance while avoiding some of the unusual behavior associated with JavaScript’s Infinity value.
You can also activate the Open Sesame debug interface by adding saysopensesame to your bakery name or entering Game.OpenSesame(); in the console. Export your save before using either method because resetting the cookie bank will not automatically undo purchases, achievements, or other progression.
ABCya3 makes it easy to experiment with browser games, but protecting your original save lets you return to the intended progression whenever you choose. Use cheats carefully and keep a separate backup for testing late-game features.
Frequently Asked Questions
What is the Cookie Clicker command for unlimited cookies?
The browser-console command is Game.cookies = Infinity;. It changes the current bank to JavaScript’s Infinity value, so ordinary purchases do not reduce it. Open the Console tab in your browser’s developer tools, enter the command exactly, and press Enter. Export your save before making the change.
What is the safest command for almost unlimited cookies?
Use Game.cookies = 1e100; for a huge finite balance. This value is more than enough for most testing sessions but remains a conventional number that the game can subtract from and compare normally. It is generally less likely than Infinity to produce unusual statistics, calculations, or displays.
How do I open the console in Cookie Clicker?
On Chrome or Edge for Windows, press Ctrl + Shift + J. On macOS, press Command + Option + J. Firefox commonly uses Ctrl + Shift + K on Windows or Command + Option + K on macOS. Select Console if developer tools open on a different tab.
Can I add cookies instead of replacing my balance?
Yes. Use Game.Earn(number); to add cookies. For example, Game.Earn(1000000); adds one million cookies to your existing bank. By comparison, Game.cookies = 1000000; replaces the current balance and sets it to exactly one million.
Does saysopensesame give unlimited cookies?
Adding saysopensesame to the end of your bakery name opens the Open Sesame debug interface in supported web versions. It does not automatically set the bank to Infinity, but the panel provides tools that can add cookies and modify many other parts of the game.
Why does the console say Game is undefined?
The game may not have finished loading, the command may be running in the wrong page context, or the hosted build may use different code. Wait for the full interface, refresh the page, click inside the game, and try again. Modified or recreated versions may not support the standard Game object.
Can I undo unlimited cookies?
You can replace Infinity with a normal amount by entering a command such as Game.cookies = 1000000;. However, this does not remove buildings, upgrades, achievements, or prestige obtained while unlimited cookies were active. Import a clean backup when you need a complete restoration.
Can I get unlimited cookies on mobile or Steam?
The standard JavaScript-console method is primarily intended for browser versions. Mobile and Steam editions do not offer the same browser console, and the bakery-name method may not work on those platforms. Avoid unofficial modified apps or downloads, as they may be unsafe and can damage or replace your save.












