Validate JSON syntax
Check JSON syntax with exact line and column errors, duplicate-key warnings, and scalar support.
Loading workspace…
How it works
Validates against RFC 8259 in browser memory, including top-level scalars such as strings, numbers, booleans, and null. Syntax errors report 1-based line and column coordinates, and repeated keys in the same object are flagged separately.
Example · Validating {"a":1,"a":2} passes JSON syntax while warning about duplicate key "a" on line 1.
How to use this tool
- Paste the JSON payload you want to check into the input field without removing line breaks so line numbers stay accurate.
- Select Validate JSON to inspect syntax, top-level value type, and any duplicate property names within the same object.
- Fix any reported line and column error or duplicate key warning, then re-run validation until the payload passes cleanly.
Common questions
Are top-level strings, numbers, true, false, and null valid JSON?
Yes. Under RFC 8259, any JSON value is valid at the top level, not only objects and arrays.
Why does the validator warn about duplicate keys?
Although JSON grammar allows repeated keys syntactically, different parsers handle them inconsistently. Flagging duplicates helps prevent subtle bugs.
Where does validation run?
Everything runs locally in your browser. Inputs are kept out of URLs, logs, and browser storage.