Tools

Format Tools

JSON Formatter and Validator

Format, validate, minify, and inspect JSON with parse errors that point to the problem.

Output

Paste JSON to format it with stable indentation and verify that it parses as standard JSON.

Common edge cases

JavaScript object syntax is not always valid JSON. Keys must be quoted and comments are not allowed.

Language snippets

const formatted = JSON.stringify(JSON.parse(input), null, 2);

FAQ

Does this validate JSON5?

No. It validates standard JSON.

Related tools