Skip to main content

Validate JSON online and find the invalid character

JSON
Result

The result appears here as you type.

Answers one question well: is this valid JSON, and if not, where exactly does it stop being valid. The error shows the line, the column, the text of that line and a caret under the offending character. Sometimes called a JSON lint or syntax checker. It checks whether the document parses, not whether it matches a schema.

If it will not parse

These are the messages people usually arrive with: Unexpected token } in JSON at position 42, Unexpected end of JSON input, SyntaxError: JSON.parse, Expecting value: line 1 column 1. Paste the input that produced one and the result pane names the problem and points at it.

How to use the JSON Validator, step by step

Real screenshots of the tool, captured while running it.

  1. 1

    Open the tool

    JSON Validator opens empty, with json on the left and result on the right.

    Empty JSON Validator before any input
  2. 2

    Add your input

    Paste your own json, or load the sample. The result pane fills in as you type.

    JSON Validator with input in place
  3. 3

    Read the result

    The result appears on the right with copy and save beside it.

    JSON Validator showing its result

Questions people ask

Related tools