Skip to content

Text Diff Checker

Compare two texts line by line, word by word or character by character, with highlighted changes.

AvailableRuns in your browserFree · No sign-up

Text Diff Checker

0 lines
0 lines
Compare by
View
Options

“Hello” and “hello” count as the same.

Differences in spaces, tabs and indentation are ignored.

Collapse unchanged lines.

Show line numbers.

Paste two versions of a text to see what changed. Everything runs in your browser; nothing is uploaded.

Your data is processed locally in your browser and is not uploaded to OZVILO servers.

How to use the Text Diff Checker

  1. 1Paste the earlier version into Original Text and the new version into Modified Text.
  2. 2Choose to compare by lines, words or characters, and a side-by-side or unified view.
  3. 3Optionally ignore case or whitespace, or show only the changed lines.
  4. 4Read the summary, then copy or download the unified diff.

Examples

  • Changed line

    Input
    Original: Owner: Sam Modified: Owner: Alex
    Result
    1 modified line · “Sam” → “Alex” highlighted
  • Unified diff

    Input
    one / two / three → one / 2 / three
    Result
    @@ -1,3 +1,3 @@ one -two +2 three

Text Diff Checker features

  • Line, word and character comparison using the Myers shortest-edit algorithm
  • Side-by-side and unified views with line numbers and word-level highlights inside changed lines
  • Ignore case, ignore whitespace and show only changed lines
  • Summary of added, removed, modified and unchanged lines and the number of changed blocks
  • Copy or download a standard unified diff (diff -u format)

Frequently asked questions

How are “modified” lines counted?

Within each block of changes, removed and added lines are paired in order. Each pair counts as one modified line; any extra lines count as added or removed. Word and character modes report added and removed words or characters instead.

Can it handle long documents?

Yes. The comparison runs in your browser and handles tens of thousands of lines. If two texts differ almost everywhere, it may show some areas as whole blocks replaced to stay fast, and it tells you when that happens.

Is my text sent anywhere?

No. Both texts stay in your browser; nothing is uploaded or stored.

What does “ignore whitespace” do?

Spaces, tabs and indentation are ignored when deciding whether lines or words match, like diff -w. The text shown is still your original.