Updated · Free · No sign-up · Runs in your browser
JSON Doctor formats, minifies and validates JSON right in your browser. Paste an API response or config file and it pretty-prints it, sorts keys, shows a collapsible tree, and points to the exact line and column of any syntax error. Nothing is uploaded, so it is safe for tokens and private data.
How to use JSON Doctor
Paste or type JSON into the editor.
Press Format (or Minify / Sort keys) and pick 2 spaces, 4 spaces or tabs.
Fix any error at the line and column shown, then copy the result or explore it in the tree view.
Frequently asked questions
Is my JSON payload sent to a server when formatting or validating?
No. JSON Doctor parses, formats, sorts, and inspects JSON entirely inside your browser's JavaScript runtime without any network requests.
Can JSON Doctor pinpoint where a syntax error occurred?
Yes. Invalid JSON displays the exact line and column offset of the syntax error so you can fix malformed API responses quickly.