Beautify, minify, validate, and inspect JSON documents locally.
Beautify, minify, validate, and inspect JSON documents locally.
About this tool
JSON Formatter validates one JSON document—including object, array, string, number, boolean, and null roots—then beautifies it with exactly 2 or 4 spaces or minifies it, and reports value-type counts and maximum depth. Work stays in your browser, with a 1,000,000 UTF-16 code-unit input and output limit.
No. This inspector proves JSON syntax only. It does not validate a schema, repair input, sort keys, or establish that values are trustworthy.
The tool uses native JSON parsing: the last duplicate key wins, numbers use JavaScript binary64 and may be respelled, and integer-like object keys may appear in native enumeration order.
No. Inspection runs in a dedicated browser worker, no network request is made, and the current payload is kept only in memory for the open tool session.