Diff checker: compare two texts

Paste an original and a changed text to see exactly what was added and removed, by line or by word, side by side or inline, with counts of the changes.

  • Free
  • No sign-up
  • Runs in your browser

Both texts stay in your browser. Each text can have up to 300,000 characters. Additions are shown with + and green, removals with − and red.

Runs in your browser — your text is never sent to our servers.

How to use Diff Checker

  1. Paste the original text on the left and the changed text on the right.
  2. Choose to compare by lines or by words, and a side-by-side or inline view.
  3. Optionally ignore case or leading and trailing spaces.
  4. Read the counts and the highlighted differences; use Swap texts to reverse the comparison.

Features

  • Line diff and word diff
  • Side-by-side view with line numbers, or inline view
  • Counts of lines or words added and removed
  • Options to ignore case and leading or trailing spaces
  • Additions and removals marked with + and − as well as color
  • Runs in your browser, so neither text is uploaded

Supported formats and limits

  • Maximum input: 300,000 characters

Examples

InputResult
Original: line one / line two / line three Changed: line one / line 2 / line three / line four+3 lines added · −2 line removed
the quick brown fox the slow brown dog (by words)+2 words added · −2 words removed

Limitations

  • Each text can have up to 300,000 characters.
  • "Ignore leading and trailing spaces" applies to line comparison only; spaces inside a line still count as differences.
  • The tool compares plain text. It does not understand the structure of JSON, code or documents.

Learn more

A diff is a description of how to turn one text into another using the fewest additions and removals. The best-known algorithm was published by Eugene Myers in 1986 and underlies tools such as Unix diff and the version control systems developers use every day.

What counts as a "unit" changes the result. Comparing by lines treats each line as one item, which is how code is usually reviewed: a line with one changed character is shown as one line removed and one added. Comparing by words breaks the text into words and spaces, so a small edit inside a sentence shows up as just the words that changed.

A diff shows differences, not the reason for them. Moved blocks appear as a removal in one place and an addition in another, and changes in line endings or invisible spaces can produce differences you cannot see, which is why the ignore options are useful when comparing text from different systems.

Frequently asked questions

What is the difference between line and word comparison?

Line comparison marks whole lines as added or removed, like a code review. Word comparison marks individual words, which suits prose where a sentence changed slightly.

How do I compare two versions of a document?

Paste the old version as the original and the new version as the changed text. Additions are green with a +, removals are red with a −.

Does it ignore whitespace?

Optionally. You can ignore case, and for line comparison you can ignore leading and trailing spaces on each line.

Are my texts uploaded?

No. The comparison runs in your browser.

Sources

Last reviewed: September 30, 2026