Compare two blocks of text and highlight added and removed lines.
Compared locally — your text never leaves your device.
How do you compare two blocks of text?
A text diff checker compares two versions line by line and highlights every line that was added or removed, with a count of the changes. It uses a longest-common-subsequence diff to match unchanged lines and mark the rest as added (+) or removed (−), so you can see exactly what differs between two versions.
Understanding your result
The tool uses a longest-common-subsequence diff to match unchanged lines and mark the rest as added (+) or removed (−).
How to use this tool
- Paste the original text on the left.
- Paste the changed text on the right.
- Press Compare.
About the Text Diff Checker
The Text Diff Checker compares two versions of text and highlights every line that was added or removed, with a count of the changes.
Explore all Developer Tools tools
Frequently asked questions
Is my text uploaded anywhere?
No. The comparison runs entirely in your browser, so nothing you paste is sent to a server.