Fix broken JSON online, including JSON from AI chats: commas, quotes, comments, cut-off output. Format and validate it too. Runs in your browser.
This tool turns minified or messy JSON into readable, consistently indented text, checks that it is valid, and points to the exact line and column of the first error when it is not. It also repairs broken JSON, minifies it, sorts keys, and shows the data as a collapsible tree.
Fix repairs the mistakes that break JSON most often, including the way AI chat assistants tend to break it: code fences and chat text around the JSON, comments, missing or trailing commas, single or curly quotes, unquoted property names, Python-style True and None, stray backslashes in Windows paths, and output that stops halfway. Every change is listed with its line and column, your input is left untouched, and anything that cannot be fixed with certainty is explained instead of guessed.
Formatting only changes whitespace. Formatters that rely on the JSON parser built into JavaScript silently round large numbers such as 64-bit IDs, rewrite 1.0 as 1, and move number-like keys to the front. This tool keeps every number, key and string exactly as written. Everything runs in your browser and nothing is uploaded.
This tool runs in your browser and needs JavaScript.