Developer
JSON validator
Check whether text is valid JSON, with a useful error location.
This tool processes files and text locally in your browser. Your content is not uploaded or stored by this site.
Empty. Paste text, drop a file, or load the example.
What this tool does
This validator only checks JSON syntax. It does not evaluate JSON Schema, OpenAPI, or TypeScript types. A document can be valid JSON and still be the wrong shape for your application.
How to use it
- Paste the candidate JSON.
- Read the result. Valid documents return a short confirmation.
- If it fails, use the line and column hint, then repair or reformat.
Supported input
- JSON text, UTF-8, up to 2 MB
Output
- A validity message, or an error with location
Privacy
This tool processes files and text locally in your browser. Your content is not uploaded or stored by this site.
ConvertPass does not include your input in analytics, URLs, or error reports. Encoding: UTF-8. Limit: 2 MB (2.00 MB).
Limitations
- This is syntax validation, not schema validation.
- Duplicate keys are accepted by JSON.parse; the last value wins. That is a JavaScript behaviour, not a JSON recommendation.
Example
{"ok": true,}Invalid JSON. Unexpected token } ... Approximate location: line 1, column 13.
Troubleshooting
- It says valid but my app rejects it
- Your app likely expects a schema: required keys, enums, or a top-level array. Check the consumer, not only JSON syntax.
FAQ
Is this JSON Schema validation?
No. JSON Schema is a separate contract. This tool only asks whether the text parses as JSON. Schema checking will only be added if it can run locally with documented draft support.
Does it accept NaN or Infinity?
No. Those tokens are not JSON. They appear in some JavaScript object dumps and will fail here.
What about UTF-16 surrogate pairs?
JSON strings may include escaped surrogate pairs. Unpaired escapes should fail. Paste the real file rather than copying from a terminal that mangled encoding.
Why validate locally?
JSON payloads often contain tokens, personal data, or unreleased content. A local validator avoids pasting those into a third-party website that logs input.
Related tools
- JSON formatter
Pretty-print JSON locally with clear parse errors and a one-click copy.
- JSON repair helper
Rebuild almost-JSON into strict JSON, then read the warning before you trust it.
- JWT decoder
Read a JWT’s JSON claims locally. This is not signature validation.
Related guides
Related formats
Last reviewed 16 August 2026. Report a problem. Reports do not include your input.