Skip to content

Browser Game Saves: Why Your Progress Disappears, Where It Really Lives and How to Keep It Safe

abe ·

Browser game saves live inside your browser, not on a server. Here is where your stars and levels are kept, what wipes them, and how players and developers can stop progress from vanishing.

Cover: a purple save disk with a green check over a VENO Pinworks screenshot, title Game saves, keep it safe, why progress disappears

Most free browser games save your progress inside your own browser, not on a server. Your stars, unlocked levels and settings sit in a small storage box that belongs to the game’s website, so the save survives a reload or a restart, but it can vanish if you clear site data, play in a private window, switch browsers or leave the game untouched too long in some browsers.

This guide explains browser game saves for both sides of the screen: players who want their 50 cleared levels to still be there tomorrow, and web game developers who want returning players to see a “Continue” button instead of level 1.

Quick facts
Where most web games save localStorage (small, simple) or IndexedDB (bigger, asynchronous) inside your browser
Who can read it Only pages from the same website (origin)
Survives Reloads, closing the tab, restarting the browser
Usually lost Clearing site data, private/incognito windows, a different browser or device
Size limit for localStorage About 5 MiB per website (MDN)
Can a game ask to keep it? Yes, with navigator.storage.persist(), but the browser may say no

What a browser game save actually looks like

A save is usually a short piece of text. To show a real one, we looked at the live code of VENO Pinworks, our free pull-the-pin clay puzzle. It keeps one entry in localStorage named pinworks:save:v1, and inside it are the stars you earned on each of the 60 levels (0 to 3), the furthest level you have unlocked, how many hints you have left, a small failure counter per level, and your sound, music and reduced-motion choices. That is the whole save: no account, no server, a few hundred characters.

VENO Pinworks title screen with a Let's play button, as it looks on a brand-new browser profile with no save

On a brand-new browser profile the title screen says Let’s play. We then put a save with 18 cleared levels into the same browser and reloaded: the button changed to Continue, the game opened at Level 19 of 60 in the Glaze Cellar zone, and the hint counter showed 2 instead of 3. Nothing else changed, which shows how completely the game’s memory depends on that one browser entry.

Side by side: a fresh profile starts at Level 1 of 60 with 3 hints, the same game with a saved file continues at Level 19 with 2 hints

Where browser games keep your progress

Web games can choose between a few storage tools. Each one is tied to the website’s origin (its address, such as venogame.com), so another site can never read your save, and your save does not follow you to another browser.

Four storage choices for web game saves: localStorage, sessionStorage that ends with the tab, IndexedDB for larger data, and an exported save file or cloud copy

Storage Lives until Good for Watch out
localStorage You or the browser delete it; survives restarts Settings, level flags, star counts About 5 MiB; synchronous, so big writes can stall a frame
sessionStorage The tab closes One run, a draft, a temporary state Closing the tab destroys it
IndexedDB Same rules as localStorage, much larger quota Big worlds, inventories, replays, images Asynchronous transactions that can fail or abort
Export file or account copy You keep the file / the server keeps the copy Long-term progress, moving devices Needs an import screen or a login

According to MDN’s Web Storage guide, localStorage persists even when the browser is closed and reopened, while closing a tab destroys that tab’s sessionStorage. IndexedDB is built for significant amounts of structured data, including files and blobs, and runs asynchronously so it does not block the game.

Why your browser game progress disappears

Browser storage is “best-effort” by default. MDN says such data stays as long as the site is under its quota, the device has enough space and the user does not delete it. These are the six usual ways a save is lost:

A save disk surrounded by five things that can wipe it: clearing data, Safari's 7-day rule, a full disk, private windows and storage inside embedded iframes

  1. You cleared browsing data. “Clear site data” or “cookies and other site data” removes the save along with everything else from that website.
  2. You played in a private or incognito window. MDN notes that in private mode localStorage behaves like sessionStorage: it works while you play, then everything is deleted when the private window closes.
  3. Safari’s seven-day rule. With cross-site tracking prevention on, Safari deletes script-created data of a website you have not clicked or tapped on in the last seven days of browser use (MDN).
  4. The disk got full. Under storage pressure browsers delete best-effort data from the least recently used websites first, and they remove all of a site’s data at once.
  5. You switched browser, profile or device. Chrome, Firefox and Safari each keep their own storage, so a save made in one is invisible in the others.
  6. The game ran inside another site’s frame. Since Chrome 115, storage used by a third-party iframe is kept separately for each top-level site (Chrome storage partitioning), so the same game embedded on two different portals keeps two different saves.

Tips for players: how to keep your levels and stars

  • Play in a normal window if you want to come back later. Private mode is fine for a quick round, not for a 60-level journey.
  • Use the same browser and profile each time, and bookmark the game’s own address rather than a page that embeds it.
  • When clearing data, skip the game’s site. Most browsers let you delete data per website instead of everything.
  • On Safari, visit and tap now and then. A game you open and play within seven days keeps its data under the rule above.
  • Look for an export or cloud option. If a game offers “export save” or a login, use it before you switch phones or reset your browser.
  • Wait for the “Saved” sign before closing a tab, especially right after you finish a level.

Tips for developers: build saves that survive the next visit

The checklist below follows the best practice in the tutorial that inspired this article, plus the browser rules documented on MDN.

  1. Decide what must survive. Settings, cleared levels, the current run and collections may need different storage and different cleanup rules. Keep downloadable assets apart from progress: a texture can be downloaded again, a player’s cleared challenge cannot.
  2. Pick the tool by size. localStorage for a few keys; IndexedDB for big or binary data. Avoid heavy serialization in the middle of gameplay.
  3. Treat saving as something that can fail. Wrap writes in try...catch (a full store throws QuotaExceededError), show “Saved” only after the write succeeds, and with IndexedDB wait for the transaction to complete instead of trusting a single request.
  4. Save at checkpoints. Level clear, purchase confirmed, inventory changed. Do not rely on a clean tab close.
  5. Ask for persistence, but never block on it. navigator.storage.persist() returns true or false; Firefox shows a prompt, while Safari and Chromium decide quietly from how much the player uses your site (MDN). It works only over HTTPS.
  6. Offer an export and a careful import. A downloadable save file is the cheapest backup. On import, check the shape, the version and the size first, let the player cancel, and keep the old save if the new one fails.
  7. Put a version in every save and migrate old data on purpose, as Pinworks does with :v1 in its key name.
  8. Never replace an unreadable save with an empty one. Keep a copy and offer a clear reset choice.

A version 1 save migrates to version 2, a broken save is rejected, a backup copy is kept and two open tabs must not overwrite each other

Two more traps are easy to miss. If the game is open in two tabs, an older tab can overwrite newer progress, so decide how to detect or prevent it. And because players can edit anything stored locally, local progress should never be trusted as proof for a competitive leaderboard.

Pinworks shows a simple defensive pattern: when it loads its save, it checks every field and clamps it to a sensible range (stars from 0 to 3, the unlocked level from 1 to 60), and anything broken falls back to the default value instead of crashing the game.

Test the return journey

Before release, test a fresh profile, a normal reload, a full browser restart, a failed write, a save from an older version and a corrupted import file. Test the hosted or embedded build too, because storage is tied to the origin and can be partitioned inside frames.

How VENO games remember you

VENO games run in your browser and keep progress the same way: on your device, for venogame.com only. Our shared game toolkit stores small settings such as your language under keys like veno:veno-pinworks:v1:language with a version number, and keeps a copy in memory if the browser refuses to write, so the game still works for the current visit. That also means the tips above apply: play in a normal window, stay on the same browser, and do not clear venogame.com’s data if you want your stars to stay.

Kilnby's pottery shelf in VENO Pinworks showing 32 of 36 stars in Clay Cottage and 16 of 36 in Glaze Cellar, all read from the browser save

Play a similar game on VENO

Want to see a browser save in action? Clear a few levels of VENO Pinworks, close the tab, come back later and watch the title screen greet you with Continue.

👉 Play VENO Pinworks now

FAQ

Where are browser game saves stored?

In your browser’s storage for that website, usually localStorage or IndexedDB. They stay on your device and are not shared with other browsers or devices.

Why did my browser game reset to level 1?

The most common causes are clearing site data, playing in a private window, opening the game in a different browser or profile, or Safari removing data from a site you have not used for seven days.

Does clearing cache delete game progress?

Clearing only cached images and files usually does not, but clearing cookies and site data does, because the save is site data.

Do incognito or private windows save game progress?

Only while the window is open. When the private window closes, the browser deletes its stored data, including game saves.

How can developers stop browser game saves from being deleted?

Request persistent storage with navigator.storage.persist(), handle a “no” gracefully, version every save, and offer an export file or account backup, because browser storage alone is not a backup.

Related articles

Loading game…

VENOGAME / PLAYBOOK

My arena

Saved on this device. No account needed.

Tap a heart to build your own game collection.