Compare two texts
Compare two texts line by line and see what was added, removed or changed.
Differences
Large inputs: changed blocks are shown without line-level matching.
Runs entirely in your browser. Your files never leave your device.
About this tool
Which sentence changed between two versions of a contract, which line of a configuration file is different, what was removed from a list? Paste the original on the left and the new version on the right: the result shows every line, with additions in green, deletions in red and the line numbers of both versions.
Options ignore differences in letter case or spacing when they do not matter, for example after reformatting. You can copy the comparison in the familiar plus and minus patch format. Because the comparison runs in your browser, confidential documents and source code never leave your computer.
How it works
- Paste the original text in the left box.
- Paste the changed version in the right box.
- Read the highlighted lines and the count of additions and deletions.
- Optionally ignore case or whitespace, then copy the patch.
The comparison finds the longest common subsequence of lines, the method used by diff tools. A modified line appears as one removed line followed by one added line.
Worked example
Version 1 of a contract says “Payment within 30 days of invoice”, version 2 says “Payment within 45 days of invoice”, and a clause about late fees has disappeared. Paste both: the changed line appears in red then green, the removed clause in red with its original line number, and everything else stays neutral, so nothing slips through.
After someone reformatted a configuration file, turn on “ignore whitespace” and only the real changes remain.
Good to know
- Compare plain text: copying from a PDF can add line breaks that show up as differences.
- For long documents, put one sentence per line before comparing; changes are much easier to read.
- Copy the patch format to send the exact changes to a colleague or paste them into a code review.