Text Compare

Paste two versions of a text to see every line that was added, removed or changed.

Changes–
Lines added–
Lines removed–
Similarity–

How to compare two texts

  1. Paste the original version in the left box and the changed version in the right box.
  2. The differences appear instantly below. Removed lines are red, added lines are green, and within a changed line the exact words that differ are highlighted.
  3. Turn on Ignore extra spaces or Ignore case to hide differences that don't matter to you.

Everything runs in your browser. Your text is never uploaded, so it is safe to compare contracts, code, drafts and other private documents.

How the comparison works

The tool uses the same approach as programmers' "diff" tools. It finds the longest common subsequence, the largest set of lines that appear in both texts in the same order. Every line not in that set was either removed from the original or added in the new version. When a removed line is directly followed by an added line, the tool treats it as a modified line and runs a second, word-level comparison to pinpoint what changed.

The similarity score is the share of lines that are unchanged: 2 × unchanged lines ÷ total lines in both texts.

What people use text compare for

  • Writers and editors: see what an editor or co-author changed in a draft.
  • Legal and business: spot edits between two versions of a contract, policy or proposal.
  • Developers: compare config files, API responses, logs or code snippets without opening an IDE.
  • Students and teachers: compare revisions of an essay.
  • Data checks: find which rows differ between two exported lists.

Tips for better comparisons

  • Comparisons are line by line. If one version is a single long paragraph and the other is split into lines, put each sentence on its own line first.
  • Copying from PDFs and word processors can add invisible spacing differences. Use "Ignore extra spaces".
  • To compare lists regardless of order, sort both lists first.

Text compare vs plagiarism checkers

This tool compares two texts you supply. It does not search the web or other documents, so it is not a plagiarism checker. It is ideal when you already have both versions and want to see exactly what changed.

Frequently asked questions

Is my text uploaded anywhere?

No. The comparison runs entirely in your browser, and nothing you paste is sent to a server.

Can I compare code with this tool?

Yes. It compares line by line like a code diff tool, and highlights changed words within lines.

How do I ignore whitespace differences?

Tick "Ignore extra spaces". Lines that differ only in spacing are then treated as identical.

How large a text can I compare?

Up to a few thousand lines per side works smoothly in most browsers. Very large files are better handled by desktop diff tools.

Last updated December 2, 2026.