Diff checker

Paste two versions of a text and see every line, word or character that changed.

0Added
0Removed
0Unchanged

Runs in your browser. Nothing you type is sent anywhere.

How to compare two texts

  1. Paste the original text on the left and the changed text on the right.
  2. Pick line, word or character mode, and side by side or inline view.
  3. Review the highlighted additions and removals and the change counts.

Line, word and character mode compared

LineWordCharacter
Best forCode, config files, listsProse and sentencesTypos, single-letter edits
A spacing-only changeFlags the whole lineIgnored, spacing is collapsedFlags each extra space
A case-only change (cat vs Cat)Flags the whole lineFlags just that wordFlags just that letter

Word mode treats "foo bar" and "foo bar" as identical, since it collapses runs of whitespace before comparing. Line mode still flags that line as changed, since the two lines aren't byte for byte the same, and character mode shows exactly which extra spaces were removed.

Reading the highlighted result

  • Side by side shows the original on the left and the changed version on the right, each with its own highlights, which is easiest for comparing two full documents.
  • Inline weaves both versions into one column, with removals and additions next to each other, which is easier for spotting a single small change.
  • The three counts above the result (added, removed, unchanged) total up every line, word or character depending on which mode is active, not the number of separate edits.

When two texts look identical but aren't

A trailing space, a curly quote swapped for a straight one, or a Windows line ending mixed with a Mac one can make two texts that look the same on screen show up as different everywhere in character mode.

Character mode is the most sensitive way to catch this kind of invisible difference, since line and word mode can both gloss over a change that doesn't affect a whole line or a whole word.

Diff checker FAQ

What is the difference between line and word mode?

Line mode marks whole lines as added or removed, which is best for code and lists. Word mode marks only the words that changed inside a line, which is easier to read for prose.

How big a text can I compare?

There is no hard limit, but comparisons over 200,000 characters per side are trimmed to that amount to keep the page responsive.

Is this the same as a Git diff?

It compares raw text the same way, but it does not read files, folders or Git history. Paste the two versions you want to compare.

Are my documents uploaded anywhere?

No. Both text boxes are compared in your browser and nothing is sent to a server.

Can I compare two files?

Open each file in a text editor, copy its contents and paste one version into each box here.

Does capitalization count as a difference?

Yes, in all three modes. Cat and cat are treated as different text in line, word and character mode unless you edit one of them to match.

Which mode should I use for comparing code?

Line mode. Most real edits to code replace a whole line, and word mode gets noisy on code because of the punctuation, braces and indentation between real words.

Can I compare more than two versions at once?

No, this tool compares exactly two texts at a time. To check three or more versions, compare them one pair at a time, swapping in the next version after each check.

Related tools