Nothing you open here is ever uploaded

Compare two pieces of text

Paste the original in the first box and the changed version in the one below, then press Compare. A removed line is marked with a minus and an added one with a plus, unchanged lines carry two leading spaces, and you get a count of both. Contracts and config files are exactly what you would rather not paste into someone else’s server.

This page loads no libraries at all. The work is done by the browser itself. Your file is read on your own machine and never sent anywhere. Open your browser’s network tab and watch while you use it.

Questions

Is this a proper diff?

It compares line 1 with line 1, line 2 with line 2, and so on. There is no alignment step, so inserting one line at the top makes every line below it read as both removed and added. Enough for spotting edits, not enough for merging code.

Can I apply the output as a patch?

No. It looks like a unified diff because of the minus and plus marks, but there are no file headers, no line numbers and no hunks, so git apply cannot use it. The download is a diff.txt meant for reading.

Does it ignore indentation or letter case?

No. Lines are compared exactly as they stand, so one trailing space or a changed indent counts as a changed line, and there is no option to relax that. Differences within a line are not marked either. A line is either identical or it is not.

What happens if I leave the second box empty?

It runs, and every line of the first box comes back as removed. An empty box still counts as one blank line, so you also get an empty added line after the first one and the count reads 1 added. The first box is the one that cannot be empty.

Other text & code tools

Everything here is free and works the same way, in your browser.

New tools, once in a while

A new DeskKit tool lands every week or two. Leave an address to hear about it. Nothing else is ever sent, and one click removes you.