Paste your JSON to check it for errors, prettify or condense it, then explore and edit it as a tree. Everything runs in your browser, so your data never leaves your device.
For screenshots of each step, see how the tool works.
Each example below has a common mistake. Open one, see where the error is marked, and try to fix it.
No. Checking, formatting and exploring all happen in your browser, on your own device. Your JSON isn't sent to our servers or stored anywhere, and it's gone when you close or refresh the page.
A JSON parser reports the spot where it noticed something was wrong, which is often just after the real mistake. If the marker is at the start of a line, the problem is usually a missing comma at the end of the line before. See common JSON errors for more patterns.
Not in standard JSON. Some tools, like VS Code settings, accept a variant called "JSON with Comments", but JSON.parse and most APIs reject comments, so this tool reports them as errors.
The tool reads your JSON the same way JavaScript does, which normalizes a few things: numbers like 1.0 are written as 1, integers larger than 9,007,199,254,740,991 lose precision, keys that look like whole numbers move to the front of their object, and if a key appears twice only the last value is kept. The text isn't rewritten until you press Prettify, Condense or edit a value, so you can check it first. If you work with very large IDs, keep them as strings.
There's no fixed limit, since everything runs on your device. Typical API responses and config files are instant; very large files take longer to check, and the tree view slows down when it has to draw tens of thousands of values.
Valid JSON can still have the wrong structure: a missing field, a number sent as a string, or a typo in a key. Reading nested JSON helps you check the structure by hand, and JSON Schema lets you check it automatically.
New to JSON? Start with What is JSON? or browse all the JSON guides.