Compare two texts line by line

Quick answer: Paste an original and a revised version, then compare to see unchanged, added and removed lines. Optional case, whitespace and NFC matching never edits either original.

Updated

Your text stays in your browser and is never uploaded.

Comparison limits

Up to 50,000 UTF-16 units per side; the product of (lines + 1) on both sides cannot exceed 500,000. Split larger texts into sections.

Check changes in three steps

  1. Paste the original and revised texts in their labeled fields.
  2. Choose any differences to ignore, then press Compare.
  3. Read the Keep/Remove/Add labels and copy or download the comparison report if needed.

Examples you can verify

Replace one line

Before

Hello
Draft

After

Keep: Hello
Remove: Draft
Add: Final version
Ignore case enabled

Before

Hello ↔ HELLO

After

Keep: Hello

Use it to

  • Review edits between two drafts.
  • Spot a missing or extra line after copying a document.
  • Separate real changes from canonically equivalent Unicode accents.

Comparison method and limits

A longest common subsequence (LCS) of lines identifies matching lines and marks deletions and insertions. A changed word marks its whole line as removed and added. This is a line diff, not a character diff; moved lines can appear as removal plus addition.

By default only CRLF, CR and LF line endings are treated alike. Ignore whitespace removes all whitespace within each comparison line: “a b” and “ab” therefore match, while blank lines still matter. Ignore case uses Vietnamese lowercase rules; NFC normalization is opt-in.

Ignored differences show the original text in unchanged lines. The result is a comparison report, not a merged document, and does not establish authenticity or legal validity.

Each side is limited to 50,000 UTF-16 units, and (original lines + 1) × (revised lines + 1) must not exceed 500,000. Split longer texts into sections. These bounds protect memory and responsiveness; your input is never uploaded.

Frequently asked questions

Why do identical-looking accents differ?

One text may use decomposed marks (NFD) while the other uses composed NFC. Enable NFC matching for canonical equivalence, or inspect code points in the Unicode tool.

Can pasted HTML execute?

No. Input is rendered as literal text, never executed as HTML.

Is the comparison saved or shared?

No history is saved and no public content link is created. Copying or downloading a report is a local action you choose.

Practical guides and limitations