Check whether text is valid JSON and, when it is not, see the parser’s message with the exact line and column of the first problem.
Validation happens entirely in this browser tab. Nothing is sent to a server.
GUIDE
How to validate JSON
Validate before you blame the API
When a response “looks like JSON but fails”, validating here tells you whether the text itself is broken or your code misread it. A valid result means any remaining problem is in how the data is consumed, not in the payload.
Find the exact character
The report shows the parser message plus the line and column of the first error. JSON parsers stop at the first mistake, so fix that one and run again — a single missing comma can produce a cascade of follow-on messages that vanish once it is corrected.
Know the common failure causes
Trailing commas before a closing bracket, single-quoted strings, unquoted keys, comments, and stray BOM characters at the start of a file account for most invalid JSON. All are legal in JavaScript but not in strict JSON.
Check the top-level type
Valid JSON can be an object, an array, a string, a number, or one of the literals true, false, null. Many consumers expect an object or array at the top level; the validator reports the top-level type so you can confirm the shape matches what your code expects.
HELP / FAQ
JSON validator questions
What counts as valid JSON?
Text that parses under the JSON grammar defined by RFC 8259: objects, arrays, strings with JSON escapes, numbers without leading zeros or Infinity/NaN, and the literals true, false, and null. JavaScript literals like undefined are not valid.
Does validation tell me what is wrong?
Yes: the message of the first parse error and its line and column. Parsers stop at the first error, so resolve issues one at a time and re-run after each fix.
Can it validate JSON5 or JSONC?
No. This validator follows strict JSON only. JSON5 and JSONC relax quotes, comments, and trailing commas; validate those with a parser for their own dialect instead.
Is my data uploaded?
No. The validation runs in this browser tab and nothing is transmitted.
EXPLORE BY CATEGORY · BFOTKIT
More tools like this
Pick a category to see every tool in it — then open one and discover related tools.