JSON Formatter & Validator

Validate, format or minify JSON directly in your browser.

When to use the JSON Formatter & Validator

Use it to find the syntax error in a JSON payload or config file, or to make a minified API response readable.

Examples

  • Validate a package.json after a manual edit.
  • Pretty-print an API response to inspect nested fields.

Common mistakes

  • Trailing commas and single quotes, which are valid JavaScript but not JSON.
  • Comments in JSON files, which strict parsers reject.