Where does Cookie Clicker save? File locations explained
In this article
Cookie Clicker saves its progress in a local file on your computer; the exact location depends on the operating system and whether you are playing the browser version, the Steam/stand‑alone client, or the mobile app. The game writes a JSON‑formatted save string to a specific directory, and the file is read each time the game starts, allowing you to continue where you left off.
Background and Evolution of the Save System
When Cookie Clicker was first released as a browser‑only game in 2013, the developers used the browser's localStorage API to keep the save data. This meant the save was tied to the specific browser profile and could be cleared when cookies or cache were emptied. As the game grew in popularity, the developers introduced a downloadable version for Steam and other platforms, which required a more robust, file‑based approach.
The shift to a file‑based system allowed players to back up their progress manually, share saves, and even edit certain values for experimentation. The format has remained essentially the same—a single line of Base64‑encoded JSON—so compatibility across versions is high. Understanding where that file lives is essential for safe backups and troubleshooting.
How the Save System Works Internally
Regardless of platform, Cookie Clicker stores a single string that represents the entire game state: cookies earned, upgrades purchased, buildings owned, achievements unlocked, and the current prestige level. The string is compressed and then encoded, which makes the file small (usually under 10 KB). When the game launches, it reads the file, decodes the string, and reconstructs the in‑memory objects that drive the UI.
Because the data is plain text (albeit encoded), it can be opened with any text editor. However, editing the file without understanding the encoding will corrupt the save. Most players use the built‑in “Export Save” and “Import Save” buttons, which handle the encoding automatically, but manual file access is useful for bulk backups or transferring saves between devices.
File Locations by Platform
The exact path varies by operating system and by which version of the game you are using. Below are the default locations for the most common setups. If you have changed the install directory for the Steam version, the path will be relative to that custom location.
- Windows (Steam/stand‑alone client):
%APPDATA%\CookieClicker\save.txtorC:\Users\[YourUser]\AppData\Roaming\CookieClicker\save.txt - Windows (browser version): Saved in the browser’s localStorage; you can export via the in‑game menu, but no physical file is created on disk.
- macOS (Steam):
~/Library/Application Support/CookieClicker/save.txt - macOS (browser): Stored in the browser’s localStorage database; again, export is the only direct method.
- Linux (Steam):
~/.config/CookieClicker/save.txt - Android (official app):
/sdcard/Android/data/com.orteil.cookieclicker/files/save.txt - iOS (official app): Saved inside the app’s sandbox; accessible only via iTunes File Sharing or a backup extractor.
Note that some community builds or third‑party launchers may use alternative folders, but the official releases adhere to the paths listed above.
How to Access and Edit Your Save File
To open the file, navigate to the path appropriate for your platform and double‑click save.txt. On Windows, the default program is Notepad, but you may prefer a code editor like VS Code to avoid accidental line‑ending changes. Always keep a copy of the original file before making any modifications.
- Close Cookie Clicker completely; the game locks the file while running.
- Copy
save.txtto a safe backup folder (e.g.,Documents\CookieClickerBackups). - If you wish to import a save from another device, replace the existing
save.txtwith the exported file. - Launch the game; it will read the new file and load the transferred progress.
For advanced users who want to edit the raw JSON, first decode the Base64 string using an online tool, edit the JSON, then re‑encode it. Mistakes such as removing commas or altering numeric types can render the save unreadable, so proceed with caution.
Common Problems and How to Fix Them
Several issues arise from misplaced or corrupted save files. The most frequent symptom is the game starting with a fresh “0 cookies” state despite having played for weeks. This usually means the game cannot locate the expected save.txt or the file is malformed.
To troubleshoot:
- Verify the file exists at the correct path for your OS.
- Check that the file is not empty; a zero‑byte file indicates a failed write.
- If the file size looks normal but the game still resets, open it in a text editor and ensure it contains a single long line of characters (the Base64 string).
- Restore from a backup copy if the current file is corrupted.
Another issue is accidental deletion during a system cleanup. Because the save resides in the AppData or Library folder, generic disk‑cleanup utilities may flag it as unnecessary. Adding the folder to your exclusion list prevents future loss.
Safety, Backups, and Version Compatibility
Regular backups are the simplest way to protect your progress. Because the file is tiny, you can schedule an automated copy every few hours using a script or a backup program. Store backups on a separate drive or cloud storage to guard against hardware failure.
Version compatibility is generally seamless; newer releases of Cookie Clicker can read saves from older versions. However, downgrading to a significantly older build may cause the game to ignore newer upgrades, effectively resetting parts of the progress. Always keep a backup before experimenting with older versions.
Frequently Asked Questions
Can I sync my Cookie Clicker save across multiple devices?
Yes, by using the built‑in “Export Save” button to copy the Base64 string, then “Import Save” on another device. For Steam users, the cloud sync feature automatically uploads the save.txt file, but you must enable Steam Cloud in the client settings.
Does clearing browser cache delete my save?
For the browser version, the save is stored in localStorage, which is cleared when you delete site data or use a private‑browsing mode. Exporting the save before clearing cache preserves your progress.
Why is my save file size only a few kilobytes?
All game data is compressed into a single Base64‑encoded string, which is highly efficient. Even with millions of cookies and dozens of upgrades, the file rarely exceeds 10 KB.
Can I edit my save to gain more cookies?
Technically possible by decoding, modifying the JSON, and re‑encoding, but doing so violates the spirit of the game and may trigger anti‑cheat measures in some community servers.
What happens if I delete the save file?
The game will start as if you are a new player, with zero cookies and no upgrades. Restoring from a backup is the only way to recover lost progress.
Is there a way to view my save file without exporting?
Yes, locate save.txt in the appropriate folder and open it with a text editor. The file contains the raw Base64 string, which you can decode using an online Base64 decoder to see the underlying JSON.