Text Diff
NewCompare two texts line by line and see exactly what changed.
- Runs in your browser
- Text
How to use the Text Diff
- 1Paste the original text on the left and the changed text on the right.
- 2Read the result: red lines were removed, green lines were added, with line numbers from both sides.
- 3Turn on Ignore whitespace or Changes only to cut the noise.
Questions
How are differences found?
With a longest-common-subsequence line diff, the same idea behind git diff. Removed lines are listed before added ones.
Is there a size limit?
Identical lines at the start and end are skipped first. After that, up to 4,000 changed lines per side can be compared.
Can I compare files?
Open them in your editor and paste the contents. No. Everything runs in your browser with JavaScript. Nothing you type or paste is sent to a server.