Open huge JSON files instantly. Free & private.πŸ”’ Your data never leaves your browser

JSON Repair

Fix invalid JSON automatically: trailing commas, single quotes, comments, unquoted keys, missing brackets, Python True/None and more.

Broken JSON
Repaired JSON
βœ“ Repaired: 8 kinds of fixes
  • Removed comments
  • Added quotes around property names
  • Converted single quotes to double quotes
  • Converted Python True/False/None
  • Removed trailing commas
  • Added missing commas
  • Added missing closing ']'
  • Added missing closing '}'

What can JSON Repair fix?

  • Trailing commas and extra commas: [1, 2,]
  • Single quotes and curly β€œsmart” quotes: {'a': 'b'}
  • Unquoted keys and values: {name: Ann}
  • Comments: // …, /* … */ and # …
  • Missing commas, colons and closing brackets (for example cut-off API responses)
  • Python and JavaScript values: True, False, None, undefined, NaN
  • Wrappers: Markdown code fences, JSONP callback(…), const x = …;
  • Several JSON values in a row (NDJSON), which are wrapped into an array

Big numbers are kept exactly as written, so long IDs like 12345678901234567890 are not rounded. Everything runs in your browser.

Guides

More free tools