Home › All tools › Compare two texts
Compare two texts
Put two versions of a text side by side and see exactly which lines were added, removed or changed.
दो टेक्स्ट की तुलना करें — क्या बदला, लाइन दर लाइन।
How to use it
- Paste the original on the left and the new version on the right.
- Differences are marked as you type.
- Green lines were added, red lines were removed.
About this tool
The comparison works line by line using the longest common subsequence — the same approach code review tools use. Lines that appear in both texts in the same order are treated as unchanged, and everything else is shown as an addition or a removal, so a block moved down the page shows as a removal in one place and an addition in another.
Ignoring spacing is on by default because pasted text picks up stray spaces and different line wrapping, and those differences are almost never the ones you are looking for.
Tips
- Comparing two drafts of a letter or a circular is the commonest use: it finds the one clause that changed.
- For two versions of a list, sort both first so the comparison is not swamped by reordering.
- The summary counts give a quick sense of how much actually changed.
Questions people ask
Does it show changes inside a line?
The whole line is marked as changed. For a word-level view, compare the two lines on their own.
Can I compare files?
Open each file, copy the text, and paste it in. Nothing is uploaded either way.
Is there a size limit?
Very large texts slow down because the comparison is quadratic in the worst case. A few thousand lines is comfortable.