Text Diff: Compare Two Texts
Compare two texts line by line and see what was added or removed. It runs in your browser; nothing is sent to the server.
What it is for?What it is for?
Paste two versions of a text and see which lines changed. It is handy for comparing two config files, two versions of a contract clause, an SQL dump before and after a migration, or what a colleague changed in a snippet sent over chat.
Line by line
Lines that stayed the same are unmarked. A minus line was removed from the original, a plus line was added in the changed text. Comparison is exact, including spaces. Very large pastes, above roughly a thousand lines on each side, are refused so the page stays responsive.
Reading the result
A changed line usually shows up as a removed line followed by an added line, because the tool compares whole lines and does not highlight the changed words inside them. The result updates as you type in either box. Copy gives you the same result as plain text with + and - in front of the changed lines, ready to paste into a ticket or a chat.
Gotchas
- A trailing space, or a tab where the other side has spaces, makes two lines different even if they look the same.
- Windows and Unix line endings are treated the same, so a file saved on another system does not show every line as changed.
- Reflowed text, such as a paragraph wrapped at a different width, shows as fully changed. Bring both sides to the same layout first if you only care about the content.
It stays in the browser
The comparison runs in this tab. Neither text is sent to a server.