Developer

Runs in your browser. No file uploads for processing.

Compare Two JSON Files by Structure

Compare two JSON files by structure rather than formatting. See added, removed, and changed JSON Pointer paths without uploading either file.

Loading tool...

How to compare JSON by values rather than formatting

  1. Open or paste both JSON documents

    Use the original on the left and the revised document on the right. Both must be valid JSON with unique object keys.

  2. Compare values and paths

    Object keys are matched by name, while arrays are compared in index order. Whitespace and equivalent decimal spellings do not create changes.

  3. Review or download the differences

    A JSON Pointer shows where each value changed. Download the list as a JSON report with before and after fragments if you need to share it.

Use cases

  • Compare API payloads that contain the same keys in a different order.
  • Review settings files and identify the exact nested field where a flag or type changed.

Limits and privacy

  • Each file must be UTF-8 and at most 1 MB, 40,000 values and 100 levels. Duplicate object keys and extremely long keys or exponents are rejected.
  • Arrays compare in order by index. Moves are not inferred and the report is not a JSON Patch.
  • Large reports can show exact summary counts without a full download. The comparison does not apply changes to either input.

The tool processes inputs in your browser. Account features and usage analytics are separate.

Frequently asked questions

How do I compare JSON without counting spaces and object order as changes?

Open both local JSON documents and compare their nested values and types. The report uses JSON Pointer locations, preserves big numeric values, and matches arrays by index.

Will new indentation or moving an object key produce a change?

No. Spaces and object key order are ignored. Arrays are ordered, so changing the order of their items can produce differences.

What should the sample show?

The comparison adds /channel and /users/ana/tags/1, removes /obsolete, and changes /users/ana/active from true to false. The values 7 and 7.00 are equal.

Can it compare IDs larger than JavaScript’s safe integer range?

Yes. Numbers are compared by their exact decimal value without rounding them to JavaScript Numbers. The report preserves original JSON fragments.

What is a JSON Pointer?

It identifies a location such as /users/ana/active or /items/0. A slash in a key appears as ~1, a tilde as ~0, and an empty pointer means the entire document.

Are my JSON files uploaded or edited?

No. The browser does the comparison and makes the report. Your source files stay unchanged and are not uploaded.

Related tools