Text Diff Checker

Proper line diff with LCS alignment, inline word highlights on changed lines, unified view, and patch export โ€” all in your browser.

Original (left)
Modified (right)
Paste text above โ€” comparison runs automatically.

โ† Back to All Tools

How to Use the Text Diff Checker

Paste or load two versions of any text โ€” code, JSON, YAML, logs, or prose. The tool uses a proper longest-common-subsequence (LCS) diff so insertions and deletions align correctly (not just line-by-line index comparison). Changed lines get word-level highlights when enabled.

Frequently Asked Questions

Is my text sent to a server?

No. Comparison runs entirely in your browser. Your data never leaves your device.

How is this different from a basic line compare?

Basic tools compare line 1 to line 1, line 2 to line 2, etc. This tool finds the best alignment so adding a line at the top does not mark every following line as changed.

Can I ignore formatting differences?

Yes. Enable ignore whitespace, ignore case, or ignore blank lines to focus on meaningful content changes.