JSON File Inspector
Says whether a JSON file is valid, where it breaks, and what shape it is.
Loading the tool…
How to use this tool
- Load or paste the JSON.
- Select Inspect the file.
- If it is invalid, go to the line and column in the result — that is where the parser stopped, which is usually just after the real mistake.
- If it is valid, check the top level and the longest array to find where the records actually are.
What json file inspector does
There are two questions to ask of a JSON file you did not write. The first is whether it parses at all, and if it does not, exactly which line and column stopped it — a character offset in a one-line minified file is not an answer anybody can use. The second question is the shape: how deep does it nest, is the top level an object or an array, how many records are really in there, and which keys turn up on almost everything.
This page answers both. An invalid file gets its failure translated into a line and column, along with the observation that if every line is its own record it is JSON Lines rather than JSON and wants the NDJSON inspector instead. A valid file gets a structural report: top-level type, maximum depth, counts of objects, arrays, strings, numbers, booleans and nulls, the longest array, the minified size, and the keys ranked by how often they appear. Everything runs in your browser and nothing is uploaded.