Diff Checker

Inputs

Results

Result
—
Removed
—
Added
—

Removed text is struck through in red; added text is underlined in green.

A diff shows what changed between two versions of a text: which parts were removed and which were added. Use it to check edits to a contract or essay, compare two versions of a list or config, or find the one word someone changed.

How to use it

  1. Paste the original and the changed text.
  2. Choose to compare by lines (code, lists), words (prose) or characters (short strings).
  3. Read the changes: struck-through red was removed, underlined green was added.

Example: comparing “the quick brown fox” with “the slow brown dog” by words shows 2 words removed (quick, fox) and 2 added (slow, dog).

Questions and answers

Which comparison mode should I use?

Lines for code, lists and data, where each line is one item. Words for normal writing. Characters for short values like IDs or URLs, where one letter matters.

How does it find the changes?

It uses Myers’ diff algorithm, the one behind many version control tools, which finds the smallest set of removals and additions that turns the first text into the second.

Is there a size limit?

Texts up to about 30,000 words or lines combined. Very different long texts can take too long to compare; the tool then says so instead of freezing the page.

Link with pre-filled values

Add # and these parameters to the end of this page's address to open the tool with values already filled in.

ParameterWhat it sets
aThe original text.
bThe changed text.
modelines, words or chars.
casefalse to ignore differences in upper and lower case.

Example: https://toolabelle.com/diff-checker/#a=the+quick+brown+fox&b=the+slow+brown+dog&mode=words&case=true

Related tools