Diff Checker
Compare two text blocks.
Loading tool…
How comparing two texts works
A diff algorithm finds the longest common subsequence between two versions and reports everything else as an insertion or a deletion. Compare line by line and you see which lines changed; compare word by word and you see exactly which words moved inside a paragraph, which is far more useful for prose than a whole line marked as modified.
Presentation matters as much as the algorithm. Side-by-side view puts the versions in parallel columns, which suits reading unfamiliar text. Inline view marks additions and deletions in a single flow, which suits reviewing your own edits. Options such as ignoring whitespace or case are what stop trivial reformatting from drowning out the changes you actually care about.
Why we built this tool
The everyday uses are comparing two drafts of a contract, checking what an editor changed, verifying that a copied configuration matches the original, or finding the one differing line between two lists that should be identical.
Contracts, drafts, and configuration files are private, and the two versions you paste in are often the most sensitive pair of documents you have — the before and after of something not yet agreed. Ours computes the comparison in your browser with JavaScript, so both versions stay on your device, nothing is transmitted, and there is no length limit. Once loaded, it works offline, which suits reviewing documents on the move.
Tips and common mistakes
- Turn on whitespace-insensitive comparison when reformatting is hiding the real changes.
- Sort both lists first when comparing sets of items where order does not matter.
- Word-level comparison reads far better than line-level for prose.
- Differences in line endings between Windows and Unix files can mark every line as changed.
Open Diff Checker with a link
Assistants and scripts can open Diff Checker with its input already in the link, after the #, which never leaves your device:
#a=— the first side to compare#b=— the second side to compare
Example: https://mygadgets.ink/tools/diff-checker/#a=...&b=... · also compressed gz fields and ?url=. How tool links work
Quick start: using Diff Checker
- Paste the original text into the left panel.
- Paste the revised text into the right panel.
- Run the comparison and choose inline or side-by-side view.
- Enable whitespace-insensitive comparison if reformatting is obscuring real changes.
- Work through the highlighted differences one by one.
For source code specifically, Code Diff Formatter renders hunks more clearly; for API payloads use JSON Diff.
What a diff checker shows
The tool compares two blocks of text and marks the differences:
- Additions — text in the new version but not the old.
- Deletions — text in the old version, gone in the new.
- Unchanged — the shared text, shown for context.
Instead of hunting, you get one view where only what changed stands out. It catches the single swapped word or missing sentence you would never spot by eye.
Reading a diff well
- Focus on the marked changes, not the unchanged context around them.
- A "changed" passage shows as a deletion plus an addition — the old wording removed, the new wording added. That is normal.
- Beware whitespace-only differences. Sometimes the only change is spacing, line endings, or an invisible character, which clutters the diff without changing meaning. Recognizing these saves confusion.
Where a diff checker earns its keep
- Contracts and legal text — find every clause that changed between versions before signing.
- Writing revisions — see exactly what an editor altered.
- Config and settings — spot what differs between a working and a broken setup.
- Catching unauthorized changes — confirm whether a document was really altered, and where.
Text diff vs. code diff
For plain prose and documents, a general diff checker is ideal. For source code, where formatting and syntax matter, Code Diff Formatter is tuned for the job. Both answer "what changed?" — pick the one that matches your content.
Common uses
- Compare document versions.
- Review edits to writing.
- Diff configs or settings.
- Verify whether text changed.