Text Diff
Compare two texts and highlight differences — line by line diff with added, removed, and changed lines.
About Text Diff
Text diffing (differencing) is the process of computing the difference between two versions of a text, showing which lines were added, removed, or unchanged. It is one of the most fundamental operations in software development — version control systems like Git use diff algorithms to track every change in source code history.
This tool performs a line-by-line diff of two text inputs, highlighting added lines in green and removed lines in red. It uses the Longest Common Subsequence (LCS) algorithm to find the minimal set of changes that transforms Text A into Text B, producing a clean and easy-to-read diff output.
Common use cases include comparing two versions of a configuration file, reviewing document edits, spotting differences between API responses, comparing two SQL schemas, and verifying that a text transformation produced the expected output.