A standalone browser-based CastleMiner Z
stats.savdecompiler for inspecting player stat saves locally.
Open the GitHub Pages site · View the repository
CMZ Stats SAV Decompiler is a simple single-file HTML tool for reading CastleMiner Z stats.sav files. It runs entirely in your browser and does not upload your save file anywhere.
The tool is intended for save inspection, debugging, and modding research. It can decode CastleMiner Z SaveDevice-wrapped stats.sav files, parse the DNA PlayerStats header, and display the known CastleMiner Z stats payload in a readable format.
- Opens
stats.savdirectly in the browser. - Detects CastleMiner Z SaveDevice wrapper files.
- Supports
RTSDSaveDevice metadata parsing. - Supports encrypted/compressed stats files when a valid key source is provided.
- Parses known CastleMiner Z stat fields such as blocks dug, item stats, ban list entries, settings, and input bindings.
- Detects optional
MA_EXTRA_V1MoreAchievements trailer data when present. - Shows parse warnings and trailing bytes to help with reverse engineering unknown fields.
- Does not require a server, install, or backend.
- Open the HTML page in a browser.
- Click Choose File and select your CastleMiner Z
stats.sav. - If the file is encrypted, enter one of the following key sources:
- SteamID64 folder name, usually found in
%LocalAppData%\CastleMinerZ\<SteamID64>\stats.sav - Old gamertag, only for older pre-migration saves
- Raw 16-byte key hex, if you already know the exact key
- SteamID64 folder name, usually found in
- Click Parse / Re-parse.
- Review the decoded sections and warnings.
This tool is designed to run completely client-side. Your stats.sav is read by the browser using the local File API. The file is not uploaded, submitted, or sent to a remote server by the tool.
This is a decompiler/parser, not a full save editor. It only displays fields that are currently understood.
Some CastleMiner Z achievement/stat values may be managed through Steam or game runtime state and may not exist directly in stats.sav. Unknown or version-specific bytes may appear as warnings or trailing data until the format is mapped further.
CastleMiner Z stats.sav files may be stored inside the game's SaveDevice format. SaveDevice files can be compressed, encrypted, or both. Encrypted files require the correct key source before the payload can be parsed.
Known key source options supported by the page:
- SteamID64 + CastleMiner Z key suffix
- legacy gamertag source for older saves
- raw 16-byte key hex
SPDX-License-Identifier: GPL-3.0-or-later
Copyright (c) 2025 RussDev7
This project is licensed under the GNU General Public License v3.0 or later. See LICENSE for details.
