JSON Formatter & Validator

Beautify, validate and minify JSON — with a collapsible tree and exact error locations. Everything runs in your browser; nothing is uploaded.

Advertisement
Input Ctrl + Enter to format
Output

              
Size 0 B Lines 0 Keys 0 Depth 0 Ln 1, Col 1

About this JSON formatter

Paste raw or minified JSON and press Format to pretty-print it with your chosen indentation. Invalid input is reported with the exact line and column so you can jump straight to the problem, and the Tree view lets you collapse large objects and arrays to find what matters.

  • Private by design — parsing happens in your browser, so nothing is sent to a server.
  • Sort keys alphabetises object keys recursively, which makes two documents easy to diff.
  • Minify strips all optional whitespace for the smallest possible payload.

More free tools