JSON fixer
Repair JS-style JSON in your browser. Trailing commas, comments, single quotes, and unquoted keys become strict JSON. Nothing is uploaded.
Paste broken JSON, then Fix JSON.
How to fix JSON online
- Paste a config dump, log payload, or object literal, or open a file.
- Click Fix JSON. The tool repairs what it can, then pretty-prints strict JSON.
- Copy the result into an API client, ticket, or editor.
What this JSON fixer repairs
Strict JSON rejects the shortcuts people type in JavaScript and Python. This fixer turns those into something JSON.parse accepts:
- Trailing commas in objects and arrays
- Single-quoted strings
- Unquoted keys and simple unquoted values
//and/* */comments- Python
True,False, andNone undefined,NaN, andInfinitybecomenull- JSONP wrappers such as
callback({...})
If the text is already valid JSON, it is formatted and left alone.
JSON fixer vs JSON formatter
The JSON formatter validates and pretty-prints strict JSON. Use it when you already have a legal payload. Use this fixer when paste from a JS file, a Python repr, or a log line still has commas and comments. After a repair, convert to a spreadsheet with JSON to CSV.
Nothing is uploaded
Repair runs in this tab. The text is not posted to Geek University. Typical dumps up to 1.5 MB are supported. More utilities live on tools.
JSON fixer FAQ
Does this JSON fixer upload my data?
No. Repair and formatting run in your browser. The JSON never leaves your machine.
Why does my JSON still fail after a fix?
The fixer covers the usual JS and Python shortcuts. It will not invent structure for truncated payloads, binary blobs, or template strings. The status line points at the first remaining problem.
Is this the same as a JSON linter?
A linter reports errors. This page rewrites the text into strict JSON when the mistakes are the common ones listed above.
Can I fix JSON with comments?
Yes. Line comments and block comments are stripped, then the remaining object is parsed and formatted.
Is the JSON fixer free?
Yes. There is no account. Use it for config dumps and API samples within the size limit above.