Text Diff Checker

Compare two versions of text or code side by side or as a unified diff. See changed lines and inline word highlights, with every comparison kept in your browser.

Gustavo, the stone gargoyle mascot, head and shoulders with a knowing grin
0 lines · 0 characters
0 lines · 0 characters
View
Comparison options
Added lines +0 Removed lines −0 Unchanged lines 0

Enter text in both boxes to compare.

Notes

Lines are matched first. Adjacent removed and added lines are paired, with inline word and token highlights to make edits easier to spot.

Ignore case treats uppercase and lowercase as equal. Ignore extra whitespace trims line edges and collapses runs of whitespace before comparison; the displayed text remains unchanged.

Show only changes hides unchanged line groups behind a count. Pasted text and locally loaded files are compared in your browser and are never uploaded or saved.

Frequently asked questions

How does the text diff checker find changes?

It aligns matching lines first, then marks removed and added lines. Adjacent changed lines are paired so inline word or token changes can be highlighted.

What do the case and whitespace options ignore?

Ignore case makes letter case irrelevant. Ignore extra whitespace trims the start and end of each line and treats consecutive whitespace as one space; whitespace is still shown as entered.

Does my text leave my browser?

No. The comparison runs locally in this browser. Text is not sent to a server or saved in browser storage.