About the JSON Formatter

Paste JSON to check that it is valid and make it readable. If it is not valid, the formatter points to the line and column of the problem. You can also sort keys alphabetically or minify JSON to a single line.

How to use

  1. Paste your JSON into the input.
  2. Choose Format or Minify, the indentation and whether to sort keys.
  3. Copy the result.

Frequently asked questions

Why is my JSON invalid?

The most common causes are trailing commas, single quotes instead of double quotes, unquoted keys and comments. JSON allows none of these.

More free tools