Compare two JSON documents by structure, with the path of every change
Diff Checker
See exactly what changed between two versions of a text or file, down to the word.
Loading tool…
How to use diff checker
Paste or open the original on the left and the changed version on the right.
Choose side by side or unified layout; on a phone the two sides stack.
Turn on ignore whitespace or ignore case if those changes do not matter.
Copy or download the result as a unified .patch file.
What this tool does
- Finds the smallest set of line changes with the Myers algorithm, the method git uses by default.
- Highlights the words that changed inside each modified line.
- Folds long unchanged stretches so the changes stand out, with three lines of context.
- Exports a standard unified diff that git apply and patch can read.
How the result is verified
After every comparison the edit list is replayed on the original text and must rebuild the changed text exactly. The result of that check is shown under the diff.
Frequently asked questions
Can I compare two files?
Yes. Use Open file on each side or drop a file onto each box. Any text file works, from source code to CSV.
Is the .patch file compatible with git?
Yes. It uses the unified format with three lines of context, which git apply and the patch command both read. Rename the a/ and b/ paths to your real file path first.
Is my data uploaded to a server?
No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.
Related tools
Check two files are byte-for-byte identical and see where they differ
Side-by-side pages, magenta pixel differences, text word changes, and a local JSON report.
Indent HTML neatly while keeping pre, textarea and script content intact
Beautify minified CSS with clean indentation, selectors and media queries