Text Diff Checker: compare text differences instantly
Paste the original and modified versions of your text to instantly see additions and deletions. Everything runs in your browser: your text never leaves your device.
How to use the Text Diff Checker
-
1
Paste original text Paste the original version of your text into the left box.
-
2
Paste modified text Paste the modified version of your text into the right box.
-
3
Compare Press the Compare button to instantly see the differences highlighted line by line.
Special features
Frequently asked questions
How does the diff algorithm work?
The tool uses a Longest Common Subsequence (LCS) algorithm. It breaks both texts down into lines and calculates the most efficient sequence of additions and deletions required to transform the original text into the modified text.
What do the colors mean?
Lines with a green background and a plus sign (+) represent text that was added in the modified version. Lines with a red background and a minus sign (-) represent text that was removed from the original version.
Can I compare code?
Yes. The tool compares text line by line, making it perfect for comparing source code, CSV files, or configuration files.
Is my text safe?
Yes. Your text is processed entirely in your browser. It is never uploaded, stored, or sent anywhere. The tool does not use cookies, analytics, or localStorage.
Does the tool work offline?
Yes. Because the tool is built entirely with vanilla JavaScript, it works completely offline after the page loads.