Compare two texts and see the differences
Compare two texts line by line and highlight which lines were added, removed or kept the same, like a version-control diff.
Processed on your device. Nothing is sent to any server.
Differences
The texts are identical.
Computes the longest common subsequence between both texts to identify the minimal set of added and removed lines between one version and the other.
Use cases
- Reviewing changes between two versions of a document.
- Comparing two configurations or data lists.
- Spotting differences in code snippets pasted as text.
How it works
- 1
Paste both texts
Type the original text on the left and the new one on the right.
- 2
Review the differences
Added and removed lines are highlighted automatically.
Technical details
- Lines removed from the original and lines added in the new text are marked separately, with a count of each.
- A line with a single change (a comma, a trailing space) shows up as removed and re-added: the exact word that changed isn't highlighted.
- It's case- and whitespace-sensitive: "Hello" and "hello" are different lines.
Frequently asked questions
Does it compare word by word or line by line?
The comparison is by full lines; for text with no line breaks, the whole text is treated as a single line.
Can I use it to compare two Word or PDF documents?
Yes, if you copy and paste their text. The tool compares plain text, so it won't detect formatting changes such as bold, colors or font sizes.