JSON Repair / Auto-fixer

Auto-fix broken JSON: quotes, trailing commas, comments, and more.

Support
Works Offline
Privacy First
No Login
No API

Broken JSON

Repaired JSON

JSON
{
  "name": "Ada Lovelace",
  "active": true,
  "tags": [
    "math",
    "logic"
  ],
  "score": null,
  "bio": null,
  "address": {
    "city": "London",
    "zip": "90210"
  }
}

Fixes applied

  • Removed // line comments
  • Converted single-quoted strings to double-quoted
  • Added quotes around unquoted object keys
  • Replaced NaN/undefined/Infinity with null
  • Removed trailing commas
  • Added missing closing brackets/braces

About the JSON Repair / Auto-fixer

Repair malformed JSON produced by hand-editing or logging by tolerantly fixing single quotes, unquoted keys, trailing commas, comments, smart quotes, NaN/undefined, and missing brackets. See exactly which fixes were applied.

Examples

Trailing comma & single quotes

{'a': 1, 'b': 2,}

Output

JSON{
  "a": 1,
  "b": 2
}

Keyboard shortcuts

  • Copy the main outputCtrl / ⌘ + Shift + C
  • Download the resultCtrl / ⌘ + S
  • Share this toolCtrl / ⌘ + Shift + S
  • Reset the inputsAlt + R
  • Open the tool search paletteCtrl / ⌘ + K

Related tools

Frequently asked questions

Comments

No login needed. Comments appear after a quick review.

Protected by an on-site captcha — no third-party trackers.

Optional: get an alert when your comment is published or replied to, plus new tool announcements. No sign-up.

Loading comments…

Version 1.0.0 · Updated 2026-08-10 · Runs entirely in your browser