Text & Code Diff Checker

Compare two versions of text or code line by line and see exactly what was added, removed, or changed, in a unified or side-by-side view. Comparison happens in your browser.

  • Free, no signup
  • Runs in your browser
  • Reviewed October 14, 2026
Original Text (Before)139 chars
Modified Text (After)183 chars

Comparison Results

+4 added-3 removed
11 Meeting notes, 3 March
2-Attendees: Priya, Tom, Lena
3-Decision: launch the beta on 15 April.
2+Attendees: Priya, Tom, Lena, Omar
3+Decision: launch the beta on 22 April.
44 Budget approved: 4,000.
5-Next review in two weeks.
5+Next review in one week.
6+Omar to prepare the release checklist.

How to use the Text & Code Diff Checker

  1. Paste the original text on the left and the changed text on the right.
  2. Choose unified view (one column) or split view (side by side).
  3. Turn on Ignore whitespace or Ignore case if those differences do not matter to you.
  4. 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.

Related guides

Suggestions welcome

Need a tool that is not here yet?

Tell us what you are trying to do. Requests and bug reports shape what we build next.

Suggest a tool