Text Compare
Compare two blocks of text line by line and see exactly what was added, removed, or changed.
Compared line by line, live as you type, entirely in your browser.
Need the opposite? Difference Checker (String)
What is Text Compare?
Paste the original text on the left and the changed version on the right to see a line-by-line diff instantly: added lines highlighted green, removed lines highlighted red, unchanged lines shown as-is. Useful for comparing two drafts, catching what changed between file versions, or reviewing an edited config or code snippet. Everything runs in your browser; neither text is sent anywhere.
How to Use Text Compare
- 1
Paste the Original Text: Enter the original version on the left.
- 2
Paste the Changed Text: Enter the updated version on the right.
- 3
Read the Diff Instantly: Added, removed, and unchanged lines are highlighted automatically.
How It Works
Both texts are split into lines, then compared with a line-based diff algorithm, the same approach `git diff` and most file-comparison tools use. Each line is classified as unchanged, added, or removed based on whether a matching line exists at the corresponding position in the other text. A single character changed anywhere on a line marks that whole line as changed (removed from the original, added in the new version), since the comparison granularity is the line, not the word.
Example
-1 removed
+2 added
Line 2's wording change shows as removed then added, "Hello world" and "Goodbye" stay unchanged, and "See you soon" is a pure addition.
Common Use Cases
Catching exactly what changed between two drafts of a document, reviewing an edited config file line by line, or spotting what a script or teammate altered in a file without reading both versions side by side.
Frequently Asked Questions
Common questions about Text Compare.