JSON Save Editor
The JSON Save Editor opens any game save that stores its data as JSON, even when it's hidden under base64, gzip, LZString or a byte-order mark, shows it as a searchable tree in a JSON file editor built for saves, and writes it back in exactly the same wrapping with every value you didn't touch left byte-for-byte identical.
It also detects and handles the near-JSON quirks games actually produce — a base64-wrapped save, a stray header line, a trailing comma — so a file that would choke a plain parser still opens here.
Runs 100% in your browser — parse, edit, and re-encode happen locally. Your file is never uploaded.
Keep a copy of your original save file somewhere safe before editing. This tool can't undo changes to the game itself.
Any extension (.json, .sav, .save, .dat, .txt): the file's content decides how it's read, not its name. Everything happens in your browser; nothing is uploaded.
plain JSON base64 gzip / zlib LZString UTF-16 / BOM // commentsReading file…
Edit Your Save File
No changes yet

How This Tool Reads Near-JSON Files
The part most "generic JSON editors" skip. It's also the reason a naive one chokes on a real, messy save.
Whether you'd call it a JSON save editor, a JSON save file editor, or you typed save editor json because that's the order the words came out — it's the same tool you're after: something that opens a save file, shows you the values inside as something you can actually click into and change, and hands back a file the game will still load. Not every file a game calls a "JSON save" is clean, parseable JSON the moment you open it, though. A few things commonly stand between the file on disk and the readable data underneath — and getting each one wrong is how a generic editor either refuses to open the file at all, or silently reformats it into something the game's own loader doesn't expect:
- Real JSON has strict rules, and hand-rolled savers often break them. Standard JSON requires double-quoted keys and strings, no trailing commas and no comments. Games that build their save text by hand, a string-templated loop over inventory items for example, easily leave a comma after the last item. That's a one-character mistake the game's own loader tolerates and a strict parser rejects, so this tool strips comments and trailing commas (and tells you it did) instead of refusing the file.
- Most "JSON saves" are wrapped, not broken. The readable JSON is often one or more layers down. Windows and .NET tools add a byte-order mark or write UTF-16. Unity and web games gzip it. Many browser and idle games compress it with LZString, and plenty of others base64-encode the result, sometimes wrapped at 76 characters per line. Some store JSON as a string inside another JSON file, or put a version header in front. The editor peels those layers one at a time, records exactly how each was applied (padding, line width, BOM), and before letting you edit, proves it can rebuild the original file from what it found.
- Why a plain-text editor is risky here. Notepad doesn't know whether you just broke the file. A missing comma or an unmatched brace won't surface until the game tries to load it, and by then you won't know which edit caused it. Worse, saving a UTF-16 or BOM file from the wrong editor silently changes its encoding. A validating tool catches a break the moment you make it and writes the encoding back as it found it.
- What this tool does differently. It never re-serializes your file. It records exactly where each value's text sits, and an edit swaps only those characters. Indentation, key order,
1.50staying1.50, and a 20-digit ID like76561198012345678901staying exact all survive, even though a JavaScriptJSON.parseround trip would round that ID and rewrite the spacing.
How to Edit a JSON Save File
A worked example using a nested player.stats.health field, the same shape most game saves actually use.
Find your save file
It depends on how the game was built. Look for a .json, .sav, .save or .dat file in the game's install folder, in Documents/My Games, or in your user app-data folder (on Windows, %APPDATA%, or %USERPROFILE%\AppData\LocalLow for Unity games). Browser games keep saves in the page's storage; most offer an Export save button that gives you a text string you can paste into a .txt file.
Load it into the tool
Drag the file in or click to browse. It's decoded in a background thread with a progress bar and a Cancel button. The tool checks for plain JSON, a byte-order mark, UTF-16, gzip, zlib, base64, LZString, URL encoding, JSON inside a string and header text, and tells you which layers it found.
Find the field, by tree or search
As an example, to raise player.stats.health from 20 to 100 before a hard fight, type health in the search box and edit the value right in the results, or expand player → stats in the tree. Big numbers and decimals are shown exactly as the file has them, and timestamps get a readable date beside them.
Change many values, or the structure
Search for unlocked, then use Set all matching values to flip every match to true in one step. The … row menu adds, deletes, renames, duplicates or changes the type of any field, and a string that holds JSON gets its own editor. Undo (Ctrl/⌘+Z) steps back through all of it.
Download the checked result
Click Download Edited File. The edited JSON is re-validated, every value edit is read back from it, the original wrapping is re-applied, and the result is decoded again and compared before the file is released. An unedited download of an uncompressed file is byte-for-byte identical to the original.
Keep the backup until it’s confirmed working
The download keeps the original file name so it can go straight back where it came from. Copy the original somewhere safe first, load the edited save in the game, and only then delete the backup.
What Makes a File "Valid JSON", and What This Tool Unwraps
Every way a real save file hides or bends its JSON that this tool handles, and what happens to it on download.
| Symptom | What it looks like | What this tool does |
|---|---|---|
| Trailing comma | {"gold": 100,} | Removed on import, and the notice above the editor says so. |
// or /* */ comments | {"gold": 100 // cheat} | Removed the same way. A // inside a string, like a URL, is left alone. |
| Byte-order mark / UTF-16 | EF BB BF 7B … | Read correctly and written back with the same BOM and encoding. |
| gzip or zlib | 1F 8B 08 … / 78 9C … | Decompressed, and recompressed the same way on download. |
| Base64 | eyJnb2xkIjoxMDB9 | Decoded, including URL-safe and line-wrapped base64, and re-encoded with the same padding and line width. |
| LZString | N4IgdghgtgpiBcIAOA… | Base64, URI-safe and UTF-16 variants all detected and re-compressed with the same variant. |
| JSON inside a string | "{\"gold\":100}" | Unwrapped for editing and stored back as a string. A string value holding JSON gets its own Edit JSON button. |
| Header or footer text | SAVE_V2
{"gold":100} | The JSON block is edited on its own; the surrounding text is reattached untouched. |
| Numbers JavaScript can't hold | 76561198012345678901 | Shown and kept exactly. Nothing is converted to a floating-point number unless you use Pretty-print, which refuses if it would round one. |
| Genuinely invalid JSON | {"gold": 100 | A specific error with the line, column and nearby text, not a blank page. |
How We Tested It
What actually ran, and the numbers it produced.
An automated suite runs the editor's real background worker against every wrapping in the table above. Each output is checked with independent tools (Node's own zlib, Buffer and JSON.parse, and the upstream lz-string library), not the editor's own decoder. It confirms three things. An unedited download is byte-identical wherever the format allows. One edited value changes exactly that value. And structural edits keep the file's own indentation. It also covers every error case, from an empty file to a raw line break inside a string, and checks that a 20-digit integer survives every path.
- Test file
- 50 MB save, 2.6 million values
- Open (plain JSON)
- 1.3 s
- Open (gzip / LZString)
- 1.7 s / 5.1 s
- Expand all 2.6M rows
- 30 ms
- Search every key & value
- 0.18 s
- Add / delete + re-index
- 0.7 s
- Rows in the page at once
- ~21
- Page freezes
- None over 0.25 s
Measured in desktop Chrome, September 2026. Real-world saves are usually a few hundred kilobytes, where everything is effectively instant.
Frequently Asked Questions
Compatibility, safety, big files, and what "invalid JSON" really means.
If the save is JSON somewhere underneath, yes. The tool doesn't need to know the engine. To check, open the file in a text editor: if it starts with { or [, it's JSON. If it's one long line of letters and digits, it's probably base64 or LZString, and if it looks like binary garbage it may be gzip. All of those are worth a try here; the tool tells you exactly what it found. If it reports it can't find JSON at all, the game likely uses its own binary or encrypted format, which this tool can't read.
Usually, yes. Many browser and idle games export saves as LZString-compressed text (Evolve and Kittens Game both do), and others use plain base64 of JSON. Paste the exported string into a .txt file, open it here, and edit. The download is compressed with the same LZString variant, so you can paste it straight back into the game's import box.
Not through this tool. Your original file is never modified, and before a download is released the edited JSON is validated, every value edit is read back from it, the original wrapping (base64, gzip, LZString…) is re-applied, and the result is decoded again and compared. If any step fails the download is blocked with the reason. Keep a backup anyway, since a value can be valid JSON and still be something the game didn't expect.
Yes. Every row has a … menu with Add field (or Add item for arrays), Rename key, Change type, Duplicate and Delete. New fields copy the indentation and spacing of their neighbours, so a pretty-printed file stays pretty and a minified one stays minified. Structural changes can be undone like any other edit. Be careful with deletes: a game that expects a key to exist may reset or crash without it.
Search for it, then use the Set all matching values box that appears above the results. For example, search values for false within an unlocks section, or search keys for ammo, and set them all in one step. It works when all matches are the same type (all numbers, all text, or all true/false), up to 2,000 at a time, and a single Undo reverts the whole batch.
JSON has a small, strict grammar: keys and strings in double quotes, commas between values but not after the last one, a closing } for every { and ] for every [, and no raw line breaks inside strings. When a file breaks one of those rules, this tool names the rule, the line and column, and shows the text around it, which is usually enough to see the problem at a glance.
For everything you don't edit, yes, down to the byte: indentation, key order, number formatting like 1.50, escapes, and integers too long for JavaScript to hold. Only the characters of values you change are replaced. The exceptions are ones you opt into (Pretty-print and Minify in the Raw JSON view) and files that needed comments or trailing commas removed to read at all, which the import notice points out. Compressed files decompress to exactly the same data, though the compressed bytes themselves may differ.
Yes. Decoding, searching and re-encoding run in a background thread, and the tree only ever draws the rows on screen. In testing, a 50 MB save with 2.6 million values opened in about 1.3 seconds, Expand all showed every one of those rows in 30 ms, a search took under 0.2 seconds, and the page never froze. Files up to 200 MB are accepted.
No. Decoding, editing and re-encoding all happen in your browser's memory, and nothing about your file is sent anywhere. You can check: open your browser's developer tools, watch the Network tab while you use the tool, and you'll see no request carrying your file.
Yes. Any valid .json file opens, not just game saves, and you get the same tree view, search and validation. It's built around save files, though: it keeps the original indentation, key order and encoding instead of reformatting the whole file, and it unwraps base64 or gzip layers automatically. For writing JSON from scratch or converting it to other formats, a general-purpose developer JSON editor is the better fit.
A text editor shows characters; it can't see through base64 or gzip, doesn't know if you broke the JSON, and may change the file's encoding when it saves. This tool unwraps the file, shows values in typed fields (a checkbox for true/false, validated numbers, a text box for long strings), searches across every key and value, and checks the result before it gives you a file.
Changelog
- Version 2. Rebuilt around a position index instead of a copied tree. Added gzip, zlib, LZString (all three variants), UTF-16 and byte-order-mark support, JSON-inside-a-string, add/delete/rename/duplicate/change type, set-all-matches, undo/redo, exact big integers, a line-and-column error report, and a virtualized tree that stays smooth at millions of values. Fixed BOM files failing to open, long numbers being shown rounded, and line breaks being lost when editing multi-line text.
- First release. Tree view, search, base64 and header/footer unwrapping, and comment/trailing-comma cleanup.