Paste your malformed JSON into the input area on the left — whether it comes from an AI tool like ChatGPT, an API response, a log file, or a copy-paste from the web.
The tool instantly detects the problems: trailing commas, single quotes, unquoted keys, markdown code fences, missing commas, JavaScript comments, unescaped control characters, and more.
Click the Repair button or press ⌘↵ (Mac) / Ctrl+Enter (Windows) to automatically fix all detected issues.
Review the detailed repair log below the output — each fix is listed with the repair strategy used, plus the exact line number and column where the change was made.
Copy the repaired JSON with ⌘⇧C, download it as a .json file, or use the Code Generator to export the repair logic as ready-to-use Python, JavaScript, Go, or PHP code.
Strips markdown code fences (```json ... ```) that AI tools and documentation sites wrap around JSON output.
Fixes trailing commas after the last element in arrays and objects — the most common cause of JSON parse failures.
Converts single-quoted strings to proper double-quoted strings for RFC 8259 compliance.
Adds missing quotes around unquoted (bare) object property keys.
Inserts missing commas between array elements or object properties.
Extracts raw JSON from surrounding text — handles "Here is your JSON: {...}" wrappers and similar patterns.
Fixes concatenated JSON objects where multiple independent JSON documents are joined together.
Auto-closes brackets, braces, and quotes to repair truncated JSON from incomplete API responses or cut-and-paste errors.
Unescapes control characters (tabs, newlines) that appear as literal escape sequences inside strings.
Strips JavaScript-style comments (// single-line and /* multi-line */) that are not valid in standard JSON.
Multi-language code generator: produces repair code in Python, JavaScript, Go, and PHP so you can integrate the logic directly into your own projects.
Detailed repair log with line/column tracking for every change made, making it easy to audit exactly what was modified.
Works entirely in your browser — no JSON data is ever sent to any server. Your data stays completely private.