Text Compare — Find the Differences Between Two Texts

Compare two versions of a text side by side and see every added and removed line, word or character highlighted.

Free, with no sign-up and no watermark. The file is processed in your browser and never uploaded.

Paste two versions of a text and the Text Diff Checker highlights exactly what changed. Compare by Lines, Words or Characters, view changes Side by side or Inline, and choose to Ignore whitespace or Ignore case.

Changed lines are paired up side by side, and the individual words that changed inside them are highlighted, so small edits are easy to spot.

Step by step

  1. Add both versions: Paste the older text into Original text and the newer one into Changed text — or use Upload file on each side.
  2. Choose how to compare: Under Compare by, pick Lines for documents and code, Words for prose, or Characters for short strings.
  3. Read the result: The summary shows how many lines, words or characters were added, removed and unchanged. Green marks new text, red marks removed text.
  4. Adjust: Tick Ignore whitespace or Ignore case to hide unimportant changes, or click Swap to reverse the two sides.
  5. Save: Click Download diff (.txt) for a plain-text copy of the changes.

Handy for

Document edits

See what someone changed in a contract, essay or policy.

Code review

Compare two versions of a config file or snippet.

Data checks

Spot differences between two lists or exports.

Proofreading

Check that only the intended corrections were made.

Good to know

  • In the downloaded file, line diffs use “+” and “-” prefixes; word and character diffs mark additions as {+…+} and removals as [-…-].

  • Very different, very long texts can take too long to compare by characters — compare by lines instead.

  • Comparing PDFs? Use PDF Diff, which reads the text from both files for you.

Questions

Can I compare two files?

Yes — click Upload file above each box to load a text file into it.

What does “Ignore whitespace” do?

It treats changes in spaces and indentation as no change, which is useful when text has been reformatted.

Is there a size limit?

There’s no fixed limit, but very large texts with many differences may take a few seconds. If a comparison takes too long you’ll see a message suggesting line mode.

Is my text sent anywhere?

No. Everything is processed by your browser on your own device — nothing you type or upload is sent to a server, so it is safe to use with private notes, drafts and work documents.

More Text Tools tools

  • Remove Duplicate Lines — Delete repeated lines from a list while keeping the original order, with case and spacing options.
  • Sort Lines Alphabetically — Sort a list alphabetically, naturally, by number or length, reverse it or shuffle it randomly.
  • Remove Line Breaks — Join text that was broken into short lines — such as text copied from a PDF — while keeping real paragraphs.
  • Remove Extra Spaces — Collapse double spaces, trim lines and remove extra blank lines and odd Unicode spaces in one go.
  • Find and Replace Text — Find words or patterns in text and replace them everywhere, with match highlighting, whole-word and regex options.
  • URL Slug Generator — Turn titles into clean, SEO-friendly URL slugs — accents removed, spaces replaced, length limited.

All Text Tools tools