Text Compare Tool
Compare two versions of text side by side, highlight line changes, and quickly see what was added, removed, or left untouched.
How to Use
- Paste your original text into the left box and the revised text into the right box.
- Turn on Ignore whitespace if spacing changes should not count as differences.
- Turn on Case-insensitive mode if uppercase and lowercase differences should be treated as a match.
- Click Compare to generate the side-by-side diff view and summary stats.
- Use Swap to reverse the comparison direction or Clear to start over.
Frequently Asked Questions
How does this text compare tool work?
It splits both text blocks into lines and compares each line position side by side. Matching lines stay neutral, removals are highlighted in red, and additions are highlighted in green.
What does ignore whitespace do?
Ignore whitespace collapses repeated spaces and trims leading or trailing spaces before comparing each line. This helps when only spacing or indentation changed.
What does case-insensitive comparison mean?
Case-insensitive comparison treats uppercase and lowercase letters as equal. For example, Hello and hello are considered the same when the toggle is on.
Can I use this as a code diff tool?
Yes, for simple line-by-line checks. It works well for quick comparisons, though it does not do advanced moved-block detection or word-level patch output like a full Git diff viewer.