InputTestHub

Text Diff Checker

Compares two texts and highlights every added, removed and changed line or word, side by side.

Text Nothing uploaded No sign-up Free, unlimited
Text tool
Fill in both boxes to compare them.
In short A diff finds what changed between two texts using the longest common subsequence algorithm — the same approach the diff command and git use — and shows every added, removed and changed line. The algorithm works by finding the longest sequence of lines present in both versions in the same order; everything not in that sequence is an addition or a deletion. That is why a diff of a file where one paragraph moved shows it as a deletion in one place and an addition in another rather than as a move: the order changed, so it cannot be part of a common subsequence. Line-level diffing is the default and is right for code and structured text. Word-level diffing is better for prose, where a one-word change would otherwise mark the whole paragraph as rewritten, and the difference in readability is large on an edited document. Two things a diff cannot tell you: which version is correct, and whether a change was intentional. It tells you exactly what differs, which is a smaller and far more reliable claim.

How to use the Text Diff Checker

  1. Paste the original text into the first box.
  2. Paste the version you want to compare into the second box.
  3. Differences are highlighted immediately, line by line and word by word.

About the Text Diff Checker

The Text Diff Checker compares two texts and highlights every added, removed and changed line or word, side by side. It runs as plain JavaScript inside the page, which means there is no upload step, no queue and no size limit imposed by a server — the only limit is your own device.

What people use it for

  • Seeing exactly what an editor changed in your draft.
  • Comparing two versions of a contract or policy.
  • Checking a config file against a known-good copy.

Details

AlgorithmLongest common subsequence, the same approach diff and git use
OutputUnified view with additions, deletions and a change summary

Frequently asked questions

Is there a limit on how often I can use the Text Diff Checker?
Free, unlimited, and no email address required. You can use it a hundred times a day and nothing changes.
Does anything I enter leave my computer?
No. The Text Diff Checker runs entirely in your browser using JavaScript. Your input never reaches inputtesthub.com or any third party — open your browser's Network tab while you use it and you will see no request go out.
What is the Text Diff Checker used for?
The jobs it is built for: seeing exactly what an editor changed in your draft. Comparing two versions of a contract or policy. Checking a config file against a known-good copy. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
What are the reference figures here?
Algorithm is Longest common subsequence, the same approach diff and git use. Output is Unified view with additions, deletions and a change summary. These are printed on the page itself, so you do not have to take them on trust.
Can I use the Text Diff Checker on mobile?
Yes. The page is responsive and the utility works in Chrome, Safari, Firefox, Edge and Samsung Internet on both Android and iOS. There is no app to install and nothing to sign into.

Related text tools

All 92
01

Text Compare

Compare two texts and highlight added or removed words, lines and characters. Review edits and…

02

Word Counter

Counts words, characters, sentences, paragraphs and reading time live as you type, using the…

03

Character Counter

Counts characters with and without spaces and shows live progress against Twitter, SMS, meta…

04

Sentence Counter

Counts sentences in any text and shows average sentence length, longest sentence and how many…

05

Paragraph Counter

Counts paragraphs, shows the word count of each one and flags paragraphs that are too long for…

06

Line Counter

Counts total lines, non-empty lines, duplicate lines and the longest line in any pasted text…

07

Word Frequency Counter

Ranks every word in your text by how often it appears, with stop words removed and one-, two…

10

Syllable Counter

Counts syllables in words, lines and whole texts — useful for haiku, lyrics, poetry metre and…