A JSON formatter and validator online with no app to install — pretty-print, minify or sort keys, and see the exact line and column where invalid JSON breaks. It runs on your device; nothing is uploaded.
What is this?Hide details▾
What is JSON Formatter & Validator?
Paste JSON, drop a file or open one, and it is checked as you type: invalid input gets the exact line and column plus the offending snippet with a caret under the mistake. Format it with 2 spaces, 4 spaces or tabs, minify it, or sort every object's keys, then copy the result or download it as a .json file. The tree view opens large documents one level at a time and copies the path of any value, like $.items[3].name. Numbers too big or too precise for JavaScript are flagged and kept digit for digit instead of being silently rounded. Everything runs in your browser, so the JSON never leaves your device.
JSON Formatter & Validator
Output
Indent
Drop to open the file
Waiting for JSON
The result appears here as soon as the input is valid JSON.
Path$
Arrow keys move through the tree; Enter opens or closes a node.