Text Diff
Compare two texts and see the differences
Real-time Diff
Instant comparison as you type
100% Private
Runs entirely in your browser
No Signup
Free tool, no registration required
What Is Text Diffing?
Text diffing is the process of computing the difference between two versions of a text document and presenting the changes in a readable format. The core algorithm is the Longest Common Subsequence (LCS) problem, first described by Myers in 1986 and now at the heart of tools like Git's git diff, the Unix diff command, and every code review tool in existence. Green lines are additions, red lines are deletions, and unchanged lines provide context.
Common Use Cases
Reviewing changes to a configuration file before deployment helps catch accidental edits. Comparing two versions of a contract or legal document reveals exactly which clauses changed. Spotting the difference between two API responses when debugging a regression, validating that a template was applied consistently across multiple generated files, and checking that a translation matches the original structure are all common text-diff tasks. Writers use diff tools to review edits made by collaborators, and technical writers use them to track documentation changes between software versions.
Line-by-Line vs Character-by-Character
Most diff tools operate at the line level: a changed line shows as a deletion plus an addition, even if only one word changed. Some tools (including modern code review systems) offer word-level or character-level inline highlighting within changed lines, making small changes much easier to spot. This tool highlights changed lines and marks additions and deletions clearly, giving you a clear visual of what was added or removed between the two versions.
How to Use This Tool
Paste the original text in the left panel and the modified text in the right panel. The diff updates automatically as you type — no button to click. Unchanged lines appear in neutral color; additions are highlighted in green, deletions in red. Use this to compare any two text inputs, whether they're code, prose, configuration, or data. All processing runs locally in your browser — neither version of your text is sent anywhere.