Free tool

JSON Validator

Paste your JSON and press Validate. If it is valid, you see how many items or keys it holds; if not, you get the line, the column and the reason.

Your data never leaves your computer: everything runs in your browser.

How to use it

  1. Paste the JSON you want to check or choose a .json file.
  2. Press Validate. The JSON is checked strictly against the standard (RFC 8259).
  3. If it is valid, you see its type and size. If not, you see the line and column, with a ^ under the exact spot.
  4. Fix the error yourself, or use Repair in the JSON Formatter to fix it automatically.

Example

JSON with a comma left after the last item. The validator reports:

Input

{
  "product": "Pen",
  "price": 12.5,
}

Output

Line 4, column 1: There is an extra comma after the last item.
}
^

Need more?

Run ForLab Formatter on Apify to do the same conversions every day, automated and validated.

  • Call it from the API or on a schedule: files convert inside your workflow, not by hand.
  • In: CSV/TSV, Excel, JSON, NDJSON, XML, YAML and HTML tables; merge up to 10 files or Apify datasets.
  • Clean in the same run: dedupe, filter, sort, flatten nested JSON, select and rename columns, repair broken JSON; Turkish encodings and ; delimiters are detected.
  • Out: JSON, CSV, Excel, SQL INSERT, Markdown, HTML and JSON Schema; every row is validated against one example object.
  • Pay only for valid rows: $0.0001 each (1,000 rows ≈ $0.10), plus $0.001 per run.

Frequently asked questions

Why is my JSON invalid?

The most common causes are a comma after the last item, single quotes instead of double quotes, unquoted key names, a missing comma or bracket, and comments. JavaScript accepts some of these, but the JSON standard does not.

Why does the error point at the next character?

The validator points at the first character where the error becomes visible. With a trailing comma, for example, the problem shows up at the closing bracket after the comma. Look just before the marked spot.

Is my data safe?

Validation runs in your browser and the JSON is never sent to a server. Files with customer data or API keys are safe to check here.

Does it validate against a JSON Schema?

This tool checks syntax, that is, whether the text is valid JSON. To check field types and required fields against a schema, use Formatter on Apify: you give one example object and every row is validated against it.

Other free tools