Skip to content
toolstome

Text compare (diff checker)

Paste two versions of a document, contract, code file or list to see exactly what changed. Additions are highlighted in green and deletions in red, line by line, word by word or character by character. You can ignore differences in letter case or spacing, see how many lines changed, and copy or download a standard unified patch for developers. It works with Sinhala, Tamil and any other language, and both texts stay in your browser.

Free · No sign-upProcessed in your browser

Compare by

How to use the Text Compare (Diff Checker)

  1. 1

    Paste the original

    Put the older or first version in the left box.

  2. 2

    Paste the changed version

    Put the newer version in the right box.

  3. 3

    Choose how to compare

    Compare by lines for documents and code, by words for prose, or by characters for short strings.

  4. 4

    Review the changes

    Green text was added and red, struck-out text was removed. Copy the patch if you need it.

How the comparison works

The tool uses the Myers diff algorithm, the same approach as git and most code review tools, to find the smallest set of insertions and deletions that turns the first text into the second.

Line endings from Windows and Mac/Linux are treated as equal. 'Ignore whitespace' treats runs of spaces and tabs as one space and ignores spaces at line ends; 'ignore case' treats upper and lower case as the same.

  • unchanged · added · removed
  • patch: @@ -line,count +line,count @@

When to use it

  • Check what changed between two drafts of a document or agreement.
  • Review code or configuration changes without a version-control tool.
  • Spot typos or edits in translations and lists.

Limits

  • Up to about 400,000 characters in total, so the page stays fast.
  • Compares plain text only; formatting in Word or PDF files is not compared.

Privacy

Both texts are compared in your browser. Nothing you paste is uploaded or saved.

Frequently asked questions

What does a diff checker do?

It compares two texts and shows exactly which parts were added, removed or left unchanged.

Should I compare by lines, words or characters?

Lines suit code and structured documents, words suit paragraphs of prose, and characters suit short strings such as IDs or names.

Why are some identical-looking lines marked as changed?

They may differ in spaces, tabs or letter case. Tick 'Ignore whitespace' or 'Ignore case' to skip those differences.

What is a unified patch?

A standard text format that lists changed lines with - and + markers. Developers can apply it with git or patch.

Does it work with Sinhala and Tamil?

Yes. Text is compared as Unicode, so any language and script works.

Is my text uploaded?

No. The comparison runs entirely in your browser.

People also use

Last updated November 20, 2026 · How we build and test our tools

Categories

Recently used tools

Tools you open will appear here.

More