Guide
About the Diff Checker
How the comparison works
The checker uses the Myers difference algorithm, the same approach behind git diff. It finds the smallest set of line insertions and deletions that turns the original text into the changed one, so the result highlights real edits rather than every line after the first change. Removed lines are shown in red with a minus sign, added lines in green with a plus sign, and each row shows its line number in the original and changed versions.
Useful options
- Ignore whitespace treats lines as equal if they differ only in spaces or indentation, useful after reformatting code.
- Ignore case treats upper- and lowercase letters as the same.
- Only show changes hides unchanged lines so you can scan long files quickly.
Common uses
- Checking what changed between two versions of a configuration file before deploying.
- Comparing contract or policy drafts to spot edits.
- Verifying that a find-and-replace touched only the lines you intended.
- Comparing two API responses (tip: run both through the JSON Formatter with sorted keys first).
Frequently asked questions
Is my text uploaded?
No. The comparison runs in JavaScript on your device, so it is safe for confidential documents and source code.
Does it highlight changes within a line?
It works line by line: a modified line appears as one removed line followed by one added line, which keeps the output unambiguous.
How large can the texts be?
Tens of thousands of lines work well. If the two texts differ in more than 4,000 lines, the checker stops to keep your browser responsive.