JSON Repair
Auto-fix common JSON mistakes — trailing commas, single quotes, comments, unquoted keys.
The repair uses the open-source jsonrepair library, which parses lenient JSON-ish input and outputs strict JSON. It handles trailing commas, single quotes, unquoted keys, JS-style comments, smart quotes, and more. Runs entirely in your browser — no AI, no server, no upload.
What can the repair tool fix?
Trailing commas, single quotes around strings, unquoted object keys, JavaScript-style line and block comments, smart quotes, and other common mistakes that LLMs and humans make.
Is this AI-powered?
No. The repair is deterministic — it runs a parser that understands lenient JSON-ish syntax and produces strict JSON. Your input never leaves your browser.
Will it always succeed?
It can fix most common mistakes. Genuinely random text (e.g., '@@@not json@@@') may be wrapped as a string. If the result still isn't what you wanted, fix the input by hand.