JSON Formatter

No upload · runs in your browser
Indent
Keys
JSON in
0 characters
Formatted

Runs entirely in your browser, nothing is uploaded.

How it works

JSON Formatter and Validator: Errors With a Line and Column

Pretty-print, validate or minify JSON. A parse error names the line and column it stopped at, and keys can be sorted A–Z before the output is written.

What this does
  • Format with two spaces, four spaces or a tab, or minify to the smallest valid JSON
  • A parse error reports the exact line and column, not a raw character offset
  • Optional A–Z key sort, with the root type, key count, max depth and encoded size reported
FAQ

That is the exact character where parsing stopped. A trailing comma after the last item, single quotes around a string, or a key without quotes are the usual causes, and the fix is almost always within a character or two of the position given.

Keep going