JSON Validator

Validate, format, and minify JSON — see parse errors with exact line/column.

Validator Web Dev Updated Apr 19, 2026
How to Use
  1. Paste JSON on the left.
  2. Errors are reported with line and column.
  3. Use format / minify buttons to beautify or compact.
JSON input
Result

Common errors

Trailing comma
Not valid JSON ({"a": 1,})
Single quotes
JSON requires "double quotes"
Unquoted keys
{ a: 1 } — keys must be "quoted"
Comments
Strict JSON doesn\'t allow // or /* */
undefined
Not a JSON value — use null
NaN / Infinity
Not valid JSON numbers

Last updated: