Boneyard Tools

Text Diff Checker

Paste an original text and a changed text to see a clean line by line diff. Added lines, removed lines and unchanged lines are marked so changes are easy to spot.

How to compare two texts

  1. Paste the original text into the left box.
  2. Paste the changed text into the right box.
  3. Read the combined diff, with added and removed lines highlighted.
  4. Check the summary counts of added, removed and unchanged lines.

Examples

One line edited

line one / line two / line three  vs  line one / line 2 / line three
line two removed, line 2 added, the rest unchanged

Frequently asked questions

How does the diff decide what changed?

It finds the longest common subsequence of lines, the longest run of lines that match in order. Everything outside that run is shown as added or removed.

Why does an edited line show as a remove plus an add?

A diff works on whole lines. A changed line has no exact match, so the old line is marked removed and the new line is marked added.

Does it handle Windows and Mac line endings?

Yes. CRLF, CR and LF endings are normalized first, so the same text with different line endings is not reported as a difference.

Is my text uploaded anywhere?

No. The comparison runs entirely in your browser, so nothing you paste is sent to a server.

Can it compare reordered lines?

Yes. It keeps the longest in-order match, so moved lines show as a removal in one place and an addition in another.

Related tools