TextCompare

Structured data comparison

JSON Diff Checker

Paste two JSON documents to see what changed. Both sides are formatted and their keys sorted before comparing, so reordered keys do not show up as false differences. Nothing is uploaded.

0 lines · 0 characters

0 lines · 0 characters

Compare by

A focused diff viewer for source code

Review precise changes

Line mode is ideal for commits and patches. Word and character modes help pinpoint small edits inside a line.

Code stays readable

Monospaced output preserves indentation, and pasted tags or scripts display as text rather than running in the page.

Private by design

The comparison runs locally in your browser. Your source code is not uploaded, stored in a database or logged.

Working with structured data? Format and validate JSON, or use all text comparison options.

How to compare two JSON files

Paste the original JSON on the left and the new version on the right, then click Compare. The tool pretty-prints both documents with two-space indentation and sorts every object's keys, then runs a line diff so added, removed and changed values stand out.

It is handy for checking API response changes, config file updates, feature flag payloads and test fixtures. Array order is kept, because in JSON the order of array items is meaningful.

Frequently asked questions

Does key order matter?

No. Keys are sorted alphabetically on both sides before comparing, so only real changes in keys or values are highlighted.

What if my JSON is invalid?

Invalid JSON is compared as plain text. Use the JSON Formatter to find the exact syntax error first.

Is my data uploaded?

No. Parsing and comparing happen in your browser, so API responses, tokens and customer data stay on your device.