Handitab

JSON Analyzer

Analyze a JSON document: count objects, arrays, keys, and value types, measure nesting depth and size, and list the most frequent keys.

About JSON Analyzer

A JSON analyzer reports the structure of a document without changing it. This tool walks every value and counts objects, arrays, strings, numbers, booleans, and nulls, records the deepest nesting level and the longest array, and tallies how often each key name appears. Size is the UTF-8 byte length of the minified document. It is useful for estimating payload cost and for spotting inconsistent records in an API response.

How to use JSON Analyzer

  1. Type or paste into the "JSON" box, or press "Use example" to try it with sample data.
  2. The result appears below and updates as you type.
  3. Copy the result with the copy button, or download it as a file where that is offered.

Questions about JSON Analyzer

How is nesting depth counted?

The top-level value has depth 1. Each object or array inside another adds one level. A flat object of plain values has depth 1, and an array of such objects has depth 2.

Runs in your browser. Page last updated .

More developer tools

All 41 developer tools