Compare two texts with line-level additions, removals, and changes.
Published Last reviewed
About Text Diff Checker
Compare two texts with line-level additions, removals, and changes. Enter original text, revised text, whitespace handling in a purpose-built text diff interface designed for this subject. A longest-common-subsequence line comparison marks unchanged, inserted, and removed lines. The result includes difference summary, added lines, removed lines, unchanged lines, line diff, supporting detail, and clear units or diagnostics. Results depend on the entered assumptions and rounding. Check important decisions against the original records or an authoritative source. Processing stays in your browser, and UtilityPages does not store the values you enter.
Edit the source fields below and inspect the rendered output alongside your work.
This workspace updates as you edit.
Text Diff Checker result
Enter the values above, then compare text to see a detailed result.
How Text Diff Checker works
A longest-common-subsequence line comparison marks unchanged, inserted, and removed lines.
How it works
A longest-common-subsequence line comparison marks unchanged, inserted, and removed lines. Results depend on the entered assumptions and rounding. Check important decisions against the original records or an authoritative source.
Examples
Text Diff Checker worked example
Example input
{
"original": "UtilityPages has calculators.\nThe tools run in your browser.",
"revised": "UtilityPages has calculators and converters.\nThe tools run privately in your browser.",
"ignore_whitespace": "no"
}
Expected result
{
"summary": "2 added, 2 removed, 0 unchanged",
"added_lines": 2,
"removed_lines": 2,
"unchanged_lines": 0,
"diff": [
{
"type": "added",
"original_line": "—",
"revised_line": 1,
"text": "UtilityPages has calculators and converters."
},
{
"type": "added",
"original_line": "—",
"revised_line": 2,
"text": "The tools run privately in your browser."
},
{
"type": "removed",
"original_line": 1,
"revised_line": "—",
"text": "UtilityPages has calculators."
},
{
"type": "removed",
"original_line": 2,
"revised_line": "—",
"text": "The tools run in your browser."
}
]
}
Privacy
This tool does not store your inputs or results on UtilityPages.org.
Frequently asked questions
How does the Text Diff Checker work?
A longest-common-subsequence line comparison marks unchanged, inserted, and removed lines.
What information should I enter?
Enter original text, revised text, whitespace handling. Use values and units from the same scenario so the result is internally consistent.
What results does this tool provide?
It reports difference summary, added lines, removed lines, unchanged lines, line diff, including intermediate context where it helps you review the answer.
What limitations should I know about?
Results depend on the entered assumptions and rounding. Check important decisions against the original records or an authoritative source.