Text Compare (Diff Checker)

Find out exactly what changed between two versions of a contract, essay, code snippet or list. Additions are green, deletions red, and changed lines show the individual words that differ.

  • Files stay on your device
  • Free, no sign-up
  • Instant

Processed on your device. Your files are not uploaded to any server.

Quick guide · 3 steps

How to use the Text Compare (Diff Checker)

When to use the Text Compare (Diff Checker)

Contract changes

See exactly what the other side changed between two versions of an agreement.

Editing and feedback

Compare your draft with an edited version to learn from the changes.

Configuration and code

Spot the one changed setting between a working and a broken config file.

Content updates

Check what was updated on a web page or product description.

Features and benefits

  • Line-by-line comparison with line numbers
  • Word-level highlighting inside changed lines
  • Options to ignore case and extra spaces
  • Counts of added, removed and unchanged lines

Example

Input
Original: “Payment is due within 30 days.”
Changed: “Payment is due within 14 days.”
Output
Changed line: Payment is due within [30 → 14] days.

How the Text Compare (Diff Checker) works

Both texts are split into lines and compared with the Myers algorithm, which finds the shortest sequence of insertions and deletions that turns the original into the changed text. When a deleted line is immediately followed by an inserted line, ConvertNest treats them as a changed line, splits both into words, spaces and punctuation, and runs the same algorithm again to highlight the exact words that differ.

A real-life example

Rehan sends a supplier agreement for signature and gets it back “with a few small edits”. He pastes both versions here. Most of the document is identical, but three changed lines stand out: the payment term moved from 30 to 60 days, a late-fee clause was added, and the notice period dropped from three months to one. He negotiates those three points before signing.

Good to know

Comparing by eye is slow and unreliable – a single changed number in a long contract is easy to miss. A diff checker lines the two texts up and marks every difference, so you can review changes in seconds.

ConvertNest uses the Myers difference algorithm, the same method used by Git and most code-review tools, to find the smallest set of line additions and deletions. When a removed line is directly replaced by an added line, it compares them word by word to show precisely what changed.

“Ignore extra spaces” treats lines that differ only in spacing as the same – useful for text copied from PDFs and emails. “Ignore upper/lower case” is handy for lists and keywords.

Tips for the best results

  1. Paste plain text – formatting from Word does not matter for the comparison.
  2. Use “Ignore extra spaces” for text copied from PDFs.
  3. Swap sides if you put the versions the wrong way round.
  4. For long documents, look at the summary counts first, then scroll to the coloured lines.

Common mistakes to avoid

Comparing re-wrapped paragraphs

If line breaks moved, every line looks changed. Put each paragraph on one line in both versions.

Ignoring case when it matters

In code and passwords, “A” and “a” are different. Leave the option off.

Trusting only the summary

One changed number is easy to miss in the count. Read the highlighted lines.

Text Compare (Diff Checker) – frequently asked questions

Can I compare code?

Yes. Line numbers and the monospace view make it ideal for config files and snippets.

Can I compare Word or PDF files?

Copy the text out of each file and paste it here. For PDFs, use PDF to Text first.

Is there a size limit?

Thousands of lines compare quickly. Very large, very different texts take longer.

Is my text uploaded?

No. The comparison runs entirely in your browser.

Is this the same algorithm as Git?

Git’s default diff is also based on the Myers algorithm.

Can I compare more than two texts?

Compare them in pairs.