JSON validator FAQ
- How do I validate JSON?
- Paste it into the box on this page and choose "Validate JSON". The editor opens with the result: "Valid JSON" with its size and shape, or the line and column of the first error and why it failed.
- What does "Unexpected token" mean in JSON?
- The parser met a character it did not expect. It is usually one token after the real mistake, such as a missing comma before the character it complains about. This validator names the likely cause in plain words and marks where to look.
- Why is JSON with a trailing comma invalid?
- The JSON standard does not allow a comma after the last item of an array or object, although JavaScript does. Remove the comma, or click Repair and it is removed for you.
- Can I validate JSON with comments?
- Standard JSON has no comments, so it is reported as invalid. The Repair button removes them, and also converts single quotes, quotes bare property names and drops trailing commas, so a JSON5 or JSONC file becomes valid JSON.
- Is a file with one JSON value per line valid?
- It is JSON Lines (also called NDJSON), not one JSON document. The validator recognises it and offers to open it as a table in the dashboard, where each line becomes a row.
- Does it validate against a JSON Schema?
- No. It checks that the text is valid JSON, not that it has the fields a schema asks for.
- Is my JSON uploaded anywhere?
- No. Validation runs in your browser, and large files are handled in a background thread so the page stays responsive. Nothing is sent to a server.
- Is it free?
- Yes. Validating, formatting and minifying JSON are free, with no account.