About the Text Compare
Paste the old and new version of any text, such as a contract, an essay or a list, and see exactly what changed. Additions are green and removals are red.
When a contract comes back from the other side, an essay returns from an editor or a configuration file changes between environments, you need to know exactly what is different. Reading two versions side by side misses small edits. This tool highlights every addition and removal so you can review changes with confidence.
It uses the Myers difference algorithm from the open-source jsdiff library, the same approach git uses. Compare by words for prose, by lines for lists and code, or by characters for short strings such as IDs. Options ignore case or extra whitespace when those differences do not matter. A summary shows how many pieces were added and removed and whether the texts are identical.
How to use the Text Compare
- 1Paste the original text on the left and the changed text on the right.
- 2Choose to compare by words or by lines.
- 3Review the highlighted differences and the change count.
Key features
- Word, line or character comparison.
- Additions in green, removals in red.
- Ignore case and extra whitespace options.
- Added and removed counts.
- Identical check at a glance.
Practical uses
- Reviewing edits to a contract or agreement.
- Checking what an editor changed in an article.
- Comparing two versions of a config or .env file.
- Spotting the difference between two similar product descriptions.
Example
Comparing “Payment is due within 30 days” with “Payment is due within 15 days of invoice” by words shows 30 removed in red and 15 and “of invoice” added in green.
Tips and common mistakes
- Use Lines for code and lists; word comparisons of code can be noisy.
- Turn on Ignore extra whitespace when text was copied from different sources.
- For formatted documents, compare plain text versions to avoid noise from formatting.
Limitations
- Formatting such as bold or fonts is not compared, only the text.
- Very large texts with many changes can take a moment to compare.
Privacy
Both texts stay in your browser. That makes the tool suitable for legal drafts and internal documents.
Frequently asked questions
Is the comparison private?
Yes, both texts stay in your browser.
Words or lines: which should I use?
Use words for documents and sentences, lines for lists, code or data.
Which algorithm is used?
The Myers diff algorithm from the open-source jsdiff library, the same idea used by git.
Can I compare two files?
Paste their contents into the two boxes. For code with syntax colours, use the Code Diff Viewer.
Can it compare documents in different languages?
It compares any text, but a translation will show as completely different because the words differ.