JSON Formatter

Format, validate, minify and explore JSON.

Input JSON

Actions

Tips

  • JSON requires double quotes for keys and strings, and disallows trailing commas, comments and single quotes.
  • The Tree view makes deeply nested documents easy to navigate — expand or collapse any node.
  • Use Validate to get the exact line, column and a snippet around the first syntax error.

Frequently asked questions

Why is my JSON invalid?
JSON is strict: keys and string values must use double quotes, no trailing commas, no comments, and no single quotes. The validator highlights the first offending position.
Does the formatter handle huge JSON files?
Yes. Formatting and validation run locally in a web worker, so documents of many megabytes stay responsive.
Are my JSON files sent to a server?
No. All parsing, formatting and tree building happens entirely in your browser.