Skip to content
Toolbox

JSON Formatter & Validator

Format, validate and minify JSON with precise error messages showing the line and column of any syntax problem.

Formatted JSON appears here.

About JSON Formatter

Paste raw JSON to pretty-print it with consistent indentation, or minify it to the smallest valid payload. If the JSON is malformed you get the exact line and column of the problem rather than a generic parse error, which makes tracking down a stray comma much faster.

How to use it

  1. Paste your JSON into the input panel.
  2. Choose an indent size, then Format or Minify.
  3. Fix any reported error at the line and column shown.
  4. Copy or download the result.

Frequently asked questions

Why is my JSON invalid?

The three most common causes are a trailing comma after the last item, single quotes instead of double quotes around keys and strings, and unescaped line breaks inside a string value.

Does formatting change my data?

No. Only whitespace changes. Key order, values and types are preserved exactly, because the tool parses and re-serialises with the standard JSON parser.

Is my data private?

Yes. Parsing happens in your browser. API responses, tokens and customer records pasted here are never transmitted anywhere.

In-depth reads that go beyond the calculator.