JSON Repair — Free Online Tool

Fix broken JSON — trailing commas, single quotes, unquoted keys, comments. JSON Repair is a free online tool from the ToolsRift JSON Tools collection. It runs entirely in your browser — nothing to install, no signup, and your data never leaves your device.

Loading JSON Repair

How to use JSON Repair

  1. Open the JSON Repair above — it loads instantly, no account needed.
  2. Enter or upload your input. Everything is processed locally on your device.
  3. Get your result immediately and copy or download it with one click.

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

← View all JSON Tools