difference

Text Diff Checker

Paste two versions of text and instantly see what was added, removed, or left unchanged.

Original
Modified

Frequently Asked Questions

This tool uses the Longest Common Subsequence (LCS) algorithm to find the optimal set of matching lines between the two texts, then identifies insertions and deletions relative to that common base. This is the same approach used by the Unix diff command.

No. The diff is computed entirely in your browser using JavaScript. Your text never leaves your device — no data is transmitted anywhere.

The LCS algorithm runs in O(m×n) time and space. This tool works well for texts up to several hundred lines. For very large files, use a command-line tool like diff or git diff which use more efficient algorithms.

About the Text Diff Tool

Paste two versions of a text block to see exactly what changed between them. Additions are highlighted in green, deletions in red. Compares line by line or character by character depending on the mode selected. Useful for reviewing document revisions, comparing config file versions, and checking what changed in any two pieces of text.