JSON Repair / Auto-fixer
Auto-fix broken JSON: quotes, trailing commas, comments, and more.
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.
Popular uses
- json
- repair
- fix
- auto-fix
- malformed json
- lenient parser
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
JSON Formatter
JSON
Pretty-print and beautify JSON with custom indentation.
JSON Key Sorter
JSON
Sort JSON object keys alphabetically, naturally, or by array field.
JSON Minifier
JSON
Compress JSON by removing whitespace and show bytes saved.
JSON String Escape
JSON
Escape special characters for use inside a JSON string.
JSON String Unescape
JSON
Reverse JSON string escaping back to readable text.
JSON Validator
JSON
Validate JSON syntax and see detailed error diagnostics.
Works well with
Next steps from other categories.
Csv To Json
Converters
Convert between CSV and JSON with delimiter and header options.
INI to JSON Converter
Converters
Convert INI config files to JSON and back.
Mock JSON Generator
Generators
Generate arrays of mock JSON records from a simple field schema.
Query String Converter
Network & IP
Convert between URL query strings and JSON, with nested bracket support.
Frequently asked questions
Read more
- A practical guide to formatting, validating and converting JSON
Indentation, key sorting, common parse errors, and when to convert JSON to YAML, XML or CSV instead.
Version 1.0.0 · Updated 2026-08-10 · Runs entirely in your browser