Skip to content

Compare two texts

Paste two versions of a text to see exactly what was added and removed, highlighted line by line, word by word or character by character.

  • Free, no limits
  • No sign-up
Everything happens in your browser; your data is never uploaded.
  • ✓ Free
  • ✓ No sign-up
  • ✓ Nothing uploaded

Next step

What to do next

How to use it

  1. Paste the original text on the left.
  2. Paste the changed text on the right.
  3. Choose to compare by line, word or character.
  4. Click Compare and review the highlighted differences.
Try it now

How to read the result

After you click Compare, the tool shows one combined view:

  • Green marks text that was added in the changed version.
  • Red with strikethrough marks text that was removed.
  • Everything else is unchanged.

Above it you see the totals, for example +12 added −7 removed (words). If nothing changed, the tool tells you the two texts are identical.

Moved text has no special marking: a sentence that moved to another place shows up as removed in one spot and added in another.

Line, word or character

ModeBest for
LineCode, lists, config files, CSV data, poems
WordEssays, articles, contracts, emails
CharacterShort strings: names, IDs, URLs, typos

In line mode, each line is shown on its own row with a + or − sign, much like a code diff. Word mode treats words, spaces and punctuation marks as separate pieces, so a changed comma doesn't mark the whole word. Character mode finds the smallest changes, such as a single swapped letter in a product code; for very long texts it's limited and the tool will ask you to use word or line mode instead.

The comparison uses the Myers diff algorithm, the same approach used by Git and many other diff tools, which finds the smallest set of additions and removals that turns one text into the other.

A worked example

Original: The meeting is on Monday at 10 a.m. in Room 4.

Changed: The meeting is on Tuesday at 10:30 a.m. in Room 4B.

In word mode, Monday is shown as removed and Tuesday as added. The time shows 10 kept, with : and 30 added, because the tool splits numbers and punctuation into separate pieces. 4 is removed and 4B added, since 4B is a single word. In character mode, you'd see just Mon → Tues, :30 added and B added, which is the most precise view for short texts.

Pick the mode that matches how you want to review: words for reading, characters for hunting down tiny changes.

Options

  • Ignore whitespace. Differences in spaces, tabs and line-end spacing don't count. Useful when one version was reformatted or copied from a PDF.
  • Ignore case. Apple and apple are treated as equal.
  • Swap exchanges the two sides, so additions become removals and vice versa.

The texts are compared in your browser and are never uploaded, so you can safely compare contracts, code and private documents.

Uses

  • Contracts and agreements: see exactly what the other side changed in a new draft.
  • Editing: compare your draft with the editor's version, or a translation with an updated source.
  • Code and configuration: spot the changed line in two versions of a config file.
  • Data: compare two exports of a list line by line. For unordered lists, compare two lists is better, because it ignores order.
  • Plagiarism and copy checks: see how closely a text follows a source.

Tip: when comparing text from PDFs, first fix broken lines with remove line breaks on both versions, so differences in line wrapping don't hide the real changes.

Frequently asked questions

How do I compare two texts for differences?

Paste one version on each side and click Compare. Added text is green, removed text is red and struck through.

Which mode should I use?

Word mode for prose, line mode for code and lists, character mode for short strings.

Can it ignore spacing differences?

Yes. Turn on “Ignore whitespace”.

Is my text uploaded?

No. The comparison runs entirely in your browser.

Does it detect moved paragraphs?

Moved text is shown as a removal in the old position and an addition in the new one.

Last updated: November 12, 2026

Recommended

Similar tools

If Text compare helped, you may need these too.

See all in category →

People also use