
Diff checker: compare text or JSON side by side
Paste two versions and see what changed: side by side, as a unified diff, or as a list of changed JSON values. Nothing is uploaded.
Runs in your browser. Pasted data never leaves it.
How to use it
- Paste the original on the left and the changed version on the right, or drop a file on either box.
- Differences appear underneath at once: red lines were removed, green lines were added, and changed words inside a line are highlighted.
- Switch to Unified for a patch-style view, or choose “Compare as JSON” to ignore formatting and see a list of changed values.
- Copy or download the unified diff.
Questions
How does it decide what changed?
It finds the shortest set of added and deleted lines that turns the original into the changed text (the Myers algorithm, the same idea as git diff and diff --minimal). When a block of lines is replaced, the lines are paired up, and inside each pair the words that changed are highlighted.
What does “compare as JSON” do?
Both sides are parsed, optionally have their keys sorted, and are printed with the same indentation before the comparison, so only real differences show. A separate “JSON changes” list names each added, removed or changed value by its JSONPath. Arrays are compared by position.
Is there a size limit?
Pasted text up to a few megabytes works well. Very large files with very many differences fall back to showing the whole block as replaced, to keep the page responsive.
Can I use the unified diff with git or patch?
The copied text is a standard unified diff with 3 lines of context, readable by patch and git apply when the file names match. Line endings are normalised to \n before comparing.
Is what I paste or test sent anywhere?
No. This page works entirely inside your browser, and pasted data never leaves your device. It makes no network requests while you use it, and the page also tells your browser to block them (a Content-Security-Policy with connect-src 'none'), so even a bug could not send your data out. To check it yourself, open your browser's developer tools, go to the Network tab, and use the tool: nothing will appear. There is no account, no analytics and no logging.
