JSON Diff Viewer (Compare Two JSON Documents)

Paste two JSON documents side by side and keep only the structural differences.

Dodane, removed, changed, and type changes are separated so reviews stay fast and readable.

Przetwarzanie tylko w przeglądarce, bez wysyłania na serwer
Tryby uwzględniające tablice zmniejszają szum przeglądu
Eksport JSON Patch i JSON Merge Patch
Twój JSON jest porównywany tylko w tej przeglądarce i nigdy nie jest wysyłany na serwer.

Recommended workflow

  1. Clean or sort the JSON first with JSON Formatter or JSON Key Sorter when you want consistent input.
  2. Paste or upload the left and right JSON documents, then run Compare.
  3. Choose the array mode, match keys, tolerance, and path rules that fit the review.
  4. Review the summary, changed paths, tree, and exportable patch output.

Przykład

This sample shows how reordered arrays, timestamp changes, tiny floating-point differences, and one added item can be narrowed down with match keys, tolerance, and path rules.

Left JSON

Input
{
  "orderId": "A-1001",
  "updatedAt": "2026-04-16T08:00:00Z",
  "customer": {
    "name": "Acme Corp",
    "tags": ["vip", "beta"]
  },
  "items": [
    {
      "sku": "A-1",
      "qty": 2,
      "price": 10
    },
    {
      "sku": "B-2",
      "qty": 1,
      "price": 4.5
    }
  ],
  "summary": {
    "currency": "USD",
    "total": 24.5
  }
}

Right JSON

Input
{
  "orderId": "A-1001",
  "updatedAt": "2026-04-16T08:05:00Z",
  "customer": {
    "name": "Acme Corporation",
    "tags": ["beta", "vip"]
  },
  "items": [
    {
      "sku": "B-2",
      "qty": 1,
      "price": 4.5
    },
    {
      "sku": "A-1",
      "qty": 2,
      "price": 10.0001
    },
    {
      "sku": "C-3",
      "qty": 1,
      "price": 7
    }
  ],
  "summary": {
    "currency": "USD",
    "total": 24.5001
  }
}

What the sample demonstrates

This sample shows how reordered arrays, timestamp changes, tiny floating-point differences, and one added item can be narrowed down with match keys, tolerance, and path rules.

Jak używać

  1. Wklej JSON do lewego i prawego edytora.
  2. W razie potrzeby dostosuj kolejność kluczy, kolejność tablic i tryb wyświetlania.
  3. Uruchom porównanie, a potem skopiuj lub pobierz raport, gdy skończysz.
  4. Copy or download the changed paths, patch, merge patch, or report when you are done.

What it does

  • Compares JSON structures recursively.
  • Oddziela wpisy dodane / usunięte / zmienione / ze zmienionym typem.
  • Przełącza między widokiem drzewa i listy.
  • Kopiuje raport lub pobiera go jako JSON.
  • Eksportuj JSON Patch, JSON Merge Patch, zmienione ścieżki i raport Markdown.
  • Zwijaj niezmienione węzły i przechodź bezpośrednio do właściwej ścieżki.

Spec

  • Kolejność kluczy nie wpływa na domyślny wynik porównania.
  • Tablice są domyślnie porównywane w kolejności, ale to zachowanie można zmienić.
  • To narzędzie nie waliduje JSON Schema.
  • Wszystkie przetwarzanie pozostaje w przeglądarce. Nic nie jest wysyłane na serwer.
  • Bardzo duże dokumenty JSON zależą od wydajności przeglądarki.
  • Large inputs use summary-first rendering and can disable auto-compare.

FAQ

Can key order be ignored?

Yes. The default behavior avoids key-order noise in the result.

Are array positions compared?

Yes, by default. You can change the behavior in the settings panel.

Does it validate JSON Schema?

No. It focuses on structural diffing only.

Is anything uploaded to a server?

No. Comparison happens entirely in your browser.

Czy cokolwiek jest wysyłane na serwer?

Nie. Porównanie, normalizacja i eksport odbywają się lokalnie w przeglądarce.

Co mogę wyeksportować?

JSON Patch, JSON Merge Patch, zmienione ścieżki i raport Markdown.