Home / Developer / JSON Formatter & Validator

{ } JSON Formatter & Validator

Validate, pretty-print, minify and sort JSON โ€” with the exact error position.

About the JSON Formatter & Validator

Paste JSON to check whether it is valid and format it with your choice of indentation. Errors show the exact line and column. You can also minify JSON to one line, sort keys alphabetically, and copy or download the result.

How to use it

  1. Paste your JSON.
  2. Check the validity message.
  3. Click Format, Minify or Sort keys, then copy or download.

Frequently asked questions

Why is my JSON invalid?

Common causes are trailing commas, single quotes instead of double quotes, and unquoted keys. The error message shows the line and column to look at.

Related tools