JSON Tools

Format, validate, and minify your JSON data. Automatically fixes common issues like single quotes.

About this tool

A JSON formatter takes minified or malformed JSON — the kind you get from an API response, a log line, or a config file — and turns it into readable, indented, validated output, catching syntax errors along the way.

How to use it

  1. Paste your JSON (or JSON-like text) into the input box.
  2. Click Format to pretty-print it, Minify to compact it, or Validate & Fix to check for and repair common issues.
  3. Switch the output between Raw Code and the Interactive Tree view to navigate large payloads.
  4. Click any key in the tree view to copy its JSON path.

FAQ

What kinds of issues does "Validate & Fix" repair?

The most common ones: single quotes instead of double quotes, and trailing commas before a closing bracket — both frequent causes of "invalid JSON" errors when copying from JavaScript source or logs.

Is my JSON sent to a server to be validated?

No — parsing and formatting both happen entirely in your browser using the native JSON parser, so nothing you paste is transmitted anywhere.

Why does the tree view help with large payloads?

A deeply nested API response can be hundreds of lines of raw text. The tree view lets you collapse/expand branches and jump straight to a specific field instead of scrolling and counting braces.