Paste two versions of any text or code and instantly see what was added, removed or edited — down to the individual word.
Original on the left, changed version on the right.
The tool finds the longest common sequence of lines between the two texts. Lines only in the original are shown in red, lines only in the changed version in green, and edited lines get a second pass that highlights exactly which words changed. Everything is computed locally in your browser.
A diff lists the smallest set of changes that turns one text into another. Developers use diffs in Git to review code; writers use them to compare drafts and contracts; admins use them to spot what changed in a config file. This tool compares line by line using the longest-common-subsequence method, then compares the words inside each changed line.
No. The comparison runs entirely in your browser. Your text never leaves your device, so it is safe to compare private code, contracts or logs.
Open each file in any text editor, copy its contents and paste them into the two boxes. Works for source code, JSON, CSV, HTML, Markdown, logs and plain text.
The line is marked as removed and re-added, and the changed words are highlighted inside it. Switch on “Ignore whitespace” if the only difference is spacing or indentation.
They change how lines are matched, not how they are displayed. Ignore case treats “Hello” and “hello” as equal; Ignore whitespace removes all spaces and tabs before comparing; Ignore trailing spaces drops spaces at the end of each line (on by default because they are invisible).
The tool handles very large inputs: similar texts of tens of thousands of lines compare instantly. If two long texts are almost completely different the comparison may be refused — split them into smaller sections in that case.
Use “Copy diff” or “Download .diff” to get the result in the familiar unified style (lines starting with +, − and a space), ready to paste into an email, ticket or code review.