Text Compare
Compare two texts side by side and highlight differences. Free online text diff tool — find additions, deletions, and changes.
Three steps to get started
Paste original text
Paste the original (older) version of your text in the left field.
Paste modified text
Paste the modified (newer) version in the right field.
Click Compare
Added lines shown in green, removed lines in red, unchanged in grey.
Find differences between two texts instantly
Text comparison (or "diff") is essential when you need to see exactly what changed between two versions of a document, article, configuration file, or any text. This tool highlights additions and deletions clearly.
The comparison uses the Longest Common Subsequence algorithm — the same algorithm used by git, Unix diff, and most version control systems. It finds the minimal set of changes needed to turn the original text into the modified version.
Results are color-coded:
- Green (+) — lines added in the modified text
- Red (−) — lines removed from the original
- Grey (space) — unchanged lines
A summary at the top shows the total count of added, removed, and unchanged lines. All comparison happens in your browser — both texts stay private on your device.