JSON Formatter
Paste JSON on the left, get clean formatted JSON on the right.
Paste JSON on the left, get clean formatted JSON on the right.
Format (beautify): pretty-prints JSON with indentation so nested objects and arrays are easy to read and scan.
Minify: strips every space and line break to produce the smallest valid JSON — handy before putting it in a URL, a log line or a config value.
Validate: checks whether your text is valid JSON and, when it is not, points to the line and column where the error is.
Sort keys orders object keys alphabetically so two versions of the same data produce a clean, stable diff.
true, false and null are allowed — not True or undefined.Everything runs in your browser; your JSON is never uploaded, logged or stored.
Paste your JSON on the left and click Format. You get clean, indented JSON on the right that is easy to read.
Click Validate. If there is a problem you will see an error message pointing to the line and position.
Yes. Click Minify to strip whitespace and produce the smallest valid JSON.
No. Formatting, validating and minifying all happen in your browser; your data never leaves your device.