JSON Stats Analyzer screenshot

JSON Stats Analyzer

Measure a JSON document: nesting depth, object and array counts, keys, values and how many bytes minifying saves.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Instant
No signup

What the JSON report measures

One walk counts every value by type, every object key and every array element, and records the deepest container. Depth counts levels of objects and arrays, not the scalars inside them, so a flat list of records is depth two. The byte figures compare the text you pasted with the minified form, which is the saving a transport would actually see; the UTF-8 count is what a server would write to the wire.

How to use it

JSON Stats Analyzer: paste the JSON into the box above, and press Run to get the report below.

Worked example

Input:

{
  "id": 42,
  "displayName": "Ada Lovelace",
  "active": true,
  "score": 9.5,
  "tags": [
    "math",
    "engine"
  ],
  "address": {
    "city": "London",
    "country": "GB"
  },
  "projects": [
    {
      "name": "Analytical Engine",
      "year": 1843
    },
    {
      "name": "Note G",
      "year": 1843,
      "notes": "first published algorithm"
    }
  ],
  "nickname": null
}

Output:

Top-level type: object
Depth: 3
Objects: 4
Arrays: 2
Object keys: 15
Array elements: 4
Strings: 8
Numbers: 4
Booleans: 1
Nulls: 1
UTF-8 bytes: 392
Minified bytes: 268
Saved by minifying: 124 bytes

Why it runs in your browser

The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads JSON and returns report; reloading the page discards both.

One walk counts every value by type, every object key and every array element, and records the deepest container. Depth counts levels of objects and arrays, not the scalars inside them, so a flat list of records is depth two. The byte figures compare the text you pasted with the minified form, which is the saving a transport would actually see; the UTF-8 count is what a server would write to the wire.

Measure a JSON document: nesting depth, object and array counts, keys, values and how many bytes minifying saves.

How to use it

JSON Stats Analyzer: paste the JSON into the box above, and press Run to get the report below.

Why it runs in your browser

The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads JSON and returns report; reloading the page discards both.

What to Expect

Best for

  • Converting JSON to report when the data is already on screen.

What this tool keeps

  • Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.

Sample input

{ "id": 42, "displayName": "Ada Lovelace", "active": true, "score": 9.5, "tags": [ "math", "engine" ], "address": { "city": "London", "country": "GB" }, "projects": [ { "name": "Analytical Engine", "year": 1843 }, { "name": "Note G", "year": 1843, "notes": "first published algorithm" } ], "nickname": null }

Sample output

Top-level type: object Depth: 3 Objects: 4 Arrays: 2 Object keys: 15 Array elements: 4 Strings: 8 Numbers: 4 Booleans: 1 Nulls: 1 UTF-8 bytes: 392 Minified bytes: 268 Saved by minifying: 124 bytes

Frequently asked questions

How do I use the json stats analyzer?

JSON Stats Analyzer: paste the JSON into the box above, and press Run to get the report below.

Is my input uploaded?

No. The text is parsed on this page with JavaScript and is never posted to a server.

Is there a size limit?

Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.