Compare two texts and see the differences
Paste two versions of a text (a contract, a document, a list or code) to see what was added, what was removed and which words changed within each line. Nothing leaves your device.
đź”’ Your files never leave your device
How to use it
- Paste the original text in one box and the new version in the other. You can also open text files.
- If case or extra spaces do not matter, tick the matching options.
- Press “Compare”. Removed lines are red and added lines green, with the changed words highlighted.
- “Show changes only” hides unchanged parts except for 3 lines of context. You can download the result as a diff file.
Example
A change in a clause
Original: “Payment is due within 30 days.” New version: “Payment is due within 60 calendar days.” The tool marks the line as changed and highlights only “30” versus “60 calendar”, rather than the whole sentence.
How it works
Lines are compared with the Myers algorithm, the same kind of comparison used by tools such as Git: it finds the fewest added and removed lines that turn one text into the other.
When a line has changed, it is compared again word by word to highlight only what differs.
“Ignore extra spaces” disregards spaces at the start and end of each line and treats runs of spaces as one. “Ignore case” compares without distinguishing upper and lower case.
Limitations
- It compares plain text. For Word or PDF files, copy the document text and paste it here; formatting (bold, tables) is not compared.
- If two texts have thousands of differences, the comparison stops so the browser does not freeze.
- Lines that moved appear as removed in one place and added in another.
FAQ
Are my texts sent to a server?
No. The comparison runs in your browser, so it is safe for contracts and confidential documents.
Can I compare two files?
Yes, any text file (.txt, .csv, .json, code…): press “Open file” above each box.
What is the diff format?
It is the standard format programmers and tools such as Git or “patch” use to describe changes between two files.