JSON statistics
ClientPaste JSON to see structural stats—useful for estimating payload shape, debugging large trees, or comparing two documents informally before a diff.
Learn more: JSON statistics
Count structural properties of a parsed JSON value—depth is the maximum nesting of objects and arrays from the root.
Limits
Very large pastes may feel slow in the editor; stats themselves are a single tree walk. This tool does not persist or upload your JSON.
JSON statistics
?
Counts keys, objects, arrays, and value types recursively. Max depth is measured from the root value (root object depth 0).
- Input size (chars)
- 111
- Max nesting depth
- 3
- Object count
- 4
- Array count
- 1
- Key count (total)
- 7
- Strings / numbers / booleans / nulls
- 2 / 3 / 0 / 0
Common use cases
- Estimate document shape before pretty-printing or compressing very large JSON responses.
- Compare two payloads informally by depth, key counts, and value-type mix before running a structural diff.
- Explain performance or memory questions with concrete nesting and size signals.
Common mistakes to avoid
Treating aggregate counts as semantic equivalence
Two documents can share stats yet differ in every leaf value—pair with diff or schema tools when correctness matters.
Including secrets in screenshots of stats panels
The original JSON may still be on screen elsewhere. Redact before sharing.
FAQ
Are statistics computed locally?
Yes. The JSON you paste is analyzed entirely in your browser.
Does this validate JSON syntax?
Invalid JSON fails early so counts are meaningful. Fix parse errors before relying on numbers.
More tools
Related utilities you can open in another tab—mostly client-side.
JSON formatter
ClientJSON format online: pretty-print, minify, validate, escape, download .json.
JSON compare
ClientSide-by-side diff paths; sample pre-filled.
JSON big integers
ClientCompare standard parse vs bigint-safe parse for integers beyond 2^53—local only.
JSON flatten / unflatten
ClientNested JSON ↔ dot paths for configs and i18n—round-trip in the browser.