Skip to content
MixTool

JSON validator

Find out if your JSON is valid — and if it isn't, see exactly where and why it breaks.

  • Runs entirely in your browser
  • Free · no sign-up
  • Works on phone and desktop
Loading tool…

Pinpoint JSON errors fast

Paste JSON and the validator checks it against the JSON standard (RFC 8259) as you type. Valid input shows a green confirmation along with useful stats: the number of keys, arrays and values, how deeply it's nested and its size in bytes. Invalid input shows the line and column of the first error with the surrounding text, so you don't have to count characters in a 5,000-line file.

The most common problems — trailing commas, single quotes, comments, unquoted keys and values like undefined or NaN — come from writing JSON the way you'd write JavaScript. The auto-fix button rewrites them into valid JSON while leaving the contents of your strings untouched.

How to validate JSON

  1. 1

    Paste the JSON

    Or open a .json file from your computer.

  2. 2

    Read the result

    A success message with stats, or the error location.

  3. 3

    Repair if needed

    Use the auto-fix, or edit the reported line.

Key features

  • Standards-based checking

    Uses the browser's own strict JSON parser.

  • Error location

    Line, column and a pointer to the character.

  • Structure stats

    Key count, nesting depth, arrays and total size.

  • Safe auto-fix

    Repairs JavaScript-style syntax without touching string values.

Common uses

  • Before deploying config: Catch a broken settings file before it takes your app down.
  • Checking webhook payloads: Confirm a third party is sending well-formed JSON.
  • Learning JSON: See precisely which rule a mistake breaks.

Tips and good to know

  • JSON keys must use double quotes. {name: "Ana"} is valid JavaScript but invalid JSON.
  • To make valid JSON readable, switch to the JSON Formatter.

Frequently asked questions

What makes JSON invalid?

The usual culprits are trailing commas, single quotes, comments, unquoted keys, missing commas between items, and special values like undefined or NaN that JSON doesn't support.

Does JSON allow comments?

No. Standard JSON has no comment syntax. Some tools accept “JSON with comments” (JSONC), but APIs and JSON.parse will reject it.

Is there a size limit?

Only your device's memory. Files of several megabytes validate in well under a second.

Is my data private?

Yes. Validation runs locally in your browser and nothing is uploaded.