Skip to content

JSON Validator

Check whether a pasted snippet or JSON file follows standard JSON syntax. The validator reports the first error with its line and column, and you can jump straight to that point in the input.

Once the syntax is valid, the JSON Formatter can indent the file so you can inspect its structure.

Use it when
An app rejects your JSON file. Find the line and column with a syntax mistake, such as an extra comma.
Keep in mind
Valid syntax is only the first check. An app can still reject missing fields or unexpected values.
Extra comma
{"id":7,}
Error location
Line 1, column 9
Input limit: 10 MiB

Repair input limit: 5 MiB

Output

Your result will appear here.

Your input stays in this browser. We don’t upload it. How we handle your data .

How to validate JSON

Paste JSON or open a file and select Validate JSON. Read the error to find the affected line and column, then edit the input and check it again.

Frequently asked questions

Why does my JSON fail the syntax check?

Look for a missing comma between entries, an extra comma after the last entry, a missing bracket, or a key written without double quotes. The highlighted position shows where the parser got stuck, so also check the text just before it.

Which JSON errors can Preview repair fix?

Preview repair can remove trailing commas in objects or arrays and a leading byte order mark, an invisible character some editors add. Review the proposed changes before applying them. Other syntax errors need a manual edit.

Can a JSON object contain duplicate keys?

This syntax check accepts repeated keys, but different apps may keep different values or reject the file. Give each key a unique name within its object before sharing or processing the data.

How can I check whether an app will accept my JSON?

Check the syntax here first. To check required fields or allowed values, validate the file against the app’s schema. If you only have a representative sample, the JSON Schema Generator can draft a schema for you to review.

Related tools