← Vibe Tools

🩺 JSON Doctor

Paste some JSON to begin.

Free online JSON formatter and validator

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

  1. Paste or type JSON into the editor.
  2. Press Format (or Minify / Sort keys) and pick 2 spaces, 4 spaces or tabs.
  3. 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.

More free tools