Skip to content
EASE+ ToolsEASE+ Tools

JSON Validator

Validate JSON and locate errors.

Inputs

Example

Up to 5 MB. Nothing is uploaded.

Result

Result
Invalid JSON
Error
Trailing comma before '}' is not allowed
Line
1
Column
8
Line 1

About this tool

Find out whether JSON is valid and, if it is not, exactly where the problem is. Error messages from browsers differ and sometimes leave out the position. This validator uses one consistent checker, so it gives the same plain-language message, line and column in every browser, and shows the offending line with a marker.

  1. Paste the JSON.
  2. Read whether it is valid.
  3. If it is not, go to the line and column shown and fix the first error, then check again.

Formula

The text is read character by character against the JSON standard (RFC 8259). The first place it breaks a rule is reported with its line and column, counting from 1.

Worked example

Checking {"a":1,} reports invalid JSON: a trailing comma before } at line 1, column 8.

Assumptions and limits

  • Only the first error is reported; fixing it may reveal another.
  • Comments, single quotes and trailing commas are not part of JSON and are reported as errors.
  • Up to 5 MB, and nesting up to 1,000 levels deep.

Questions

Why are trailing commas an error?

The JSON standard does not allow them, even though JavaScript does. Remove the comma after the last item.

Can JSON contain comments?

No. Some tools accept comments in config files, but standard JSON parsers reject them.

Is my data uploaded?

No. Checking happens in your browser and nothing is stored.