How to compare two texts
- Paste the earlier version into the Original text box.
- Paste the later version into the Changed text box.
- Read the result below the boxes. It updates as you type, so there is no button to press.
- Click Copy differences if you want the changed lines as text, such as
-3: old lineand+3: new line.
Reading the result
Each line in the result shows its number in the original text and in the changed text.
- A minus on a red background means the line was removed.
- A plus on a green background means the line was added.
- Inside a changed line, the changed words are highlighted. Removed words are also struck through.
The tool compares line by line, so a paragraph you move shows as removed in one place and added in another. Windows and Mac or Linux line endings count as the same.
Options
- Ignore upper and lower case treats Cat and cat as the same.
- Ignore extra spaces counts a run of spaces as one and ignores spaces at the end of a line.
- Show only changed lines keeps two unchanged lines around each change and hides the rest.
- Swap sides switches the two texts. Clear empties both boxes.
Tips
- Use it to check two versions of a contract, essay, email, config file, code or CSV.
- Turn on Show only changed lines to focus on the edits in a long text.
- If more than 3,000 lines changed, the texts are too different to compare line by line. Compare smaller parts instead.
- Your text stays in your browser. Nothing is uploaded.