Text utilities

Compare Text

Compare two texts line by line and highlight additions and removals with a readable diff.

Text stays in your browserCopy your result

Input workspace

Runs on your device

OUTPUT WORKSPACE

Your result

Let’s calculate.

Use the Calculate button to see your result.

Your content is processed locally.

How to use this tool

  1. Enter original text, updated text.
  2. Select Update result to view the result.
  3. Check the method and assumptions below before using the result.

The method, explained

Use a longest-common-subsequence comparison. Prefix added lines with +, removed lines with −, and unchanged lines with spaces.

A WORKED EXAMPLE

Changing Old line to New line creates one removal and one addition.

What to keep in mind

Whitespace and capitalization matter. Input line-count product is limited to 250,000 to keep the browser responsive.

Common questions

How does this tool handle my input?

Processing happens in your browser. Your pasted content is not uploaded, included in URLs or stored as a calculation history.

What input should I use?

Original text: use the example already shown, then replace it with your own content. Whitespace and capitalization matter. Input line-count product is limited to 250,000 to keep the browser responsive.

Methodology maintained by ClarityKit. How these tools are built and checked.