All Tools Portfolio

Text Diff
Checker

Paste two versions of a text to see exactly what changed, line by line. Added, removed, and unchanged lines are color-coded, with options to ignore case or whitespace.

Start comparing text
Lines added

0

Lines removed

0

Lines unchanged

0

About the Text Diff Checker

This tool compares two blocks of text line by line and highlights exactly what was added, removed, or left unchanged between them, similar to a version control diff. It is useful for reviewing edits to an article, comparing two versions of a config file, or spotting small changes in long text.

Features

Line-by-line comparison

See exactly which lines were added, removed, or unchanged between two texts.

Ignore case or whitespace

Focus on meaningful changes by ignoring case or whitespace differences.

Change summary stats

See counts of added, removed, and unchanged lines at a glance.

100% client-side

Both texts are compared locally in your browser. Nothing is uploaded.

How It Works

  1. Paste the original text on the left and the changed text on the right.
  2. Optionally enable ignore case or ignore whitespace.
  3. Click Compare to see a color-coded, line-by-line diff.
  4. Copy the diff or download it as a text file.

Example Usage

OriginalChangedDiff result
Hello worldHello there world1 line removed, 1 line added
Line A
Line B
Line A
Line B
Line C
Line C shown in green as added

Frequently Asked Questions

How does this text diff checker compare two texts?

It compares the two texts line by line using a longest common subsequence algorithm, then marks lines as added, removed, or unchanged based on where they appear in each version.

What do the colors in the diff mean?

Lines highlighted in red with a minus sign were only in the original text. Lines highlighted in green with a plus sign were only in the changed text. Lines with no highlight appear in both.

Can I ignore case or whitespace differences?

Yes. Enable "Ignore case" to treat uppercase and lowercase letters as equal, or "Ignore whitespace" to ignore leading, trailing, and repeated spaces when comparing lines.

Does this compare word by word or line by line?

This tool compares text line by line, which is the most common and readable way to review changes between two versions of a document, config file, or paragraph.

Is there a limit to how much text I can compare?

There is no hard limit, but the comparison algorithm can slow down on very large documents with several thousand lines, since it checks combinations of lines from both texts.

Is my text uploaded anywhere?

No. The comparison runs entirely in your browser using client-side JavaScript. Nothing you paste is sent to a server.

Related Tools