Text Compare

Compare two blocks of text and see exactly what changed line by line. The diff checker highlights removed and added lines so you can spot edits, duplicates, and differences between two versions instantly.

Whether you call it text compare or diff checker, this free tool handles it instantly in your browser.

19 chars3 words
19 characters, 3 words
Live preview
3 removed, 1 added - apple - banana - cherry +

Example usage

Example input

apple banana cherry

Example output

1 removed, 1 added apple - banana + blueberry cherry

Batch Processing

Enter multiple inputs, one per line. Each line will be processed separately.

Why this tool?

Everything runs right in your browser — no uploads, no sign-up, no waiting. Your text never leaves your device.

Quick tips

  • Outputs update live as you type.
  • Use the sticky copy button to grab results quickly.
  • Bookmark this page for fast access.

More like this

Discover related tools and step-by-step guides for this kind of task.

See all related tools

How it works

  • Paste the original text into the first box.
  • Paste the version you want to compare into the second box.
  • The tool shows unchanged lines, removed lines (-), and added lines (+).

Use cases

Spot changes between two drafts of an article or document.
Compare two lists to find what was added or removed.
Check edits between versions of code or configuration.
Find duplicate or differing lines across two sources.

How diff algorithms find what changed

This tool uses the same core idea as programming diff tools: the longest common subsequence (LCS). It finds the largest set of lines the two texts share in order, then marks everything outside that set as removed (-) or added (+). This is why a single edited line shows as one removal plus one addition — the algorithm sees an old line that vanished and a new line that appeared.

Line-based comparison is the sweet spot for most real work: it is precise enough to pinpoint changes and coarse enough to stay readable. For prose, putting each sentence on its own line before comparing gives you sentence-level precision.

Practical comparison workflows

Common uses: verifying which requirements changed between two versions of a client brief, checking what a colleague edited in a shared document when track-changes was off, comparing two exported configuration files, and confirming that a pasted backup matches the original. For list reconciliation — which emails are in list A but not list B — sort both lists first (our Alphabetical Order tool) so the diff aligns matching lines instead of flagging ordering differences.

Cleanup

Explore all text cleanup tools

Browse every tool for this kind of task, along with helpful guides that show you how to get the most out of them.

Browse Cleanup

Related tools

Conversion History

Loading...

FAQ

How does the text compare tool work?

It compares the two texts line by line using a longest-common-subsequence diff, then marks each line as unchanged, removed, or added.

What do the - and + symbols mean?

A line starting with "-" exists only in the original text, and a line starting with "+" exists only in the second text. Unchanged lines have no symbol.

Does it compare word by word?

The comparison is line by line, which works well for lists, paragraphs, and code. Put each item on its own line for the clearest results.