Find syntax errors in JSON strings with precise line numbers
Parse and validate JSON strings to expose syntax errors at exact line and column positions.
Interactive Sample Data
| raw_json | status |
|---|---|
| {"id":1,"name":"Grace","active":true} | active |
| {"id":2,"name":"Peter","active":false,} | active |
How this tool works
Things that usually go wrong
- Trailing commas after the last element are the most common JSON syntax error.
- Single-quoted strings ('hello') are JavaScript syntax, not JSON. All strings must use double quotes.
Edge cases we tested
Reported with exact line; auto-repair mode can strip it.
Each line validated independently; per-line errors listed separately.
Valid surrogate pairs (\uD800\uDC00) pass; isolated surrogates flagged.
Nesting depth reported; validation still completes without stack overflow.
Frequently Asked Questions
What is the difference between Validate JSON and Format JSON?
Validate only checks syntax. Format also pretty-prints the JSON. If validation fails, formatting also fails.
Are large JSON files supported?
Files up to 10 MB are validated in-browser without any server upload.
Related tools
Validate CSV
Audit CSV files for structural errors, encoding problems, and row-length inconsistencies.
Open Tool →Find Duplicate Rows
Identify and count duplicate rows in CSV files by exact match or by key column selection.
Open Tool →Find Missing Values
Audit CSV columns for empty, null, and whitespace-only cells and produce a completeness report.
Open Tool →