Text Diff Checker
Compare two blocks of text and see additions, deletions, and changes highlighted. Side-by-side or inline view.
Runs in your browser. No data leaves your device.
Frequently Asked Questions
How does the Text Diff Checker work?
The tool runs a longest-common-subsequence (LCS) diff algorithm on the two texts, comparing line by line. It identifies insertions, deletions, and modifications by finding the minimal set of edits needed to transform one text into the other. Changed lines are further analyzed at the character level to highlight exactly which words or characters differ within each modified line.
Can I compare code files?
Yes. The diff tool works with any text, including source code, configuration files, and documents. It treats the input as plain text and compares line by line.