JSON Validator
Check any JSON for syntax errors with the exact failure position, plus a structure summary: objects, arrays, keys, leaf values and nesting depth.
How to use
- Paste the JSON to validate.
- Read the verdict and, for errors, the exact line/column position.
- Valid JSON is re-formatted with 2-space indent for inspection.
Example
Input: {"a": 1, "b": [2, 3}
Output: Invalid — unterminated array, reported near the exact line/column
How it works
The input is parsed as JSON. Valid input is confirmed; invalid input reports the parser's error and the position where parsing failed.
Limits & compatibility
- Validation follows JSON.parse exactly (RFC 8259) — trailing commas are errors.
- Duplicate keys keep the last value, matching browser behaviour.
- Very large documents (multi-MB) may be slow on low-memory devices.
Privacy
Your JSON never leaves the browser. There is no server call, no storage and no logging of content.
Related tools
Questions about JSON Validator
Is my input private?
Yes. This tool runs entirely in your browser — your input never leaves your device, is never uploaded to a server and is never stored.
How accurate is the result, and what are the limits?
The tool page states its formula and limits openly. Check them before relying on a result, and verify anything consequential — financial, legal, medical or safety-critical — against an authoritative source.
What happens to files I open with this tool?
Files are processed locally in your browser and never uploaded; closing the tab discards them. Text tools never store what you paste — it lives only in the page while you use it.