JSON Validator

Check whether your JSON is valid — exact error location shown.

100% local — your data never leaves this tab
Indent:
Input JSON0 bytes
Ready — paste JSON to begin
Output0 bytes

How JSON validation works

The validator uses your browser's native JSON.parse() — the same engine used by every JavaScript runtime. If parsing succeeds, the JSON is valid. If it fails, the error message tells you exactly where the problem is.

Most common JSON validation errors

Privacy: Validation runs entirely in your browser. Your JSON is never sent to any server. Safe for tokens, credentials, and internal data.

Frequently asked questions

It means the parser found a character it didn't expect at that position. Common causes: single quote instead of double quote, unquoted key, trailing comma, or a comment. Check the character position mentioned in the error message.
Not quite. Valid JSON is valid JavaScript when used as a value expression, but the reverse is not true. JavaScript object literals allow unquoted keys, single quotes, trailing commas, comments, and values like undefined — none of which are valid JSON.

Related tools