Compare two texts

Text Diff compares two blocks of text and marks what was added, removed or left alone. Switch between line and word mode to find a changed comma in a contract or a rewritten paragraph.

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

Runs entirely in your browser — nothing you enter is uploaded.

How to use Text Diff

Three steps, about a minute.

  1. 1

    Paste both versions

    Original on the left, changed on the right.

  2. 2

    Pick a mode

    Lines for code and lists, words for prose.

  3. 3

    Review

    Every change is highlighted with a count.

Text Diff questions

Can I compare two files?

Yes — drop a .txt file into either box and its contents are read locally.

Which mode should I use?

Line mode for code, config and lists. Word mode for prose, where a whole line changing is less useful than seeing the words that moved.

Is there a size limit?

No hard limit, but a very large diff is slow to lay out. A few thousand lines is comfortable.

Other tools