Loading…

How to use JSON Repair

Paste broken JSON — with trailing commas, single quotes, unquoted keys, or comments — and the tool fixes it into valid JSON.

Frequently asked questions

What can it fix?

Trailing commas, single-quoted strings, unquoted object keys, comments, and other JSON5-tolerated syntax are all repaired into strict JSON.

How does it work?

Your input is parsed with the JSON5 parser (which is lenient) and re-serialized with strict JSON.stringify, producing valid JSON.

Why can't some JSON be repaired?

If the input is too broken for even the lenient JSON5 parser (e.g. missing brackets or mismatched quotes), it reports the parse error instead of guessing.

More JSON Tools

JSON ⇄ JSONL Converter
Convert a JSON array to JSONL/NDJSON and back, line by line
JSON to Go Struct
Generate a Go struct with json tags from a JSON sample
JSON to Python TypedDict
Generate a Python TypedDict class from a JSON sample
JSON to SQL INSERT
Generate SQL INSERT statements from a JSON array of objects
JSON Formatter
Beautify and format JSON with syntax highlighting
JSON Minifier
Minify JSON to remove whitespace and reduce file size
JSON Validator
Validate JSON syntax and get detailed error messages
JSON String Escape
Escape and unescape JSON special characters in strings
JSON Size Analyzer
Analyze JSON structure depth, key count, and byte size
JSON to CSV
Convert JSON arrays to CSV format for spreadsheets
CSV to JSON
Convert CSV data to structured JSON format
JSON to XML
Convert JSON objects to well-formed XML documents

← View all JSON ToolsBrowse all 1,100+ tools →