Skip to content

Text Difference

Compare two texts and identify added or removed lines.

Your input is processed locally in your browser. It is not saved, logged, or sent with analytics.

0 chars
0 chars
Run: Ctrl/⌘ + Enter · Clear: Ctrl/⌘ + Shift + X

Line differences

Enter a value to begin.

What this calculator does

Produce an accessible line-by-line difference with additions, removals, and summary totals.

Inputs and what they mean

Original text
text value.
Changed text
text value.

How to use it

  1. Paste or enter content in the editor.
  2. Adjust any options for the result you need.
  3. Copy or download the locally processed output.

Formula

Uses a longest-common-subsequence line comparison. Added lines use + and removed lines use −, so meaning never depends on color alone.

Worked example

Compare two revisions

See one removed line and one added line with clear symbols.

Reading the result

The line differences appears in the output box and can be copied straight out. Nothing you paste leaves your browser.

Limitations and assumptions

Results depend entirely on the figures you enter and are rounded for display. They are for general information and education, not professional advice.

Common questions

Related tools

Count words, characters, sentences and paragraphs.

Text Tools

Count Unicode characters, bytes, lines and words.

Text Tools

Count sentences and average words per sentence.

Text Tools

Estimate reading time at a chosen reading speed.

Text Tools

Convert text among common writing and code cases.

Text Tools

Remove repeated lines while preserving their first occurrence.

Text Tools