How to use
Use this tool to verify and clean JSON before you ship it into an API, config, or file.
- Paste your JSON into the input box.
- Click Validate to check if it parses (errors include line/column).
- Click Format to pretty-print or Minify to compact.
- Use Sort + Minify to normalize key order for stable diffs.
- Click Copy Output to copy the result.
FAQ
Does this JSON checker upload my data?
No. Validation and formatting run locally in your browser.
Does it support comments or trailing commas?
No—this is strict JSON. Remove comments and trailing commas to validate successfully.
How do I find where the JSON error prevents parsing?
When parsing fails, the tool shows the error plus a best-effort position with line/column and a small snippet.
What is the difference between Format and Minify?
Format adds indentation and line breaks for readability; Minify removes extra whitespace to produce compact JSON.
What does “Sort + Minify” do?
It sorts object keys recursively, then outputs compact JSON—useful for stable diffs and consistent snapshots.
Can JSON have duplicate keys?
It can appear in text, but parsers typically keep the last value for a duplicated key; avoid duplicates to prevent surprises.
Will this preserve number precision?
JSON numbers are parsed as JavaScript Numbers; very large integers may lose precision when parsed and re-stringified.