Questions and answers

What makes JSON invalid?

JSON is stricter than JavaScript: property names and strings need double quotes, and comments, trailing commas, single quotes and values such as NaN or undefined are not allowed. The first problem is reported by line and column.

Does it check my JSON against a schema?

No. It checks the JSON syntax of RFC 8259, reports repeated keys and nesting depth, and formats valid documents. Checking required fields or value types against a JSON Schema is not included.

Is my JSON sent anywhere?

No. It is checked in this browser tab, in a background worker for large documents, and never leaves your device.

  • JSON Formatter Format, validate and minify JSON, with the exact line and column of any error.
  • JSON Minifier Minify JSON to one line without spaces, keeping numbers and strings exactly as written.
  • JWT Decoder Decode a JSON Web Token to read its header and claims, and check its signature with your key.
  • Regex Tester Test JavaScript regular expressions against text, see every match and group, and preview replacements.

More Developer tools