Kadben

Diff checker: compare two texts

Paste two versions of a text or open two files to see what changed: the removed and added lines, and the words or characters that differ inside them.

Runs in your browser. Nothing is uploaded.

Diff checker: compare two texts

Options

How to use it

  1. Paste the original text on the left and the changed text on the right, or open a file on each side.
  2. Read the result below: removed lines are red, added lines green, and the changed words are highlighted.
  3. Step through a long text with “Next change” and “Previous change”; choose side by side or inline.
  4. Turn on the options if white space, case, blank lines or Windows line ends should not count.
  5. Download the changes as a .patch file if you need them for patch or git apply.

Rules and limits

How the texts are compared

The .patch file

Limits

Questions and answers

Why is every line marked as changed?

Usually the line ends differ: one text was saved on Windows (CRLF), the other on macOS or Linux (LF). The page notices it and offers to treat CRLF as LF. Tabs against spaces are the other usual cause; “Ignore changes in white space” hides them.

How do I apply the .patch file?

In a terminal: patch original.txt changes.patch, or git apply changes.patch inside a git repository. For files with Windows line ends, run patch with --binary, so that it keeps them.

Does it find the same changes as diff on Linux?

It marks as few lines as possible, like diff --minimal: the tests check its counts against GNU diff and apply its .patch files with GNU patch. The lines it pairs can differ where several equally short answers exist.

Are my texts uploaded?

No. The comparison runs in your browser, and the page cannot send your texts anywhere, so you can compare contracts, code or private notes.

Related tools