Text Diff Checker

Compare two text snippets or code blocks instantly. Highlights additions, deletions, and unchanged lines using a client-side LCS difference engine.

Original Text (A)

Modified Text (B)

Difference Results

No differences to display. Add text above to run comparison...

Frequently Asked Questions

How is the text diff calculated?

The diff engine uses the Longest Common Subsequence (LCS) algorithm to compute minimal edits between the original and modified strings.

Does my code leave the browser?

No. All text parsing, line splitting, and comparison calculations execute 100% client-side in JavaScript.

Can I compare JSON, Markdown, or source code?

Yes. You can compare plain text, JSON objects, YAML configs, HTML templates, and any programming language source files.