Skip to content
Toolbox

JSON formatter, validator and viewer

Make JSON readable, or minify it for a request. Explore large documents in a tree you can fold and filter, and see their size and depth at a glance. Nothing is sent to a server.

Runs in your browser. Nothing is uploaded.

Loading the JSON formatter…

How to use the JSON formatter

  1. Paste your JSON.

  2. Choose Format or Minify, the indentation and whether to sort the keys.

  3. Open the tree view to fold objects and filter on keys and values.

  4. Fix any reported error, then copy the result.

Frequently asked questions

Is my JSON sent to a server?

No. The JSON is parsed by your own browser, so you can safely format API responses and configuration with secrets.

How do I find a value in a large JSON document?

Open the tree view and type in the filter. Only the keys and values that match stay visible, together with the path that leads to them.

Does it support comments or trailing commas?

No. The validator follows the JSON standard, which allows neither comments nor trailing commas.

  • JSONPath tester New

    Query JSON with JSONPath: select fields, filter arrays on conditions and sort the results. Includes examples and a cheat sheet.

  • JSON diff New

    Compare two JSON documents and see every added, removed and changed value with its path. The order of keys does not matter. Runs locally.

  • JSON to CSV converter New

    Turn a JSON array into a table you can sort and filter, and download it as CSV for Excel or Google Sheets. Converts CSV back to JSON too.

  • JSON to TypeScript New

    Generate TypeScript interfaces or types from a JSON example, with nested objects, arrays, optional keys and union types. Copy them in one click.

All tools in Developer