Text Diff Checker

Compare two blocks of text line by line and highlight every change.

Ad placeholder (leaderboard)

Text diff checker

The text diff checker compares two versions of text and shows exactly what changed, line by line — added lines in green with a plus sign and removed lines in red with a minus sign, just like a code-review diff. It suits proofreading edits, reviewing config changes, and spotting differences between two pasted documents.

How it works

Both inputs are split into lines and compared with a longest-common-subsequence (LCS) algorithm. The LCS is the largest sequence of lines that appears, in the same order, in both versions; those lines are marked unchanged. Walking through both texts, any line not part of the common sequence is emitted as a deletion (left only) or an insertion (right only), with original and new line numbers shown. Optional ignore case and ignore leading/trailing whitespace modes normalise lines before comparison, so cosmetic differences don’t register, while the original text is still what’s displayed.

Example

Left text:

alpha
beta
gamma

Right text:

alpha
delta
gamma

The diff keeps alpha and gamma as unchanged, marks - beta as removed and + delta as added — a count of 1 removed and 1 added.

The comparison runs entirely in your browser, so neither version is ever uploaded.

Ad placeholder (rectangle)