Explore large JSON
Collapse and expand objects and arrays to find your way around big API responses and configuration files.
Paste JSON text or drop a file to view it as a fully collapsible tree – a JSON viewer, formatter and validator in one. Click any value to edit it inline, then export pretty-printed or minified JSON.
Paste text on the left or drop a file on the right.
Drop a JSON file here
or click to browse
Collapse and expand objects and arrays to find your way around big API responses and configuration files.
Click any string, number, boolean or null to change it. The source output updates immediately.
Click a key to see its path, so you know exactly how to reach the value from code.
Export pretty-printed JSON with 2-space indentation, or minified JSON with all whitespace removed.
JSON is stricter than JavaScript. When Parse JSON reports an error, it is usually one of these.
| Problem | Invalid | Valid | Notes |
|---|---|---|---|
| Trailing comma | {"a": 1,} | {"a": 1} | No comma after the last item in an object or array. |
| Single quotes | {'a': 'x'} | {"a": "x"} | Keys and strings must use double quotes. |
| Unquoted key | {a: 1} | {"a": 1} | Every key is a quoted string. |
| Comments | {"a": 1 // id} | {"a": 1} | JSON has no comments. Remove them, or use a format like JSON5. |
| Line break in a string | "line 1⏎line 2" | "line 1\nline 2" | Control characters must be escaped. |
| Special values | {"a": NaN} | {"a": null} | NaN, Infinity and undefined don't exist in JSON. |
| Leading zero | {"n": 07} | {"n": 7} | Numbers can't start with 0 unless they are 0 or 0.x. |
Paste your JSON or drop a .json file, click Parse JSON, and choose Pretty print. Copy or download the formatted result.
Common causes are trailing commas, single quotes instead of double quotes, unquoted keys, or comments. The error message shows what the parser found.
No. Parsing, editing and formatting all happen locally in your browser, so the data never leaves your device.
Yes. Parse JSON checks the syntax with the browser's strict JSON parser – the same rules
as JSON.parse() – and shows an error if the input isn't valid JSON. It checks syntax only;
it doesn't validate against a JSON Schema.
Parse your JSON and choose Compress. All whitespace between values is removed, which makes the JSON smaller for APIs and config files. Choose Pretty print to beautify it again.
It is the location of the value in JSONPath notation, such as $.users[0].name:
$ is the root, .name a key and [0] an array index. In JavaScript the
same value is data.users[0].name.