JSON Formatter & Validator

Paste any JSON to validate it, pretty-print or minify it, and see exactly where errors occur. Auto-saves in your browser.

Paste any JSON and it's validated as you type — with the exact line and column of any error. Pretty-print with your preferred indentation, minify for shipping, sort object keys, and copy or download the result. Your work is saved in your browser automatically.

  • Live validation — errors show the exact line and column, not just "parse failed"
  • Format with 2-space, 4-space, or tab indentation, and optional key sorting
  • Minify to the smallest possible output for pasting into code or configs
  • Syntax-highlighted output with key, string, number, and boolean colors
  • Stats: file size, key count, and maximum nesting depth
  • Everything stays in your browser — export or import your document as JSON

Input
Output