Text tool

Text Diff

Compare text line by line with a clear view of additions and removals.

Practical guide

How to use Text Diff

Text Diff compares two versions line by line. It is useful for drafts, configuration snippets, generated output, and notes where a full source-control system would be excessive.

Step by step

  1. Paste the original and updated versions.
  2. Choose whether surrounding whitespace should be ignored.
  3. Compare the texts and read additions, removals, and unchanged line numbers.

Example

InputOriginal: Fast tools Updated: Fast local tools
Result1 removed line; 1 added line

How it works

The tool computes a longest common subsequence of lines, then presents unmatched original lines as removals and unmatched updated lines as additions.

Important limitations

  • A changed line is represented as a removal followed by an addition rather than a character-level edit.
  • Very large comparisons are limited to protect the browser from excessive memory use.

Frequently asked questions

Can it ignore all whitespace?

The current option ignores surrounding whitespace only; internal spaces remain significant.

Does it upload both documents?

No. Comparison is calculated in the active browser tab.