Text Diff – Compare Two Texts and See the Differences

<

Text Diff

Paste an old and a new version of a text. The tool shows what was removed and what was added.

Your text is compared in your browser and is never uploaded.

How to compare two texts

  1. Paste the old text on the left and the new text on the right.
  2. Choose to compare by lines or by words. Lines suit code, lists and settings files. Words suit sentences and paragraphs.
  3. Tick the options if capital letters or extra spaces should be ignored.
  4. Press Compare. Removed parts are shown in red with a minus sign, and added parts in green with a plus sign.

What a diff tells you

A diff finds the longest set of parts that both texts share, and treats everything else as a change. This is the same idea that tools such as Git use. It helps you see what an editor changed in your essay, what differs between two versions of a contract or letter, which lines of a configuration file were edited, or whether two lists are really the same. The tool marks only what really differs, so you do not have to read both texts line by line.

Tips and limits

  • If a moved paragraph is shown as removed in one place and added in another, that is how a simple diff treats a move.
  • Up to 3000 lines or 3000 words can be compared on each side.
  • To compare two PDF documents, use Compare PDF. To remove repeated lines, try Remove Duplicate Lines.
  • To check how long a text is, use the Word Counter.

Questions about text comparison

Is my text uploaded? No. The comparison runs in your browser, so private documents stay on your device.

Why does one small edit mark a whole line? In line mode a line counts as changed if any character in it differs. Switch to words to see the exact changed words.

Does it work with Urdu or other languages? Yes. It compares any text, in any language. Word mode splits words at spaces.