How to compare two texts
- Paste the earlier version into Original text and the later version into Changed text.
- Click Compare (the result also refreshes as you edit).
- Read the result from top to bottom: lines starting with − on a red background were removed, lines with + on green were added. A changed line shows as a removal followed by an addition.
- With “Hide unchanged lines” on, only the changes and three lines of context around each are shown; untick it to see the whole text.
How the comparison works
The tool uses the Myers diff algorithm — the same approach used by git diff — to find the smallest set of line insertions and deletions that turns the original into the new version. Comparing whole lines makes the result easy to read for code, lists, CSV files and documents with one paragraph per line.
- Ignore whitespace treats lines as equal when they differ only in spaces, tabs or indentation. Useful when a file was re-indented or someone's editor stripped trailing spaces.
- Ignore case treats “Total” and “total” as the same.
- Windows (CRLF) and Unix (LF) line endings are treated the same.
Copy as unified diff gives you the changes as plain text with + and - prefixes, ready to paste into an email, ticket or chat.
What people use it for
- Checking what a colleague or client changed in a contract, policy or essay when tracked changes weren't turned on.
- Comparing two versions of a configuration file before deploying.
- Spotting differences between two exports of a list or spreadsheet column.
- Reviewing code snippets without committing them to a repository.
Because the comparison runs locally, you can safely use it for confidential documents and files containing passwords or keys.
Frequently asked questions
Does it show changes inside a line?
The comparison is line by line: a line where one word changed appears as the old line removed and the new line added, one above the other, so the edited word is easy to spot. For long paragraphs, putting each sentence on its own line gives a more precise result.
Is there a size limit?
Up to 50,000 lines per side. Typical documents and source files compare instantly. Very different large texts take longer, because the work grows with the number of changes.
Are my texts uploaded?
No. Both texts stay in your browser; the comparison is JavaScript running on your device.
Can I compare Word or PDF files?
Not directly. Copy the text out of each document and paste it into the two boxes. Formatting such as bold or fonts isn’t compared, only the text.