Valid sample summary
The sample reports root object, five keys, three array items, depth two, and 88 UTF-8 bytes after compact serialization.
JSON VALIDATOR AND FORMATTER
Check syntax, add indentation, create a one-line version, and inspect the root type, keys, array items, depth, and UTF-8 size.
HOW TO USE
EXAMPLES
The sample reports root object, five keys, three array items, depth two, and 88 UTF-8 bytes after compact serialization.
{"a":1,} is not standard JSON. Remove the comma before the closing brace.
Two-space, four-space, and compact output preserve parsed values while changing whitespace only.
No external API is needed to parse or format the input.
Standard browser JavaScript performs all operations on this device.
The tool parses standard JSON in browser memory and serializes the same data structure again.
Keys and strings require double quotes. Comments, single quotes, trailing commas, JSON5, and JavaScript object syntax are not supported.
Prettifying and minifying only change whitespace around a successfully parsed structure.
Input is not sent by this page, but screen sharing and extensions are separate risks. Very large JSON can be slow on limited devices.
Only standard JSON is accepted. Comments, single quotes, trailing commas, JSON5, schema validation, and file upload are unsupported. Large or deeply nested values depend on browser memory and recursion depth, and duplicate keys receive no separate warning.
No. This tool checks grammar, not required fields or semantic rules.
The summary measures the compact reserialized JSON, without source whitespace.
No. They follow browser JSON.parse behavior without a separate warning.
No. Paste text into the editor.