json-formatter

Paste any JSON to validate, pretty-print, or minify it. Errors point to the exact line and column, and duplicate keys get flagged even though technically-valid JSON allows them.

client-side only any JSON no signup
input.json
Paste JSON on the left and click Format, Minify, or just start typing to validate.

// what gets checked

// format vs. minify

Formatting is for humans — reviewing a config file, debugging an API response, or preparing something to paste into a PR. Minifying is for machines — stripping whitespace before storing JSON in a database column, embedding it in a URL query param, or shipping it over the wire where every byte counts. Both produce identical data; only the whitespace changes.