Text Compare: Find Differences Between Two Texts
Compare two texts online for free. See added, removed and changed lines side by side, with the exact changed words highlighted. Private: runs on your device.
How to use it
- Paste the original version in the first box and the changed version in the second.
- Read the summary: how many lines were added, removed and changed.
- Scan the highlights: red is removed, green is added, and darker marks show the exact words that changed.
- Turn on “Ignore case” or “Ignore spacing” if those differences don’t matter to you.
- Copy the diff to share it, or show all lines to see the changes in full context.
How the comparison works
The comparison lines up the two versions and finds the smallest set of lines that were added, removed or changed between them, then highlights the exact words that differ inside each changed line. That makes it quick to review edits to a contract, a policy or an essay when the other person didn't use tracked changes.
A line that has only moved shows as removed in one place and added in another. Reformatting, such as re-wrapped paragraphs or different line endings, can make whole paragraphs look changed even though the words are the same, so compare texts that were copied the same way.
Good uses
Checking what changed between two drafts of an agreement before you sign, confirming that a document someone returned hasn't been altered, comparing two versions of a settings file, and spotting the one different line between two long lists. Everything is compared on your device, so confidential text doesn't leave it.
Questions people ask
How does the comparison work?
It compares the texts line by line using the Myers diff algorithm, the same approach behind tools like Git, to find the smallest set of added and removed lines. Where a line was edited, it then compares that line word by word so you can see exactly what changed.
Why does an edited line sometimes show as removed and added?
When a line changes a lot, or a block of lines is rewritten, the tool may not be able to match old and new lines one to one. It then shows the old lines as removed and the new ones as added. The total is still correct.
Can I compare Word or PDF documents?
Copy the text out of each document and paste it in. Formatting such as bold or fonts isn’t compared, only the words. To combine PDF files instead, use the PDF merge tool.
How large can the texts be?
Thousands of lines compare in well under a second on most devices. For very large inputs, word-level highlighting is switched off to stay fast, and texts that are almost completely different are shown as one replaced block.
Is it safe for confidential documents?
Yes. The comparison runs entirely in your browser and nothing is uploaded. The text is kept in this browser’s storage so it survives a reload; press Clear both when you’re done on a shared computer.
