JSON Diff

JSON Diff is a free online tool that performs json diff validation, formatting, key sorting, flattening, path querying, and YAML/TypeScript conversion. It supports JSON, YAML, TypeScript, JSON Schema inputs and outputs using native JSON parser, js-yaml, and recursive AST transforms with live previews and instant export. All processing runs locally inside your browser tab with zero server uploads, no sign-up, and full offline support, plus direct AI agent access via the text_diff MCP tool.

Formats: JSON, YAML, TypeScript, JSON Schema

Available in MCP: text_diff

How to use JSON Diff

  1. Paste JSON/YAML text or drop a .json file into JSON Diff.
  2. Select indentation, key sorting, JSONPath query, or target output format and inspect live diagnostics.
  3. Copy the formatted result or download the transformed file locally.

FAQ

Does JSON Diff pinpoint syntax errors with line or character context?
Yes. Invalid JSON triggers an immediate parse diagnostic so you can locate missing commas or quotes fast.
Can JSON Diff convert between JSON, YAML, and TypeScript interfaces?
Yes. It converts cleanly between JSON and YAML and infers nested TypeScript type definitions.
Is API payload data sent to any server?
No. All parsing, formatting, and schema inference happen locally in JavaScript (and via local MCP when connected).