Tools · Developer

JSON formatter

Format, minify, and validate JSON with exact error locations.

Loading tool…

What it does

  • Pretty-print with 2 spaces, 4 spaces, or tabs, or minify to one line.
  • Invalid JSON reports the line and column of the first error.
  • Optional recursive key sorting for stable, diffable output.