Format, minify and validate JSON, explore it as a searchable tree, and copy the path to any value. Large numbers are kept exactly.
More:JSON Formatter (fix broken JSON)JSON to TableJSON Stringify & ParseXML Formatter
Numbers and text are copied exactly from your input, so large numbers are never rounded (JSON.parse would change 12345678901234567890 to 12345678901234567000). Comments and trailing commas are accepted, duplicate keys are flagged, and errors show the line and column. The tree view is searchable and copies a value's path (like $.users[0].email) when you click it. Everything runs in your browser.
Paste JSON, open a .json file or drop one in. Beautify mode indents it with 2 spaces, 4 spaces or tabs, and Minify mode removes all whitespace. If the JSON is invalid, the error shows the line and column in plain words, and "Show in input" jumps to it. Tree view shows the structure as a collapsible tree. Search for a key or value to open the matching branches, and click any value to copy its path, such as $.users[0].email. You can also sort keys from A to Z. Unlike many formatters, large numbers such as 64-bit IDs are kept exactly as written instead of being rounded. The tool also warns about duplicate keys and accepts JSON with comments or trailing commas, as used in many config files, and can keep the comments when formatting. Everything runs in your browser.
JavaScript can only store numbers exactly up to 9,007,199,254,740,991, so many tools round larger IDs. This tool keeps every number exactly as written.
Switch to Tree view and click the value. A path such as $.users[0].email is copied, ready for JSONPath or for code.
Yes. Comments and trailing commas are accepted and you are told they are not standard JSON. With "Keep comments" on, comments stay in the formatted result.
You get a warning listing them. Most programs keep only the last value for a duplicate key, so the other values are silently lost.