Text compare
Compare two texts online and see the differences: added and removed lines plus highlighted changed words, side by side or unified.
Your text is processed in your browser and never sent to our server.
How to compare two texts online
This text compare tool shows the differences between two versions of a text line by line and highlights the exact words that changed. It works for contracts, articles, code, configuration files, lists or translations.
- Paste the original text into the left box.
- Paste the changed text into the right box.
- The comparison appears instantly below. Red lines were removed, green lines were added and the darker highlight marks the words that changed inside a line.
- Use Copy diff or Download .diff to save the result as plain text with
-and+markers.
What the options do
- Ignore whitespace – extra spaces, tabs and spaces at line ends are not counted as a difference.
- Ignore case – "Hello" and "hello" are treated as the same.
- Show only changes – long runs of unchanged lines are collapsed to 3 lines of context. Click the bar to expand them.
- View – side by side shows both versions next to each other, unified shows one column like
git diff.
Example
Comparing two versions of a short e-mail:
Original text
Dear customer, your order #1042 has been shipped. It will arrive on Monday. Thank you!
Changed text
Dear customer, your order #1042 has been shipped today. It will arrive on Tuesday. Tracking number: 7731 Thank you!
Result (unified)
Dear customer, - your order #1042 has been shipped. - It will arrive on Monday. + your order #1042 has been shipped today. + It will arrive on Tuesday. + Tracking number: 7731 Thank you!
The tool reports 3 added and 2 removed lines. In the changed lines only today and Monday → Tuesday are highlighted, so you do not have to read the whole line again.
Frequently asked questions
How do I find the differences between two texts?
Paste both versions into the boxes above. The tool uses the same algorithm as git diff (Myers diff) to find the smallest set of added and removed lines, then compares changed lines word by word.
Is my text safe?
Yes. Both texts are compared locally in your browser with JavaScript. Nothing is uploaded or stored on our server, so you can also compare confidential documents.
Can I compare two lists, not texts?
If the order of items does not matter, use our list compare tool, which shows items found only in one list or in both. To clean a list first, try the duplicate remover.
Why is a line with only extra spaces marked as changed?
Spaces and tabs are characters too. Turn on Ignore whitespace, or clean both texts with the spaces remover first.
How large texts can I compare?
Tens of thousands of lines work fine on a normal computer. For texts longer than 5,000 lines the word-level highlighting is switched off to keep the page fast; lines are still compared exactly.