How the diff checker works
The two texts are split into lines and compared with the Myers diff algorithm, the same approach used by git diff. It finds the smallest set of lines to remove and add to turn the original into the changed text. Where a line was edited rather than replaced, the changed words are highlighted.
Options
- Ignore whitespace: treats lines as equal if they differ only in spaces, tabs or indentation.
- Ignore case: treats "Hello" and "hello" as the same.
- Show only changes: hides unchanged lines, which helps with long files.
Comparing JSON?
A text diff treats reordered keys and reformatting as changes. The JSON diff compares the data itself and lists differences by path.
Privacy
The comparison runs in your browser. Neither text is uploaded or saved.