FixThatApp

Text Diff Checker Guide: Compare Two Versions of Any Text

Updated March 19, 2026

A text diff checker compares two pieces of text and highlights exactly what changed between them — additions, deletions, and unchanged content. This is useful far beyond software development: comparing contract versions, checking what changed in a configuration file, verifying a translation, proofreading document revisions, or spotting unauthorised changes to a policy document.

How Diff Algorithms Work

The most widely-used diff algorithm is the Myers algorithm, published in 1986, which finds the shortest edit sequence to transform one text into another. It works by finding the Longest Common Subsequence (LCS) — the longest sequence of lines that appear in both texts in the same order. Everything not in the LCS is either an addition or a deletion.

Modern diff tools refine this with heuristics that produce more human-readable output — for example, preferring to show a whole paragraph as replaced rather than a complex interleaving of small additions and deletions.

Reading a Diff Output

In the standard unified diff format used by git diff and most command-line tools:

--- original.txt
+++ modified.txt
@@ -3,7 +3,7 @@
 This line is unchanged.
-This line was removed.
+This line was added.
 This line is also unchanged.
SymbolMeaningVisual colour (most tools)
-Line exists in original but not in newRed
+Line exists in new but not in originalGreen
(space)Line is unchanged — shown for contextWhite / neutral
@@Hunk header showing line number contextBlue / cyan

The @@ -3,7 +3,7 @@ notation means: starting at line 3 of the original, 7 lines shown; starting at line 3 of the modified version, 7 lines shown.

Line-Level vs Word-Level vs Character-Level Diff

Most diff tools operate at the line level by default — a line either exists or it doesn't. But for prose documents, a line-level diff is often too coarse. If one sentence in a paragraph was edited, the whole paragraph shows as a deletion+addition. Word-level and character-level diffs are much more useful for natural language text.

ModeBest forExample showing change
Line-levelCode, configs, logsEntire changed line highlighted
Word-levelProse, contracts, documentationChanged words highlighted within lines
Character-levelSpotting typo fixes, single-char editsIndividual changed characters highlighted
For document comparison, word-level diff is usually most useful

When comparing a legal document, policy, or article, use the word-level diff view. Line-level diff will show entire paragraphs as changed even when only one phrase was altered, making it much harder to find the actual changes.

Common Use Cases

Comparing Contract or Legal Document Versions

Before signing a contract revision, paste the previous version and the new version into a diff checker. This quickly reveals every change the other party made — including subtle wording changes that might be easy to miss when reading manually.

Verifying Configuration Changes

When a server config or application settings file is changed, diffing the old version against the new one confirms exactly what was modified. This is especially useful when troubleshooting — if a service broke after a config update, the diff shows precisely what changed.

Proofreading After Edits

After a document goes through multiple rounds of editing, a diff shows exactly what changed between drafts. This helps editors confirm that only the intended changes were made and that no content was accidentally deleted.

Checking Translation Accuracy

When the source text of a document changes slightly, a diff of the old vs new source helps translators identify exactly which sentences need updating in the target language, without re-translating the entire document.

Compare Any Two Texts Instantly

Paste the original and modified versions to see all additions, deletions, and unchanged lines highlighted side-by-side.

Open the Text Diff Checker

How to Use the Text Diff Checker Tool

  1. Open the Text Diff Checker
  2. Paste the original text into the left panel
  3. Paste the modified/new text into the right panel
  4. Click Compare — additions are highlighted green, deletions red, unchanged text neutral
  5. Toggle between side-by-side and unified views depending on your preference
  6. Use the word-level diff option for prose documents

When to Use git diff Instead

For source code that is tracked in a git repository, git diff is the right tool — it knows the file history and can compare any two commits, branches, or the working directory against staged changes. The online text diff checker is better suited for: