ToolHive

Text Compare

Paste your original and changed text below to instantly see a line-by-line diff, with added lines highlighted in one color and removed lines in another.

How to use

  1. 1

    Paste the original text

    Add the first version of your text into the left box.

  2. 2

    Paste the changed text

    Add the updated version into the right box.

  3. 3

    Review the diff

    Added and removed lines are highlighted instantly below, with a summary count.

Examples

  • Original: "Hello world" → Changed: "Hello there world" → 1 line removed, 1 line added
  • Comparing two paragraphs with one sentence edited highlights just that line

Frequently asked questions

How does the comparison work?

The tool compares the two texts line by line using a longest-common-subsequence algorithm, the same approach used by most code diff tools, to find the smallest set of additions and removals.

Does it compare word-by-word or line-by-line?

This tool compares line-by-line. If a single word changes within a long line, the whole line is marked as removed and the updated version as added.

What do the + and − symbols mean?

A + prefix and highlight marks a line that's present only in the changed text. A − prefix and highlight marks a line that's present only in the original text. Unmarked lines are unchanged.

Is my text stored anywhere?

No. The comparison runs entirely in your browser. Nothing is sent to a server or saved.

Related tools

← Back to Text Tools