How to use the Text & Code Diff Checker
- Paste the original text on the left and the changed text on the right.
- Choose unified view (one column) or split view (side by side).
- Turn on Ignore whitespace or Ignore case if those differences do not matter to you.
- Read the highlighted additions and removals, and copy the diff if you need to share it.
How it works
The checker uses Myers' diff algorithm, the same approach used by git diff. It finds the largest set of lines that appear in both texts in the same order, and marks every other line as removed from the original or added in the changed version.
The result is the smallest possible number of added and removed lines that turns one text into the other, so unchanged lines are never reported as changes.
Worked example: comparing two versions of meeting notes
In the sample, the attendee line gains a name, the launch date changes from 15 to 22 April, the review moves from two weeks to one week, and a new action line is added. Unchanged lines such as the budget stay unmarked, so the reader sees only what changed.
Limitations
- Comparison is line by line. A small change inside a long line marks the whole line as changed.
- Very large inputs, tens of thousands of lines, can take noticeable time to compare.
- Moved blocks are shown as a removal in one place and an addition in another.
Frequently asked questions
How do I compare two files?
Open each file, copy its contents into the two boxes, and the differences are highlighted immediately.
Why are lines marked as changed when they look the same?
Usually invisible differences: trailing spaces, tabs versus spaces, or different line endings. Turn on Ignore whitespace.
Is my text stored?
No. It is compared in your browser and not uploaded.