What is the JSON Validator?
The JSON Validator checks whether text is valid JSON as you type. When something is wrong, it pinpoints the line and column, shows the offending line with a caret, and suggests the likely fix.
Valid documents get a summary of their structure: the number of objects, arrays and keys and the maximum nesting depth.
Why use it?
A single missing quote can break an entire configuration file or API request, and the error message from an application is often vague. Validating the JSON on its own isolates the problem in seconds.
How to use the JSON Validator
- Paste or type JSON into the input box.
- Watch the status message update in real time.
- If invalid, look at the highlighted line and the hint to correct the error.
- Once valid, optionally click “Show formatted” to view and copy a clean version.
Examples
Trailing comma
{"a": 1, "b": 2,} fails because JSON forbids a comma before the closing brace. Remove the final comma.
Single quotes
{'name': 'Ana'} must be written {"name": "Ana"} — JSON requires double quotes for keys and strings.
Supported formats and inputs
- Standard JSON text.
- Error positions depend on your browser's parser and are usually exact.
Limitations to know about
- Validation checks syntax only. It does not check your data against a JSON Schema.
- Comments and trailing commas, allowed in JSON5 and some config formats, are reported as errors.
Privacy
Everything is processed by JavaScript running in your browser tab. Your input is not sent to a server, logged or stored, so it is safe to use with configuration files and internal data. As always, avoid pasting production secrets into any website you do not control.
Frequently asked questions
Is an empty object valid JSON?
Yes. {}, [], "text", 42, true and null are all valid JSON documents.
Can I validate against a schema?
Not yet. This tool checks syntax. Schema validation would require your schema and is a different task.
Does the validator change my JSON?
No. It only reads your text. Formatting is optional and produced in a separate output box.