Text Diff Checker

Compare two blocks of text side by side. See additions, deletions, and unchanged lines with line numbers.

Frequently Asked Questions

How does the diff checker work?

The diff checker uses the Longest Common Subsequence (LCS) algorithm to find the optimal set of differences between two texts. It highlights added lines in green, removed lines in red, and shows unchanged lines for context.

Can I compare code with this tool?

Yes. The diff checker works with any text including source code, configuration files, JSON, XML, and plain text. It preserves whitespace and indentation for accurate code comparison.

Is there a size limit?

Since everything runs in your browser, the practical limit depends on your device's memory. It handles texts with thousands of lines efficiently.

Can I copy the diff output?

Yes. Click the 'Copy Diff' button to copy the unified diff format to your clipboard, with + for additions, - for removals, and space for unchanged lines.