JSON Depth

Max nesting depth of JSON.

Walks JSON and returns max depth. Unlike JSON Key Count this measures nesting. Bad JSON fails.

What JSON Depth does

Walks JSON and returns max depth. Unlike JSON Key Count this measures nesting. Bad JSON fails.

Practical limit for JSON Depth: Valid JSON in. That is why output can differ from heavy desktop Convert software. Read the tool-specific note again: Walks JSON and returns max depth. Unlike JSON Key Count this measures nesting. Bad JSON fails.

How to use JSON Depth

  1. Keep this tab on JSON Depth (/convert/json-depth). Pasting into the wrong Convert tool (for example JSON Key Count) changes the job.
  2. Paste or type the input JSON Depth expects. Path hint: convert · json depth. Max nesting depth of JSON.
  3. Apply the JSON Depth action only. Flatten JSON is a different transform (Dot-path keys from nested JSON.). Walks JSON and returns max depth. Unlike JSON Key Count this measures nesting. Bad JSON fails.
  4. Copy the output of JSON Depth if you need it elsewhere. Size/complexity still follows: Valid JSON in.
  5. If the text job is actually Count top-level JSON object keys., leave JSON Depth and open JSON Key Count.

When not to use JSON Depth

Skip JSON Depth when a neighbor tool matches better — start with JSON Key Count or Flatten JSON — or when the description already warns the job will fail. In the tool’s own words: Walks JSON and returns max depth. Unlike JSON Key Count this measures nesting. Bad JSON fails.

Questions about JSON Depth

What does JSON Depth do that other Convert pages on this site do not?
Walks JSON and returns max depth. Unlike JSON Key Count this measures nesting. Bad JSON fails. Short version: Max nesting depth of JSON.
Does JSON Depth upload my file or text to Tool-You servers?
No. JSON Depth runs in this browser tab. Files stay on the device. Limit note: Valid JSON in.
Should I use JSON Key Count instead of JSON Depth?
Use JSON Depth when you need Max nesting depth of JSON. Use JSON Key Count when you need Count top-level JSON object keys. They share a category (Convert) but not the same job.
What are the limits of JSON Depth?
Valid JSON in. Also: Walks JSON and returns max depth. Unlike JSON Key Count this measures nesting. Bad JSON fails.