Skip to content

JSON Formatter & Validator: Beautify, Minify, Check

Format, validate and minify JSON online. Find errors with line and column, sort keys, choose indentation, copy or download the result. Runs in your browser.

How to use the JSON Formatter & Validator

  1. Paste JSON into the left box, or press Load sample.
  2. Press Format to indent it, Minify to remove all whitespace, or Validate to only check it.
  3. If the JSON is invalid, the message shows what is wrong and the exact line and column, and the cursor jumps there.
  4. Copy the result or download it as a .json file.

Tips

  • Common mistakes: single quotes instead of double quotes, a comma after the last item, and comments (JSON does not allow them).
  • Turn on Sort keys to make two JSON documents easier to compare.
  • Press Ctrl + Enter in the input box to format quickly.

Everything runs in your browser: nothing you type or paste is sent to a server.