Repair and format
{name: 'ToolStack', ready: true,}
Valid indented JSON plus a list of repaired lines
Format, minify, and validate JSON instantly.
Quick answer
The formatter first parses strict JSON.
Formatted JSON
Illustrative view
Input is parsed before formatted output is produced.
The formatter first parses strict JSON. When syntax is invalid, it attempts a safe repair for common problems such as trailing commas, single quotes, comments, unquoted keys, missing delimiters, and JSON wrapped in Markdown fences.
Every automatic repair is shown for review before the formatted or minified result. The tool never evaluates input as JavaScript, and it reports an error when ambiguous content cannot be repaired safely.
{name: 'ToolStack', ready: true,}
Valid indented JSON plus a list of repaired lines
Remove spaces and line breaks
Compact valid JSON
Common syntax damage such as quotes, commas, comments, missing brackets, and fenced JSON can often be repaired. Fundamentally ambiguous data may still be rejected.
Yes. The repair panel lists the affected source lines and lets you replace the editor content with the repaired JSON.
No. Keys retain the order produced by JavaScript JSON parsing.
No. This tool runs locally in your browser, so the values or files you provide are not sent to a ToolStack server.
Keep going