Text Compare
Compare two texts line by line and see the added, removed and unchanged lines.
Text & ConvertResult
Result
The texts are identical ✓
- Lines added
- 0
- Lines removed
- 0
- Lines unchanged
- 0
- Similarity
- 100%
How does it work?
Text Compare finds which lines were added, removed or left unchanged by comparing two texts line by line. The comparison uses the longest common subsequence method: lines that match in both texts count as unchanged, lines in the original but not the new text count as removed, and lines in the new text but not the original count as added. 'Ignore whitespace differences' equalizes leading/trailing and repeated spaces, and 'Ignore upper/lower case' makes the comparison case-insensitive. The similarity score is twice the number of unchanged lines divided by the total number of lines in both texts. Example: say the original text is 'elma / armut / kiraz / üzüm' (4 lines) and the changed text is 'elma / çilek / kiraz / üzüm / muz' (5 lines). The tool finds that 'armut' was removed (-), 'çilek' and 'muz' were added (+), and 'elma', 'kiraz' and 'üzüm' are unchanged; the similarity score works out to (2 × 3) ÷ (4 + 5) = 66.7%. Use this tool to find the difference between two versions of a document or contract, see which lines changed in a text's edit history, or compare the old and new version of a code snippet or configuration file.
Example
Similar Tools
Toolbox Get your Toolbox ready.
Star the tools you use most and, with an account, they follow you to every device.
Frequently asked questions
How do I read the result?
A line starting with '-' is in the original but not in the new text; a line starting with '+' is in the new text but not in the original.
How is the similarity calculated?
Twice the number of shared (unchanged) lines divided by the total number of lines in both texts.
What does 'Ignore whitespace differences' do?
It collapses leading/trailing and repeated spaces before comparing, so lines that only differ in formatting aren't counted as 'changed'.
What happens if a line moves to a different position?
The comparison matches lines by content, so the same line can still be found as unchanged even if its position shifted, but a lot of line movement can make the diff harder to read.
How many lines can I compare?
Up to 2,000 lines per text; going over that shows an error message.