- Home
- Tools
- Developer Tools
- Diff Checker
Diff Checker
Compare two texts and see exactly which lines and words changed.
Reading the result
Lines that only exist in the original are red, lines that only exist in the changed text are green. When a line was edited rather than replaced, the two versions sit next to each other and the words that differ are marked darker, so a renamed variable or a single changed digit doesn't hide in a long line.
Side by side is the easier view for prose and for long lines. Unified stacks everything in one column, the way git diff prints it, and is the better choice on a narrow screen.
Options
- Ignore case treats
Helloandhelloas the same line. - Whitespace: ignore at line ends hides the trailing spaces editors leave behind. Ignore everywhere also hides re-indentation, which helps when code was only reformatted.
- Only changes folds away long stretches of identical lines and keeps three lines of context around each change.
Taking the diff with you
Copy patch and the .diff download give you a standard unified diff. You can attach it to a ticket, paste it in a code review, or apply it to the original file with patch original.txt changes.diff or git apply.
Good to know
The comparison is done line by line with the Myers algorithm, the same one git uses by default, so it finds the smallest set of changes. Two texts that are almost entirely different are reported as "everything removed, everything added"; lining them up line by line wouldn't tell you anything anyway.
Both texts stay in your browser. Nothing is uploaded, which makes it safe to compare configuration files and contracts.