How to use this tool
- Enter original text, updated text.
- Select Update result to view the result.
- Check the method and assumptions below before using the result.
Input reference and sample values
Use the units and choices shown for each field. Sample values are provided for practice, not as recommendations.
| Input | Format and units | Sample |
|---|---|---|
| Original text | Keep the structure and separators shown in the sample. Line breaks are retained in this input. | First line
Old line |
| Updated text | Keep the structure and separators shown in the sample. Line breaks are retained in this input. | First line
New line |
Result for these sample inputs
First line + New line - Old line
Processed locally. Review the output before using it.
Select Try the example in the form to load these values and calculate them again. This replaces the current form inputs. Compare the result with the method and worked explanation below.
The method, explained
Use a longest-common-subsequence comparison. Prefix added lines with +, removed lines with −, and unchanged lines with spaces.
Changing Old line to New line creates one removal and one addition.
What to keep in mind
Whitespace and capitalization matter. Input line-count product is limited to 250,000 to keep the browser responsive.
Common questions
How does this tool handle my input?
Processing happens in your browser. Your pasted content is not uploaded, included in URLs or stored as a calculation history.
What input should I use?
Original text: use the example already shown, then replace it with your own content. Whitespace and capitalization matter. Input line-count product is limited to 250,000 to keep the browser responsive.
Methodology maintained by ClarityKit. How these tools are built and checked.