Diff checker

Paste the original text on the left and the new version on the right. Removed lines are shown in red and added lines in green, with the changed words highlighted.

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

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.

Frequently asked questions

How do I compare two files?
Open each file in a text editor, copy the contents into the two boxes, and the differences appear straight away.
Is there a size limit?
Texts up to about 40,000 lines combined work well. If two files differ in more than about 3,000 lines, the changed block is shown as removed and re-added rather than matched line by line.
Can I compare code?
Yes. Any plain text works, including source code, config files, CSV and logs. Tick Ignore whitespace to skip indentation changes.
Is my text private?
Yes. Everything runs on your device; nothing is sent to a server.