Text Diff
Compare two blocks of text and see exactly what changed — lines only in A are marked '-', lines only in B are marked '+', and lines present in both are left alone. It aligns the two versions properly (the same longest-common-subsequence method the real diff command uses), so inserting a line near the top marks that one line, not everything after it. Good for configs, logs, contracts and drafts.
Try it now
Worked example
Learn the method
Inputs
- Text A
line one line two line three - Text B
line one line 2 line three line four
Frequently asked
Is it a word-level diff?
No — it works a whole line at a time. A line with one word changed shows as one removal plus one addition rather than highlighting the word.
Does it handle inserted or deleted lines?
Yes, properly. It finds the longest run of lines the two texts share in order and treats everything else as an insertion or a deletion, so a line added at the top costs you one marked line rather than marking the rest of the file.
Is there a size limit?
The alignment work grows with the size of the DIFFERENCE, not the file, so a long document with a small edit is fine. Two texts that differ across more than a couple of thousand lines each are refused with a note rather than locking up your browser.
Is anything sent anywhere?
No, both texts stay on your device.