Analyze JSON
Paste JSON to instantly see structure statistics, data type breakdown, nesting depth, key counts, and more
Drop in any JSON and get a full structural breakdown — key counts, nesting depth, data type percentages, array lengths, null fields — in under a second. No code, no setup, just paste and click. And everything runs in your browser. Nothing gets uploaded.
How It Works
The tool parses your input into a JavaScript object, then walks every node recursively. At each level it tracks key names, value types, nesting depth, and array lengths. The results get compiled into a single report with percentage bars and summary stats — the whole thing takes milliseconds for most files.
Examples
Checking an API Response for Null Fields
Your user endpoint returns partial data and you need to know how many fields come back null.
{"users":[{"id":1,"name":"Alice","email":null,"phone":null},{"id":2,"name":"Bob","email":"[email protected]","phone":null}]}
Total Keys: 10
Depth: 3
Nulls: 3 (30%)
Strings: 4 | Numbers: 2
Arrays: 1
Profiling a Config File Before Refactoring
You inherited a 200-key config.json and need to understand the structure before splitting it up.
{"database":{"host":"localhost","port":5432,"pool":{"min":2,"max":10}},"cache":{"ttl":3600,"driver":"redis"},"features":{"darkMode":true,"beta":false}}
Total Keys: 11
Depth: 3
Strings: 3 | Numbers: 3
Booleans: 2 | Objects: 4
Auditing a Product Catalog Export
E-commerce export with 500+ products. You need to verify array consistency and spot missing data before importing to a new platform.
{"products":[{"sku":"A100","price":29.99,"tags":["sale","new"],"desc":null},{"sku":"B200","price":15.00,"tags":[],"desc":"Basic widget"}]}
Total Keys: 10
Depth: 3
Nulls: 1 | Strings: 5
Numbers: 2 | Arrays: 3
Array lengths: min 0, max 2, avg 1.3
Who Uses This
Profile API responses to catch unexpected nulls or type mismatches before they hit production.
Get a quick structural overview of JSON datasets before writing transformation scripts.
Audit Terraform state files or CI/CD config exports for nesting depth and key counts.
Visualize JSON structure while learning about data types, objects, and arrays.
Common Mistakes
A trailing comma after the last property — like {"a":1,} — is valid in JavaScript but not in JSON. Remove it or run the input through a JSON fixer first.
JSON requires double quotes around keys and string values. {'name':'test'} will throw a parse error. Switch to {"name":"test"}.
Copying only part of a JSON object (missing the closing brace) gives you a parse error. Make sure you grab the complete structure from the opening { to the final }.
Technical Details
- Processing: 100% client-side — nothing uploaded
- Browser Support: Chrome, Firefox, Safari, Edge
- Max File Size: Limited only by browser memory (50–100 MB typical)
- Parse Method: Native JSON.parse with recursive tree walk
Frequently Asked Questions
What does a JSON analyzer actually show you?
It breaks down the full structure of your JSON: total keys, maximum nesting depth, a count of every data type (strings, numbers, booleans, nulls, objects, arrays), array length ranges, string length stats, and file size. Think of it as a census of your data.
Can I analyze JSON files larger than 10 MB?
Yes. Since it runs in your browser, there is no upload limit. Most machines handle 50–100 MB without issues. If you are working with something bigger than that, you might notice a short delay while the recursive walk finishes.
Does this tool modify or reformat my JSON?
No. The analyzer only reads your JSON — it does not change, reformat, or sort anything. If you need formatting, the JSON Formatter tool handles that separately.
Why am I getting a parse error?
Nine times out of ten it is trailing commas, single quotes, or a missing bracket somewhere. JSON is stricter than JavaScript — every key needs double quotes and you can not have a comma after the last item in an object or array.
Is my JSON data private when I use this tool?
Completely. The analysis happens in your browser using JavaScript. Nothing gets sent to a server, stored in a database, or logged anywhere. Close the tab and it is gone.