JSON Validator

Check whether JSON is valid and get the exact line and column of any error.

Processed locally in your browser
Input
Output

How to use the JSON Validator

  1. Paste the JSON you want to check.
  2. Click Validate.
  3. If invalid, the error message shows the line and column; the position is highlighted.
  4. If valid, a summary of the structure is displayed.

Examples

Trailing comma

{"a":1,} → error at line 1, column 8.

Features

  • Strict RFC 8259 validation
  • Error line/column with highlight
  • Structure stats: depth, keys, arrays
  • Local processing

About this tool

A JSON validator parses input strictly according to the JSON standard. It is useful before committing configuration files, sending API requests or debugging why an application rejects a payload.

Frequently asked questions

What are common JSON errors?

Trailing commas, single quotes instead of double quotes, unquoted keys, comments and unescaped control characters.

Is NaN or undefined valid JSON?

No. JSON only allows strings, numbers, true, false, null, objects and arrays.

Is my data stored?

No. Validation runs in your browser and nothing is sent or saved.

Privacy

Processed locally in your browser. Your data never leaves your device. The tool's code runs in your browser tab; nothing you enter or select is uploaded, and nothing is saved after you close the page.