Skip to content

JSON Validator

Validate JSON syntax and get clear error messages.

Loading…

About JSON Validator

A stray trailing comma in a config file or an API payload can cost an afternoon. Paste the document and the check runs shortly after you stop typing, with no button to press. A valid document is confirmed with its root type, the number of top-level keys when the root is an object, and a warning if any object repeats a key. An invalid one gets a plain-language message, with the position of the problem when your browser reports it.

Features

  • Re-checks automatically while you type
  • Shows the root type and the number of top-level keys
  • Warns when an object repeats a key
  • Syntax errors located by character position, with line and column where the browser supplies them
  • Copies the checked input in one click

Limitations

  • Input is capped at 200,000 characters.
  • Only syntax is checked: there is no JSON Schema validation, so a document can be valid JSON and still wrong for your API.
  • Comments, single quotes, trailing commas and unquoted keys are reported as errors because the browser's JSON parser is strict.

How it works

  1. Paste or type the JSON into the JSON input box.
  2. Wait a moment: the check starts shortly after you stop typing, so there is no button to press.
  3. Read the result, which is either a green Valid JSON notice or an error message under Check your input.
  4. Fix the problem near the position named in the message and keep editing until the notice turns green.
  5. Use Copy input to take the checked text with you, or Reset to start again.

Example input

{"name": "Auro", "tools": ["json-validator", "json-formatter"], "version": 1}

Frequently asked questions