How does the text diff work?
This text diff checker compares two blocks of text line by line and highlights the differences. Lines present only in the original are shown in red (deletions), lines present only in the modified version appear in green (additions), and unchanged lines are displayed normally. It uses a longest common subsequence (LCS) algorithm to produce a minimal, readable diff.
Common use cases
Use this tool to compare two versions of a document, review changes before merging code, verify configuration file updates, or check what someone edited in a shared text. It is especially useful when you do not have access to a dedicated diff tool or version control system.
Privacy guaranteed
The comparison runs entirely in your browser. Neither the original nor the modified text is sent to any server. Your data stays private.