Paste two versions of text or code and see added and removed lines highlighted side by side. Ignore whitespace or case. Runs in your browser — nothing is uploaded.
| 1 | const greeting = 'Hello'; | 1 | const greeting = 'Hello'; |
| 2 | − const name = 'World'; | 2 | + const name = 'Dhruv'; |
| 3 | − console.log(greeting + ', ' + name); | 3 | + console.log(`${greeting}, ${name}!`); |
| 4 | + export default greeting; | ||
| 4 | 5 |
It finds the longest common sequence of lines between the two texts, then marks everything else as added or removed — the same idea behind git diff.
It comfortably handles a few thousand lines. Very large files are better compared with git diff or a desktop tool.