Skip to content
Text

Diff Checker

Paste the before and after. Additions and removals are highlighted in place, by line or word, with an option to ignore whitespace and case.

Differences

Nothing to compare yet

Paste text into both boxes and the differences appear here.

About the Diff Checker

Comparing two versions of something by eye does not work. The differences that matter are usually the small ones — a changed digit, a flipped boolean, a word swapped in a paragraph of otherwise identical text — and those are exactly the ones a person reading two columns will miss. A diff finds them mechanically.

This one works at two granularities. Line mode is what you want for code, configuration and data: it shows which lines were added, removed or left alone, which maps onto how those files are actually edited. Word mode is what you want for prose, where a single changed word inside a long paragraph would show up in line mode as the whole paragraph being deleted and a nearly identical one added — technically true and completely useless for reading.

The ignore-whitespace option matters more than it sounds. Re-indenting a block, converting tabs to spaces, or saving a file with different line endings changes every line by the letter while changing nothing at all in meaning. With whitespace ignored, those edits disappear from the diff and only the real changes remain.

The comparison runs entirely in your browser using a standard diff algorithm. Neither side of the comparison is uploaded, which matters here more than on most tools — the two things people most often want to compare are configuration files and contracts.

Frequently asked questions

What is the difference between line mode and word mode?

Line mode marks whole lines as added or removed, which suits code and data. Word mode looks inside the line, which suits prose — a single changed word in a paragraph shows as that one word rather than as the whole paragraph being replaced.

Why would I ignore whitespace?

Re-indenting a file, converting tabs to spaces or changing line endings alters every line without changing any meaning. Ignoring whitespace hides those edits so only real changes are left.

Are the two texts uploaded anywhere?

No. The comparison happens in your browser. Nothing is transmitted, which matters because the two things people most often compare are config files and contracts.