Compare two blocks of text and highlight the differences instantly.
This diff checker splits both texts into lines, then uses a Longest Common Subsequence (LCS) algorithm to find the longest sequence of identical lines shared between the two inputs. Lines present only in the original are marked as deletions, lines present only in the modified version as additions, and lines that appear in both in the same order as unchanged. The result is a unified, line-by-line view where every change is color-coded — green for additions and red for deletions — so you can instantly spot what was modified, removed, or inserted.
A text diff checker compares two versions of text and highlights the differences — additions, deletions, and unchanged parts. It's commonly used to review code changes, proofread documents, track edits, and verify that copied or modified content matches the source.
This tool compares line-by-line. Each line is treated as a single unit, so if any character within a line changes, the entire line is marked as modified. This is the same approach used by Git and most developer diff tools, making it ideal for comparing code, configs, and structured text.
Yes. All text comparison happens directly in your browser using JavaScript. Nothing is sent to any server, so your content stays completely private. You can safely paste sensitive code, documents, or confidential text.