Text Diff — Compare Two Texts
Compare two texts side by side and see additions, deletions, and changes highlighted line by line.
How to Compare Two Texts
Paste your original text into the left panel and the changed text into the right panel, then click Compare. The tool performs a line-by-line comparison and highlights the differences. Lines that were removed from the original are shown in red, lines that were added in the changed version appear in green, and unchanged lines are displayed without highlighting. You also get a summary showing the total number of additions, deletions, and a similarity percentage. This is useful for comparing drafts of an essay, checking configuration file changes, reviewing code modifications, or verifying edits in any plain-text document.
Understanding the Diff Output
The diff output follows a familiar convention used by version control systems. Red lines prefixed with a minus sign represent content present in the original but missing from the changed version. Green lines prefixed with a plus sign represent new content added in the changed version. The similarity percentage tells you how much of the text remained unchanged, calculated as the ratio of matching lines to total lines. A high percentage means only minor edits were made, while a low percentage indicates substantial rewriting. For best results, make sure both texts use consistent line breaks. The comparison is performed entirely in your browser, so even sensitive documents remain private.