Which sentence changed in the new version of the contract? What did a colleague edit in the configuration file? Why does this JSON response differ from yesterday’s? Reading two versions side by side wastes time and misses small changes. A diff tool highlights every difference in seconds.
Page Contents
How to compare two texts
- Open the Diff Checker.
- Paste the original on the left and the changed version on the right.
- Click Compare.
- Read the highlights: green lines were added, red lines were removed, and changed words are marked inside lines.
- Switch between side-by-side and unified views, or swap the two texts.
Side-by-side vs unified
| View | Best for |
|---|---|
| Side by side | Documents and long lines – easy to read both versions at once |
| Unified | Code reviews and sharing changes – one column, like git diff |
Useful options
- Ignore case: “Total” and “total” count as the same.
- Ignore whitespace: extra spaces, tabs and indentation are not reported – useful when code was reformatted.
What people compare
- Contracts and policies: spot every edited clause before signing.
- Articles and essays: see what an editor changed.
- Code and configuration files: find the line that broke something.
- JSON and API responses: format both sides first with the JSON Formatter and turn on sort keys so the order does not create false differences.
- CSV exports and lists: see which rows were added or removed.
- SQL queries: format both with the SQL Formatter first.
How diff tools work
Diff tools find the longest common subsequence – the largest set of lines that appear in both texts in the same order. Everything else is an addition or deletion. Many tools, including git, use variations of the Myers diff algorithm. A second pass compares words within changed lines so you can see exactly what changed.
Comparing Word or PDF files
Copy the text out of each file and paste it into the diff tool. For formatted documents, Word’s built-in Review › Compare feature also shows tracked changes.
Tips for cleaner comparisons
- Normalise formatting before comparing (same line endings, same indentation).
- Compare smaller sections of very long documents.
- Use case conversion if one version is in different capitalisation.
FAQ
How do I compare two texts for differences?
Paste both into a diff checker and click Compare. Additions and deletions are highlighted.
Can I compare code?
Yes. Use unified view and ignore whitespace if the code was reformatted.
Is my text uploaded?
No. The comparison runs entirely in your browser, so it is safe for private documents.
How do I compare two JSON files?
Format both with sorted keys first, then compare them.
What does a unified diff show?
One column with removed lines marked and added lines marked, like the output of git diff.
Need a website or app for your business? Talk to Techpass Master – we design and build websites and apps for clients worldwide.
