Developer & Web Tools

JSON Formatter & Validator

Format, validate and minify JSON. Pinpoints the exact line and column of any syntax error.

Privacy

Everything on this page runs inside your browser. Nothing you paste, type or upload is transmitted, logged or stored.

Tips

  • Minified output is what you ship; formatted output is what you read. The two parse identically.
  • Sorting keys makes two versions of a config file diff cleanly in Git.
  • JSON has no comments and no trailing commas. Both are the most common causes of a parse error.

Frequently asked questions

Is my data sent anywhere?

No. Parsing and formatting happen in your browser using the built-in JSON engine. Nothing leaves the page, which is why this is safe for configuration files containing internal hostnames or keys.

Why does my JSON fail with a trailing comma?

The JSON specification does not allow a comma after the last element of an object or array, even though JavaScript does. Remove it.

Related tools