Repair broken JSON — instantly, offline
Paste invalid JSON and braceful fixes it in place — trailing commas,
single quotes, unquoted keys, truncation, Python literals and
NaN — then shows you exactly what it changed. It all happens
in your browser. Your JSON never leaves this page.
Free forever · No account · 2-minute setup
Try it right here — your JSON never leaves this page
This is the actual viewer, running entirely in your browser. Open DevTools, watch the Network tab: zero requests. Load a sample or paste your own.
Why valid-looking JSON still fails to parse
JSON is strict in ways that surprise people. A single character out of
place and JSON.parse throws, usually with a cryptic
"Unexpected token" that points at the wrong spot. The breakage
almost always falls into a handful of buckets:
- Trailing commas. A comma after the last array item or object property is valid in JavaScript but illegal in JSON. braceful drops it.
- Single quotes & unquoted keys. Config files, logs
and hand-edited fixtures often use
'value'or{ key: 1 }. JSON requires double-quoted keys and strings; braceful rewrites them. - Truncation. A payload copied from a terminal or cut off mid-write leaves an open string and unclosed braces. braceful closes the open structures so you can read the rest.
- Python & non-standard literals.
None,True,False,NaNandInfinityare not JSON. braceful normalizes them tonull,true,falseand JSON-safe values. - Comments.
//and/* */comments are common in JSONC and config files but break strict parsers. braceful strips them.
The repair is transparent: braceful shows the valid result and what it fixed, so you can confirm nothing meaningful was altered before you copy or download it. Because everything runs on-device, you can paste an API response full of tokens or a customer record without it being uploaded anywhere.
{
name: "order-92",
"items": [42, 17,]
"paid": true,
"note": "truncated at sav {
"name": "order-92",
"items": [42, 17],
"paid": true,
"note": "truncated at sav"
} - quoted unquoted key
- removed trailing comma
- closed truncated string + object
Repairing a giant file too? Open large JSON files (~100MB) without freezing. If the broken JSON came out of an AI assistant, the fix JSON from ChatGPT & other LLMs guide covers the breakage those tools add (markdown fences, smart quotes, mid-response truncation). Once it parses, you can format & beautify it offline.
JSON repair — questions
What kinds of broken JSON can braceful repair?
The common ones developers hit every day: trailing commas, missing or mismatched braces and brackets, single-quoted strings, unquoted object keys, comments left in a config file, truncated documents (a string or object cut off mid-write), and non-standard literals like Python's None/True/False or JavaScript's NaN and Infinity. braceful repairs these into valid, standard JSON and tells you what it changed.
Does my JSON get uploaded to repair it?
No. Repair runs entirely in your browser on your device — there is no server round-trip and no upload. The free viewer makes zero network requests, so you can repair sensitive payloads, tokens, or production data without it ever leaving the page. Open DevTools → Network and watch the request count stay at zero.
Will I see what was changed during the repair?
Yes. braceful shows the repaired, valid output alongside what it fixed, so you are never guessing whether a silent transformation altered your data. You stay in control of the result before you copy or download it.
Is JSON repair free?
Yes — repair is in the free tier, forever, with no account. Auto-repair also runs inside every Pro tool (query, diff, convert, schema), but the standalone repair you see here costs nothing.
Still have a question? sherazp995@gmail.com
Stop fighting "Unexpected token" errors.
Add braceful and repair broken JSON the moment you hit it — offline, in the browser, with a clear view of every fix.
Free forever · No account · 2-minute setup