Skip to content
FreeToolsHub

Text Diff Checker

Compare two texts and highlight additions and deletions.

Loading tool…

Your text stays in your browser. It is not uploaded, saved or analysed by FreeTools Hub, and it disappears when you close or reload the page.

What is the Text Diff Checker?

The Text Diff Checker compares two versions of text and highlights what was added and removed. Compare line by line for documents and code, or word by word for prose edits, with options to ignore case and whitespace.

It uses a longest-common-subsequence algorithm, the same approach behind many version-control diff tools.

Why use it?

Spotting a changed number in a contract, a reworded sentence in an essay or an edited line in a configuration file is hard by eye. A diff shows every change at once.

How to use the Text Diff Checker

  1. Paste the original version on the left and the changed version on the right.
  2. Choose Lines or Words.
  3. Optionally ignore case or whitespace-only differences.
  4. Click Compare and review the highlighted result.

Examples

Contract revision

Paste the old and new clauses and compare by words to see that “30 days” became “14 days”.

Config change

Compare two versions of a settings file line by line; added lines are marked + and removed lines −.

Supported formats and inputs

  • Plain text of any kind, including code.
  • Large texts are supported when the differing section is under about 4 million comparison cells (for example 2,000 × 2,000 changed lines).

Limitations to know about

  • Very long texts that are almost entirely different may exceed the browser comparison limit; compare smaller sections.
  • Moved blocks appear as a removal plus an addition rather than as a move.
  • Formatting such as bold or fonts is not compared — only text.

Privacy

Your text stays in your browser. It is not uploaded, saved or analysed by FreeTools Hub, and it disappears when you close or reload the page.

Frequently asked questions

Can I compare Word or PDF files?

Copy the text out of each document and paste it here. Formatting differences are not detected.

What does “ignore whitespace” do?

Lines that differ only in spacing or indentation are treated as identical.

Is my text compared on a server?

No. The comparison algorithm runs in your browser, so confidential contracts and code never leave your device.

Remove Extra Spaces

Clean double spaces, tabs, blank lines and line breaks.

Word Counter

Words, sentences, paragraphs and reading time.

Regex Tester

Test JavaScript regular expressions with live highlighting.

JSON Formatter

Pretty-print or minify JSON with custom indentation.

Browse all text & seo tools →