JSON Validator
validate JSON and show specific error locations
By Bikram NathLast updated
Paste any JSON string and the validator pinpoints the exact line and column where parsing fails, telling you whether the problem is a missing comma, an unquoted key, or a trailing comma after the last array element. Feed it a 400-line API response that crashes your fetch handler and you get 'Unexpected token } at line 23, column 4' instead of a generic SyntaxError. Unlike a formatter that silently fixes input, this tool only reports — it never mutates.
Try it now — free, instant, no signup
What is JSON Validator?
JSON Validator runs your input through the browser's native JSON.parse() and, when that throws, extracts the error position from the exception message to highlight the exact offending token. Paste a config file with a trailing comma after the last key, and you see the line number immediately rather than hunting through 300 lines of minified text.
Developers reach for this instead of JSONLint when they want results without a round-trip to an external server, or instead of piping through jq locally when they are already in a browser tab. jq is better for querying and transforming; this tool is better when the only question is 'is this valid JSON and if not, where exactly is it broken.'
One practical gotcha: JSON.parse() stops at the first error, so fixing one problem may reveal another you did not know was there. Run the validator again after each fix. Also note that JSON5 and HJSON, which allow comments and trailing commas, will always fail standard JSON validation — if your file uses those formats, you need a dedicated parser before treating the output here as authoritative.