How can I check if JSON is valid?
Paste JSON or load a file and click “Validate JSON” – or use automatic validation while typing.
Validate JSON for free, locate syntax errors and analyse structure – no sign-up, with file upload, clear error display and local processing in your browser.
Your JSON data is validated directly in your browser. It is neither transmitted nor stored.
Your JSON data is validated locally in your browser only and is not stored.
Drop a JSON file here or select one (.json, .txt)
A JSON validator checks whether text conforms to JSON syntax rules. It shows whether JSON is valid and where syntax errors occur.
Valid JSON consists of correctly structured objects, arrays, strings, numbers, booleans or null values.
No. Arrays and primitive values such as strings, numbers, true, false or null are also valid root values.
Common causes include missing or trailing commas, missing quotes, single quotes, unquoted keys, unclosed brackets, comments or invalid escape sequences.
No. Standard JSON does not allow comments such as // or /* */.
No. There must be no comma after the last element in an object or array.
The JSON standard requires double quotes for object keys and string values.
JavaScript object literals allow more syntax than JSON, such as unquoted keys, comments or trailing commas.
The validator checks validity and shows errors. The formatter presents valid JSON in a readable form and usually assumes valid syntax.
No. Validation happens entirely locally in your browser.
Paste JSON or load a file and click “Validate JSON” – or use automatic validation while typing.
It checks whether text is syntactically valid JSON and shows position and cause when errors occur.
Common causes include missing commas, trailing commas, wrong quotes, unquoted keys or unclosed brackets.
No. Arrays and primitive values are also valid JSON.
Yes. An array on its own is fully valid JSON.
Yes. Example: 42 is valid JSON.
Yes. null is a valid JSON value.
No. JSON requires double quotes.
Yes. Object keys must be enclosed in double quotes.
No. Comments are not part of the JSON standard.
No. There must be no comma after the last element.
The parser expected different syntax at that point, such as a comma, bracket or quote.
The tool shows line, column and a text excerpt with the error position marked where possible.
Different browsers format parser messages differently. The tool evaluates multiple formats.
No. It provides hints but does not automatically repair JSON.
Yes. .json and .txt files can be loaded locally.
Yes, up to 10 MB. Larger files are rejected.
No. Everything happens locally in your browser.
No. JSON is only parsed and displayed as text – never executed.
JSON5 allows comments, single quotes and trailing commas. This tool supports standard JSON only.
The validator checks validity and errors. The formatter formats and minifies valid JSON.
Yes. For valid or invalid JSON, a compact summary can be copied.
Sign up once – keep everything in view!