How to Get Infinite Cookies in Cookie Clicker
To learn how to get infinite cookies in Cookie Clicker, open your browser’s developer console and enter Game.cookies = Infinity;. The command changes your current cookie balance to Infinity, allowing you to purchase buildings and upgrades without running out of cookies. Before using it on ABCya3, export your save because cheat commands can permanently alter progression, achievements, and statistics.
The console method is the fastest option, but you can also activate the built-in Open Sesame debug menu. These methods usually work in the standard browser version, although some embedded or modified game builds may restrict developer commands.
Quick Answer
Open Cookie Clicker, press Ctrl + Shift + J on Windows or Command + Option + J on macOS, select the Console tab, and enter Game.cookies = Infinity;. Press Enter, close the developer panel, and return to the game. Your cookie bank should display an infinite value. For a more stable result, use a very large finite number such as Game.cookies = 1e100; instead.
Table of Contents
- What to Do Before Using Cookie Clicker Cheats
- How to Get Infinite Cookies in Cookie Clicker With the Console
- How to Use the Open Sesame Debug Menu
- Why a Large Number May Be Better Than Infinity
- Useful Cookie Clicker Cookie Commands
- Why the Infinite Cookies Command Is Not Working
- Will Infinite Cookies Affect Your Save?
- How to Earn Cookies Faster Without Cheats
- Conclusion
- Frequently Asked Questions
What to Do Before Using Cookie Clicker Cheats
Cheat commands directly modify the values stored in your active game session. A small typing error may be harmless, but commands that unlock upgrades, achievements, or debug features can significantly change your save.
Export your current save before opening the console. Open the game’s Options menu, choose the export option, copy the generated save text, and store it in a secure document. You can import that text later if the cheated version becomes unstable or less enjoyable.
You may also prefer to test commands in a separate browser profile or private window. This keeps your regular progression separate from the experimental session, although private browsing may not preserve the save after you close the window.
Important: Infinite cookies remove most of the game’s normal progression. Use cheats for testing, experimentation, or casual fun rather than on a save you want to complete normally.
How to Get Infinite Cookies in Cookie Clicker With the Console
The developer console allows you to run JavaScript commands that change values inside the browser game. This is the most direct method for players searching for how to get infinite cookies in Cookie Clicker.
First, open Cookie Clicker in your browser and wait until the game has fully loaded. Click inside the game once so the page is active, then follow the steps below.
- Export your save. Store an untouched copy before changing any game values.
- Open the developer tools. Use the shortcut for your browser and operating system.
- Select Console. Developer tools may initially open on the Elements or Inspector tab.
- Enter the command. Type Game.cookies = Infinity; exactly as shown.
- Press Enter. The command should run immediately.
- Return to the game. Close or minimize the developer panel and check your cookie balance.
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 |
Infinite Cookies Command
Game.cookies = Infinity;
JavaScript treats Infinity as a special numeric value. Because subtracting a normal purchase price from Infinity still produces Infinity, buying most buildings and upgrades will not reduce your balance.
However, Infinity is not a normal cookie total. Some calculations, displays, statistics, or save functions may behave unpredictably when they receive a non-finite value. A huge finite balance is often safer if you want to continue playing after using the command.
How to Use the Open Sesame Debug Menu
Open Sesame is Cookie Clicker’s built-in debug interface. It provides buttons and special tools for generating cookies, triggering events, unlocking content, and testing game mechanics without repeatedly entering console commands.
Method 1: Change Your Bakery Name
- Click your bakery’s current name.
- Keep the original name or enter a new one.
- Add saysopensesame to the end of the name.
- Confirm the bakery name.
- Look for the debug icon or developer controls near the game interface.
For example, a bakery named “Sweet Factory” would become “Sweet Factory saysopensesame.” The spelling must be exact, and the phrase should not be placed inside quotation marks.
Method 2: Open the Debug Menu With a Console Command
You can also activate the debug panel directly from the browser console. Open the Console tab, enter the following command, and press Enter:
Game.OpenSesame();
After the command runs, return to the game and look for the Open Sesame controls. Depending on the version, the menu may include options to add cookies, activate special effects, unlock upgrades, or change production settings.
Debug controls are powerful, so avoid clicking every option at once. Unlocking all content can make it difficult to understand which changes affected your save, and it may remove the normal sense of progression.
Why a Large Number May Be Better Than Infinity
The word “infinite” sounds ideal, but Cookie Clicker is designed to work with extremely large finite numbers. Assigning a large number gives you almost unlimited purchasing power while preserving more normal mathematical behavior.
Use this command to set your current balance to a googol cookies:
Game.cookies = 1e100;
The notation 1e100 means 1 followed by 100 zeros. This amount is more than enough for most testing sessions, but it remains a finite number that the game can subtract from and compare with other values.
| Method | Advantage | Possible Disadvantage |
|---|---|---|
| Game.cookies = Infinity; | Your balance does not decrease through ordinary purchases | May cause unusual calculations or save behavior |
| Game.cookies = 1e100; | Provides an enormous but mathematically valid balance | The balance can eventually decrease |
| Game.Earn(1e100); | Adds cookies instead of replacing the current balance | Can alter total cookies earned and related statistics |
| Open Sesame | Provides visual debug controls and multiple testing tools | Can change many parts of the game accidentally |
For casual experimentation, Game.cookies = 1e100; is usually the most practical choice. It provides the experience players expect from infinite cookies without introducing the special Infinity value into every calculation.
Useful Cookie Clicker Cookie Commands
Several commands can change your cookie balance in different ways. Commands are case-sensitive, so Game must begin with a capital G and method names must use the correct capitalization.
| Command | Result |
|---|---|
| Game.cookies = Infinity; | Changes the current cookie balance to Infinity |
| Game.cookies = 1e100; | Changes the current balance to a huge finite number |
| Game.Earn(1000000); | Adds one million cookies to the current balance |
| Game.cookies = 0; | Removes the cookies currently held in the bank |
| Game.OpenSesame(); | Activates the built-in Open Sesame debug interface |
Use Game.Earn(number); when you want to add cookies without replacing the existing amount. For example, Game.Earn(1000000); adds one million cookies to your bank.
Use Game.cookies = number; when you want the bank to become a specific amount. This assignment replaces the current balance rather than adding to it.
Why the Infinite Cookies Command Is Not Working
If the command produces an error or nothing changes, the most common cause is an incorrect console, a typing mistake, or a browser build that does not expose the expected game object.
You Opened the Wrong Developer Tab
Make sure you are using the Console tab. Entering JavaScript into Elements, Inspector, Sources, Network, or the browser address bar will not produce the intended result.
The Command Has Incorrect Capitalization
JavaScript is case-sensitive. The correct command begins with an uppercase G:
Game.cookies = Infinity;
Commands such as game.cookies, Game.Cookies, or Game.cookies = infinite will not work because those names refer to different or undefined values.
The Game Has Not Fully Loaded
Wait until the cookie, store, upgrades, and statistics are visible before running the command. If you enter it too early, the browser may report that Game is undefined because the required scripts have not finished loading.
The Console Shows a Pasting Warning
Some browsers display a warning when you paste text into developer tools. This protection is designed to prevent users from running unknown code copied from untrusted sources.
Follow the browser’s displayed instructions only after reading and understanding the command. Never paste a long script that requests passwords, browser data, cryptocurrency, downloads, or account information.
The Embedded Version Uses Different Code
Browser portals may host modified, recreated, or embedded versions of games. A build can look similar to Cookie Clicker while using different variable names, preventing standard commands from working.
Refresh the page and try again after the game loads. If Game remains undefined, that particular build may not support the standard console commands. Players can browse other Arcade games while keeping their main Cookie Clicker save unchanged.
You Are Playing a Non-Browser Version
Browser console instructions are intended for web-based versions. Steam, mobile, and console editions may store game data differently and may not provide direct access to the same JavaScript console.
Will Infinite Cookies Affect Your Save?
Infinite cookies can permanently change the pace and structure of a save. You may immediately purchase buildings, upgrades, and other progression items that normally require hours or days to reach.
Using debug tools may also trigger cheat-related indicators or shadow achievements in supported versions. Even when no visible warning appears, statistics such as cookies earned, cookies held, production milestones, or purchased upgrades can reveal that the save was modified.
Possible Effects of Using Cheats
- Normal progression may become meaningless.
- Achievements may unlock earlier than intended.
- Cookie statistics may no longer represent regular gameplay.
- Infinity may cause unusual displays or calculations.
- Debug upgrades can remain active after closing the menu.
- A modified save may be less satisfying to continue.
Exporting a clean save is the most reliable protection. If you only want to see late-game buildings or test different upgrades, use a separate save rather than modifying your main run.
Can You Undo Infinite Cookies?
You can replace Infinity with a normal amount by entering a new assignment command. For example, the following command changes your current balance to one million cookies:
Game.cookies = 1000000;
This corrects the current bank value, but it does not automatically reverse buildings, upgrades, achievements, or statistics obtained while the cheat was active. Import your original save when you need a complete rollback.
How to Earn Cookies Faster Without Cheats
Cookie Clicker is built around gradually improving production rather than reaching a final score. Players who want faster progress without console commands should focus on the value generated by each purchase.
- Buy early production buildings. Automatic production becomes more important than manual clicking as the run develops.
- Compare costs with production gains. An expensive building is not always the most efficient next purchase.
- Purchase strong upgrades. Multipliers can provide more value than adding another basic building.
- Watch for temporary bonuses. Golden cookie effects can create opportunities for major production bursts.
- Combine compatible bonuses. A clicking bonus becomes much stronger when it overlaps with another multiplier.
- Delay ascension until the reward matters. Resetting too early may produce only a small improvement in the next run.
- Keep a reasonable cookie reserve. Some bonuses and upgrades become more valuable when you avoid spending every cookie immediately.
Players who enjoy simple incremental mechanics can also try Capybara Clicker. Starting a different clicker game is a useful way to enjoy rapid progression without modifying an established Cookie Clicker save.
Conclusion
The fastest answer to how to get infinite cookies in Cookie Clicker is to open the browser console and enter Game.cookies = Infinity;. For a more stable game state, use Game.cookies = 1e100;, which provides an enormous finite balance without relying on JavaScript’s Infinity value.
Open Sesame is another useful option when you want visual debug tools instead of individual commands. Always export your save first because cookies, upgrades, statistics, and achievements may not return to normal simply by changing the balance again.
ABCya3 makes it easy to continue exploring browser games after testing these methods. Use cheats carefully, protect your original save, and choose the finite-number command when you want unlimited purchasing power with fewer potential side effects.
Frequently Asked Questions
What is the command for infinite cookies in Cookie Clicker?
The standard browser console command is Game.cookies = Infinity;. Open your browser’s developer tools, select Console, enter the command exactly, and press Enter. The uppercase G and the lowercase cookies property are important because JavaScript commands are case-sensitive. This method may not work in modified or non-browser versions.
What is the safest Cookie Clicker command for unlimited cookies?
A large finite number is generally safer than Infinity. Try Game.cookies = 1e100; to receive a googol cookies. This amount provides practically unlimited spending for most purposes while remaining a normal numeric value. Export your save first because purchasing upgrades and buildings can still permanently change progression.
How do I open the Cookie Clicker console?
On Chrome or Edge for Windows, press Ctrl + Shift + J. On Chrome or Edge for macOS, press Command + Option + J. Firefox commonly uses Ctrl + Shift + K on Windows or Command + Option + K on macOS. Select the Console tab if another developer panel opens first.
How do I activate saysopensesame in Cookie Clicker?
Click your bakery name and add saysopensesame to the end. A name such as “Cookie Town” would become “Cookie Town saysopensesame.” Confirm the name and look for the debug controls. You can also enter Game.OpenSesame(); in the browser console to activate the menu in supported versions.
Why does Cookie Clicker say Game is undefined?
The message usually means the game has not loaded, the page uses a different game implementation, or the command is running in the wrong frame. Wait for the full interface to appear, click inside the game, and try again. If the error remains, the embedded version may not expose the standard Game object.
Can I remove infinite cookies after using the command?
Yes. Replace Infinity with a finite amount, such as Game.cookies = 1000000;. This changes your current bank to one million cookies. It will not remove buildings, upgrades, achievements, or statistics earned while Infinity was active, so importing a clean backup is the best way to restore the original save.
Does using infinite cookies disable achievements?
Cheat and debug actions can trigger cheat-related indicators or shadow achievements in versions that support them. Other achievements may unlock because the modified balance lets you purchase advanced content immediately. The exact behavior can vary by build, so use a separate save when achievement progression matters to you.
Can I get infinite cookies on mobile or console versions?
The JavaScript console method is primarily intended for browser versions. Mobile and console editions do not normally provide the same developer console or expose the same game variables. Their save structures and available debug functions may also differ, so browser commands should not be expected to work on every platform.












