Text compare

Compare the original and the revised text line by line to see additions, deletions and changes. Everything runs inside this browser.

Compare options

Original

Revised

Your input is never saved or sent.

Enter both texts and press Compare.

How to use Text Compare

Use it to see what changed between two versions of a draft, a config file, code or a translation.

  1. Paste the original on the left and the revised text on the right.
  2. Pick the whitespace or letter-case options if needed and press Compare. Ctrl+Enter (⌘+Enter on Mac) also works.
  3. A + line is an addition and a − line is a deletion. Inside changed lines, the differing words or characters are highlighted.
  4. Copy the unified format to paste into a code review or a note.

Limits

FAQ

Is my input sent to a server?

No. The comparison runs only inside this browser and your input and result are neither saved nor sent. They disappear when you reload.

How do “Ignore whitespace differences” and “Ignore trailing whitespace” differ?

Ignoring whitespace differences treats runs of spaces inside a line as one and also ignores spaces at both ends. Ignoring trailing whitespace ignores only spaces and tabs at the end of a line, so indentation differences are still shown.

Can I use it if I have trouble telling colors apart?

Yes. Added lines carry a + sign and deleted lines a − sign, and changed parts inside a line are underlined or struck through. Screen readers announce the type of each line.

What is the unified format?

It is the standard change-list format used by diff and Git. Under each hunk header starting with @@ you see the changed lines plus 3 lines of context; a leading − means deleted and + means added.