- For cheats on Cookie Clicker Classic, please refer to Cheating (Cookie Clicker Classic).
- To make a suggestion please visit Suggestions page.
If you would like to experiment around with the game mechanics or just give yourself a boost, here are some cheats you can try. They require a bit of interaction with technical stuff. It is recommended that you export your save before cheating in case of undesirable results.
For the sake of organization, all scripts will follow this format:
- For scripts with "[Expand]", click it to see the full script
- <input> - replace the entire underlined part (including < and >) with the desired input
Additional helpful information:
- 1 millisecond is 1/1000th of a second, or 0.001 second.
- FPS stands for frames per second, which is the number of calculations done in a second. The default is 30 fps, but you can change it by using this.
Opening the Browser Console
These are the instructions to bring up the console in different browsers. The console is where you enter the code into for the cheats to take effect.
Windows: Either press CTRL + SHIFT + J or press F12 to open the Developer Tools and click on the "Console" tab if not already done.
Mac: Press ⌘ + ALT + J to open the Developer Tools. Click on the "Console" tab if not already done.
You can also right click and select "Inspect element" Then go to the Console bar.
Windows: Press CTRL + SHIFT + K to open the console. Click on the "scratchpad" icon on the right. After entering the desired code, press CTRL + R to execute it.
Windows Alternate: Press CTRL + SHIFT + K to open the console. Make sure Console is selected at the top left, and that JS is selected below it. At the bottom of the console, you will see >>, indicating that this is where you enter your code. Enter what you need, and hit 'enter' to run it. The results should be displayed. Note that a return of 'undefined' does not mean that it failed to execute, just that there was nothing to display back to the user.
Mac: Press ⌘ + OPTION + K to open the console.
Internet Explorer 9+
Windows: Press F12 to open the developer tools. Click the "Console" tab.
Windows: Press CTRL + SHIFT + I to open Dragonfly. Click on the "Console" tab.
Mac: Press ⌘ + OPTION + C to open the Error Console. (Make sure you check the "Show Develop menu in menu bar" box in the "Advanced" tab of the "Preferences" menu first.)
Using a Cheat Interface
- Our list of cheat interfaces can be found at Category:Cheat interface.
There are three ways to enable an interface. Choose the one that works the best.
- Create a new bookmark.
- In the "URL" box, copy/paste the following code. (The link to the source code can be found on the wiki page of the corresponding interface.)
- Name it whatever you like.
- Now, whenever you are in the game, simply click on this bookmark to enable the cheat interface.
- Open your browser console. For instructions, look above.
- Copy all the source code from the link provided in the cheat interface's wiki page.
- Paste all the code in your browser console.
- Press Enter.
- There should not be any error if successfully installed.
- Open your Monkey.
- Add a new UserScript.
- Copy/paste the following code into your Monkey editor. (The link to the source code can be found on the wiki page of the corresponding interface.)
- Go to your newly created UserScript.
- Open the parameters tab.
- Add a new user include.
- Copy/paste the game URL. (http://orteil.dashnet.org/cookieclicker/)
- Reboot your browser.
- Now, whenever you open Cookie Clicker, the cheat interface will automatically be enabled.
The most simple cheat you can do is import a save. You can make your own save codes using the Cookie Engine, or you can edit the save manually. If you wish to do that, here are the instructions:
- Export and copy your save.
- At the end of the code, delete the "%21END%21" and replace every "%3D" with a equal sign (=).
- Go to base64 decode and paste the modified save there.
- Decode it with UTF-8.
- Edit the save. (For information about formatting, refer below.)
- Go to base64 encoder and paste your new save.
- Encode it with UTF-8.
- At the end of the resulting code, replace every equal sign (=) with "%3D" and append "%21END%21".
- Import your save to the game.
The decoded save follows a certain format, take this save for example:
The vertical bars divide the save into sections. Following are the formats of each individual section.
- Version number
- Reserved for future use
- Unix timestamps
- Preferences (0 means OFF, 1 means ON)
- Cookie stats
Upon finishing the save editing, the following tools may be helpful in returning the save to its original format:
You can earn the "Cheated cookies taste awful" achievement through one of three of ways:
- Setting Cookies in bank to be greater than Cookies baked all time. (The amount may need to be adjusted depending on the CpS.)
Game.cookies = Game.cookiesEarned + <amount>;
- Spawning a Golden Cookie before its possible spawning period:
Game.goldenCookie.time = Game.goldenCookie.maxTime; Game.goldenCookie.spawn();
- Giving yourself the achievement:
Game.Win('Cheated cookies taste awful');
These are cheats built into the game itself to aid in debugging and testing the game.
Debug upgrades come in the form of upgrades that can only be enabled by using cheats. To enable them, refer to upgrades section below. There are currently 5 debug upgrades available:
- Ultrascience makes all new researches take only 5 seconds to complete.
- Gold hoard makes all Golden Cookies appear 0.6 seconds after the current/next golden cookie.
- Neuromancy give you the ability to toggle any upgrade on or off by clicking on their icons in the Stats menu.
- Perfect idling allows you to obtain cookies you would have gained through CpS while the game was closed.
- Wrinkler doormat makes wrinklers spawn 1000 times more frequent.
Ruin The Fun
Ruin The Fun is a function that instantly gives you all the upgrades (including the debug upgrades), all the achievements, and 999,999,999,999,999,999 cookies. To execute this function, simple use:
To change the amount of cookies in bank, use:
Game.cookies = <amount>;
To add more cookies to the existing amount in bank, use:
To remove a specific amount of cookies, use:
Game.cookies -= <amount removing>;
To obtain an infinite amount of cookies, use:
Game.cookies = Infinity;
Beware: The number of cookies displayed above the big cookie will not change from infinity if you reset the game and/or change the number of cookies in your bank. To fix this, reset the displayed number using:
Game.cookiesd = 0;
To change the CpS (will self-correct when new buildings/upgrades are bought), use:
Game.cookiesPs = <CpS>;
To make the effect stay until the page is refreshed, use:
Auto-Click Big Cookie
To auto-click the big cookie at a set interval, use:
var autoClicker = setInterval(Game.ClickCookie, <milliseconds interval>);
To end this effect, use:
The auto-click cheat above can only click as fast as the CPU can handle. To produce an even faster effect, use:
Auto-Click Only During Click Frenzy
To enable auto-click only during the Click Frenzy, use:
Prices Stay at Base Price
If you want all the prices to stay at base price despite amount owned, use:
All Buildings Are Free
If you want to make all buildings completely free, use:
Golden/Red Cookies Related
Note that the Red Cookie counts as a golden cookie as far as the game coding goes, therefore the following scripts also apply on red cookies. If you want all the red cookies to behave like golden cookies (prevent Ruin and Clot), simply remove the "/*" and the "*/" in each script.
Spawn a Golden Cookie
To spawn a golden cookie, use:
If you want to avoid getting the "Cheated cookies taste awful" achievement, use:
If you want to spawn a golden cookie that starts a cookie chain, add the following script in addition to the ones provided above:
Game.goldenCookie.chain = <stage>;
If you want to start the cookie chain at 6 cookies, use "1" as the stage. 66 cookies = "2", 666 cookies = "3", and so on.
Golden Cookies with No Delay
If you want the golden cookies to spawn one after another without delay, use:
Set Golden Cookie Clicks
If you just want to set the amount of golden cookies clicked, use:
Game.goldenClicks = <amount>;
If you want to earn the related achievements, use one of the auto-click's below.
Auto-Click Golden Cookies
If you want the golden cookies to be auto-clicked as soon as they appear, use:
This simpler code will also click golden cookies when they appear:
Alternatively, if you want to click only golden cookies as they appear, use:
Auto-Spawn and Click Golden Cookies
If you want to automatically spawn and click a set amount of golden cookies instantaneously, use:
If you want to automatically spawn and click a golden cookie at set interval, use:
To produce a customized Frenzy effect, use:
To produce a customized Clicking Frenzy effect, use:
Change Elder Pledge Time Left
If you want to change the time remained on the Elder Pledge, use:
Game.pledgeT = <minutes> * 60 * Game.fps;
Auto-Buy Elder Pledge
If you want to automatically buy Elder Pledge as it becomes available, use:
Auto-Click WrinklersIf you want the wrinklers to be auto-clicked as a set interval (note, it must run three times to kill them): or if you want an instant kill
There are two ways to refer to an achievement: its ID and its name. You must type the name EXACTLY as it appears in game for these scripts to work, including capitalization. If you are concerned about typing the name wrong, copy it from the table at the bottom of this page, or just use the ID.
Unlocking an Achievement
If you want to unlock an achievement, use:
Unlocking All Achievements
If you want to unlock every single achievement, use:
If you only want to unlock non-shadow achievements, remove the double slash (//);
Removing an Achievement
If you want to remove an achievement, use:
Game.Achievements[<name>].won = 0;
Game.AchievementsById[<ID>].won = 0;
Removing All Achievements
If you want to remove all the achievements, use:
If you only want to remove shadow achievements, remove the double slash (//);
Similar to achievements, upgrades can also be referred by either ID or name. A list of them can also be found at the bottom of this page.
Unlocking/Buying an Upgrade
If you want to unlock a single upgrade, use:
If you want to unlock AND buy an upgrade, use:
Unlocking/Buying All Upgrades
If you want to unlock all the upgrades, use:
If you want to unlock AND obtain all upgrades, use:
If you want to make all upgrades completely free, use:
If you want to make all researches instant, use:
Heavenly Chips Related
If you want to change the amount of heavenly chips temporarily, use:
This will make it so that when you refresh the page, the amount of heavenly chips returns back to normal. If you want it to be permanent, use:
If you want to obtain the maximum amount of heavenly chips possible permanently, use:
If you want to gain infinity heavenly chips, use:
Change Dungeon Level
If you want to change the dungeon level, use:
Game.Objects.Factory.dungeon.level = <level>;
The level affects amount of cookies rewarded and spawning of monsters. The new level goes into effect after the boss is defeated.
Change Dungeon Speed
If you want to change the speed at which the hero goes through the dungeon, use:
Turn Big Cookie into Face Cookie
To add a grandma face on the big cookie (may be disturbing for some), use:
To remove this effect, refresh the page or use:
To change the FPS of the game, use:
Game.fps = <FPS>;
This will change the game's FPS without effecting the game, which could make it less of a CPU-hog. Do note that changing the FPS can cause current buffs duration and current golden cookie spawn time to be altered.
Calculating Cookies at a Future Time
This is not really a cheat, but can be somewhat useful at times. To find out how many cookies you'll have in bank at a given time, use:
alert(Beautify(Game.cookies + (new Date("<YYYY-MM-DD HH:MM:SS>") - new Date().getTime()) / 1000 * Game.cookiesPs, 1));
To find out how many cookies you'll have baked all-time at a given time, use:
alert(Beautify(Game.cookiesEarne + (new Date("<YYYY-MM-DD HH:MM:SS>") - new Date().getTime()) / 1000 * Game.cookiesPs, 1));
To find out how many heavenly chips you can get by resetting at a given time, use:
alert(Beautify(Math.floor((Math.pow(1 + 8 * (Game.cookiesEarned + Game.cookiesReset + (new Date("<YYYY-MM-DD HH:MM:SS>") - new Date().getTime()) / 1000 * Game.cookiesPs) / 10e12, 0.5) - 1) / 2)));
Note that this assumes that you do not click the big cookie, buy new upgrades/buildings, or click golden cookies in this time period.
Golden Cookies Notifications
Golden Cookie Title Bar Alert
To make it so that the title of the webpage changes to an exclamation point whenever a golden/red cookie appears, use:
Golden Cookie Desktop Notification
To make it so that a desktop notification pops up whenever a golden/red cookie appears, use:
Play Beep Sound when Golden Cookie Spawns
To make it so that a beeping sound is played whenever a golden/red cookie spawns, use:
For instructions on using these scripts, refer to above.
Build Script X
Build Script X is a placeholder name to differentiate it from the other scripts. The creator(s) should change it accordingly, but who wants to sit in that debate? Build Script X is a great placeholder name anyway. Fancy.
The script automatically buys the most effective item only in terms of cookies per second and price. It also tells you how long it'll take until it buys, based on your CPS. (Doesn't buy upgrades nor take manual clicks, especially golden cookie clicks, into consideration)
The original description above have been disputed as follows:
- Certain upgrades are not taken into consideration in the calculations, although this may now be fixed.
- The script also allows for toggling the automatic buy function by pressing the A key.
- The script uses a proven formula (which includes your CPS rate) to calculate the order of buildings to be bought.
Link to source code: http://pastebin.com/raw.php?i=V3ZkT6j2
Build Script Y
This script is an improvement of Build Script X, it buy the most effective building or upgrade automatically and tell you details about it in the news bar. This script calculate the effectiveness of each building and each upgrades using the same formula as Build Script X. This script voluntarily ignore the Bingo Center because otherwise it'd spam the screen with "research as begun" and bring you to the grandmapocalypse.
Executing this code may cause lag on some machines, when the cookie count is high.
Link to source code: http://pastebin.com/raw.php?i=Nd3Ms8Zy
Build Script Y***
This script is an "improvement" of Build Script Y, after a quick passage to Y* and Y**, it performs exactly the same operation than the Build Script Y** except that it lag even less.
Build Script Y* removed the recurrent call to the calculation of the best item to buy from the Y script in order to remove the lag cause by the constant calculation.
Link to source code: http://pastebin.com/raw.php?i=N8g0TZ6P
Build Script Z Beta 0.94
This script present the same build mechanism as Build Script Y, but it adds the possibility to keep 20 or 140 minutes (depending if you have the last golden cookie upgrade or not) worth of production, enabling the 'Lucky' effect to give you tons of cookies. Option is activated by default and can be removed by pressing 'G'.
Note that after buying an item, it won't have a full 140 minutes stock because of the production of the new building. But it is the optimized way.
There are currently 1 known problems : - On small screen the text indicating the new feature status is hidden
Link to source code: http://pastebin.com/raw.php?i=vjLKNs0c
The IDs for every achievement and upgrade are in the tables below.
|0||Reinforced index finger|
|1||Carpal tunnel prevention cream|
|7||Forwards from grandma|
|8||Steel-plated rolling pins|
|13||Sturdier conveyor belts|
|23||Essence of dough|
|26||Insane oatling workers|
|29||Time paradox resolver|
|33||Oatmeal raisin cookies|
|34||Peanut butter cookies|
|37||White chocolate cookies|
|38||Macadamia nut cookies|
|41||White chocolate macadamia nut cookies|
|55||Dark chocolate-coated cookies|
|56||White chocolate-coated cookies|
|64||Bingo center/Research facility|
|65||Specialized chocolate chips|
|66||Designer cocoa beans|
|67||Ritual rolling pins|
|85||Revoke Elder Covenant|
|87||Sacrificial rolling pins|
|93||British tea biscuits|
|94||Chocolate british tea biscuits|
|95||Round british tea biscuits|
|96||Round chocolate british tea biscuits|
|97||Round british tea biscuits with heart motif|
|98||Round chocolate british tea biscuits with heart motif|
|101||Large macaron collider|
|102||Big bang bake|
|129||Heavenly chip secret|
|130||Heavenly cookie stand|
|0||Wake and bake|
|1||Making some dough|
|2||So baked right now|
|12||You can stop now|
|13||Cookies all the way down|
|18||Steady tasty stream|
|24||A world filled with cookies|
|25||Let's never bake again|
|37||Of Mice and Men|
|43||My first farm|
|44||Reap what you sow|
|49||You know the drill|
|51||Hollow the planet|
|54||Far far away|
|58||A whole new world|
|59||Now you're thinking|
|64||One with everything|
|69||A stroke of luck|
|70||Cheated cookies taste awful|
|85||Black cat's paw|
|89||It does matter!|
|93||Speed baking I|
|94||Speed baking II|
|95||Speed baking III|
|96||Getting even with the oven|
|97||Now this is pod-smashing|
|99||Follow the white rabbit|
|101||Friend of the ancients|
|102||Ruler of the ancients|