Diff Checker (Compare Text)

Compare two texts or code files line by line, with changed words highlighted, line numbers and a copyable unified diff.

How it works

Paste the old text on the left and the new text on the right. The tool finds the longest run of lines the two versions share (the same idea Git uses) and marks everything else: red lines were removed, green lines were added. When one line was edited, the exact words that changed are highlighted inside the line.

Use the options to ignore case or spacing, hide blank lines, or show only the changes with a few lines around them. Copy the unified diff to paste into a review or an email.

Worked example

Old: "total = price * qty" and new: "total = price * qty + tax". The tool shows one removed line and one added line, and highlights "+ tax" inside the green line.

Good to know

Common questions

Is this the same as git diff?
It uses the same kind of algorithm (longest common subsequence) and the same +/- notation, but it compares two pasted texts, not files in a repository.
Why is a line shown as removed and added instead of changed?
Line diffs only know same, added and removed. Changed lines are shown as a removed and an added pair, with the changed words highlighted.
How large a file can I compare?
Up to 1500 lines on each side. Split larger files into parts.
Does it check plagiarism?
No. It only shows the differences between two texts you paste. It does not search the web.

More in Developer.