Free Online ToolsMFXGJ

Text Diff Checker

Two versions of a document, a config file or a price list — what actually changed? Paste the original on the left and the new version on the right to get a line-by-line diff: removed lines in red, added lines in green, unchanged lines in plain text, with counts for each. Options let you ignore whitespace or letter case.

Paste two texts and select Compare to see the differences here.

Share this tool

How to use the Text Diff Checker

  1. Paste the original text into the left box and the new version into the right box.
  2. Optionally tick “Ignore whitespace” or “Ignore case”.
  3. Select “Compare” and read the highlighted differences.

Formula and method

The comparison uses a longest-common-subsequence (LCS) line diff: lines present in both texts in the same order are “unchanged”; lines only in the original are “removed”; lines only in the new version are “added”. Each text may have up to 2,000 lines.

Example

Comparing “price: 89.9” with “price: 79.9” marks the first line removed and the second added. Use the “Load example” button above to try it with the sample inputs.

Frequently asked questions

Is my text uploaded?

No. The diff is computed in your browser; neither text leaves your device, which makes it safe for drafts and internal documents.

What does “Ignore whitespace” do?

Lines that differ only in spaces or tabs are treated as identical — useful when comparing code that was re-indented.

Why is a moved paragraph shown as removed and added?

A line diff has no concept of “moved”: a block that changed position appears as a removal at the old place and an addition at the new place.

Related tools