Text Compare – Find the Difference Between Two Texts

Compare two texts line by line and see exactly what was added or removed. Works for code, config files, letters and lists.

Original text

Empty

Changed text

Empty

Differences

The differences will appear here.
Not compared yet

What Is a Text Compare Tool?

A text compare tool (also called a diff checker) shows the differences between two versions of a text. Lines that were added are green, lines that were removed are red, and unchanged lines stay plain, each with its old and new line number.

How to Compare Two Texts

  1. Paste the original text on the left and the changed text on the right, or drop a file on each box.
  2. Click Compare Text, or press Ctrl + Enter.
  3. Turn on Only show changes to hide the lines that are the same.
  4. Use Ignore case or Ignore extra spaces to skip small differences.

Features

  • Line-by-line comparison with old and new line numbers.
  • Added and removed lines in clear colors.
  • Options to ignore case and extra spaces.
  • Works with code, CSV, logs, config files and normal text.
  • Runs in your browser. Your text is never uploaded.

How to Read the Result

Lines that exist only in the original text are marked as removed, lines that exist only in the changed text are marked as added, and lines that are the same in both stay plain. A changed line shows up as a pair: the new version marked as added and the old version marked as removed, right next to each other, so the difference is easy to spot.

When to Ignore Case or Spaces

  • Ignore extra spaces when comparing code or text that was re-indented, so only real changes are shown.
  • Ignore case when comparing lists of names, emails or keywords where Apple and apple mean the same thing.
  • Leave both off when every character matters, for example passwords in a config file or exact legal text.

Common Uses

  • Find what changed between two versions of an article, contract or email.
  • Compare two log files to spot a new error.
  • Check a config file on your computer against the one on a server.
  • Review code changes when you are not using Git.

Comparing JSON? Use JSON Compare instead: it ignores formatting and key order and shows the exact path of each change, which a line-by-line diff cannot do.

Frequently Asked Questions

What does the text compare tool do?

It compares two texts line by line and shows which lines were added, removed or stayed the same, with line numbers.

Can I ignore spaces or upper and lower case?

Yes. Turn on Ignore spaces or Ignore case to skip differences you do not care about.

Is there a size limit?

It works best with texts up to a few thousand lines each. Very large texts may take a moment to compare.

Is my text uploaded?

No. The comparison runs in your browser and your text never leaves your device.

Related Tools