sangsen

JSON Validator

Check whether JSON is valid and see its top-level type, with a plain explanation of the problem if not.

Result

Validation result appears here.

How it works

Paste JSON into the input box. It is parsed entirely in your browser via JSON.parse — nothing is sent to a server — showing whether it is valid along with its top-level type (object, array, string, number, boolean, or null), or a plain explanation of the problem, with the parser’s own message underneath, if it fails to parse.

Example

Valid object
{"a":1,"b":[2,3]}Valid JSON — top-level type: object

FAQ

Is my JSON uploaded anywhere?
No. Validation happens in your browser via JSON.parse — nothing you paste ever leaves your machine.
What does "top-level type" mean?
It is the type of the outermost JSON value — object, array, string, number, boolean, or null — which helps confirm the document has the shape you expect.
What happens if my JSON is invalid?
You get a plain description of what is wrong and the line and column to look at, with the parser’s own message shown underneath it.