JSON Repair & Syntax Fixer
Paste broken JSON and get valid JSON back. Fixes trailing commas, single quotes, unquoted keys, comments, markdown fences, truncated output, and missing commas without changing your data.
About This Tool
JSON Repair takes text that is close to JSON but not quite (LLM responses, hand-edited configuration files, or copied JavaScript object literals) and turns it into syntactically valid JSON. It repairs automatically on every keystroke with zero button presses required.
Fixes syntax without modifying underlying semantics. It handles trailing commas, single quotes, unquoted dictionary keys, single-line and multi-line comments, markdown ```json fences, truncated objects from interrupted streaming, and missing commas between adjacent elements.
Key Features
- Real-Time Auto-Repair: Instant background parsing fixes input continuously as you paste or type.
- Trailing Commas & Single Quotes: Strips illegal trailing commas and converts single-quoted keys and values to valid double quotes.
- Comment Stripping: Cleanly removes single-line // and block /* */ comments from configuration payloads.
- Markdown Code Fence Removal: Detects and strips outer ```json markdown wrappers emitted by AI models.
- Truncation Recovery: Infers missing closing brackets and braces based on nesting hierarchy.
- 100% Client-Side Execution: All parsing and repair algorithms run in-browser with zero network calls.