Text Compare
Compare two versions of a text and highlight the lines or words that were added, removed, or left unchanged, with a count of the differences.
This runs entirely in your browser. We don’t store any data.
Differences
Paste both texts to see the differences.
How to use it
- 01
Paste the original version on the left and the new version on the right.
- 02
Compare by lines (for code, lists, or documents) or by words (for proofreading a paragraph).
- 03
The differences appear below, with additions in green, deletions in red, and the line numbers from each version.
- 04
If you only care about changes in content, check the options to ignore case or whitespace.
How it works
The comparison uses the Myers diff algorithm, the same one Git’s diff is built on. It finds the shortest way to turn one text into the other using insertions and deletions.
In line mode, any line that changed shows up as removed in its old form and added in its new form. In word mode, only the words that changed are marked, which makes it easier to review edits within a paragraph.
To keep the page responsive, there’s a limit of about 20,000 lines or words in total and 2,000 differences. Everything runs in your browser and your texts are never sent to a server, so it’s safe for confidential documents.
Examples
- Reviewing a contract
Paste the version you sent and the one you got back to see exactly which clauses changed.
- Proofreading
In word mode, “The cat eats fish” vs. “The dog eats fresh fish” marks “cat” as removed and “dog” and “fresh” as added.
- Comparing lists
Compare two lists of email addresses or product SKUs to find which items are missing from one of them.
Frequently asked questions
Can I compare Word or PDF files?
Copy the text from each document and paste it into the boxes. Only the text is compared, not formatting like bold or tables.
Are the texts I compare stored anywhere?
No. The comparison runs on your device, and the texts are gone as soon as you close or reload the page.