Text Diff / Compare
How to use Text Diff / Compare
Paste your original text in the left panel and the modified text in the right panel. Click Compare to see the diff output below with color-coded highlighting. Use Swap to exchange the two texts, or Clear to reset both panels.
Features
- Side-by-side text input
- Color-coded diff highlighting
- Line numbers and +/− indicators
- Swap original and modified text
- No external dependencies required
Frequently Asked Questions
How does the diff comparison work?
The tool performs a line-by-line comparison between the original and modified text. Lines that exist only in the original appear with a red background, lines only in the modified version appear with a green background, and matching lines show no highlight.
Can I swap the original and modified text?
Yes. Click the Swap button to exchange the contents of the original and modified panels, then re-run the comparison.
Does it show line numbers?
Yes. Each line in the diff output includes its line number for easy reference, along with a + or − indicator showing whether the line was added or removed.