Compare two texts

Paste two versions of a text and see exactly what changed, line by line and word by word: a contract before and after, two versions of a configuration file, two lists. Both texts stay on your device.

Compare

Options

Processed entirely in your browser. Nothing is uploaded or saved, and there are no share links.

How to compare two texts

  1. Paste the original version on the left and the changed version on the right, or open or drop a file onto each box.
  2. The comparison appears below as you type: removed text in red, added text in green.
  3. Tick Ignore spaces and indentation when only re-wrapped or re-indented lines differ, and Show only changes for long texts.
  4. Click Download as .diff to save the changes in the standard unified format that version-control and patch programs read.

Reading the result

You seeMeaning
Red line, empty space on the rightThe line was removed.
Green line, empty space on the leftThe line was added.
Red and green line side by sideThe line was changed; the words that differ are marked more strongly, so a changed amount or date stands out.
No colourThe line is the same in both versions.

The tool finds the smallest set of added and removed lines that turns the original into the changed version, using the same method as common version-control tools, and then compares the words inside each changed line.

Why comparing locally matters

The texts people compare are often private: contracts and offers, letters, configuration files with passwords, exports with customer data. Many comparison websites send both texts to their server, and some keep them under a "saved" or "shared" link that others can open. Here, both texts are compared in your browser's memory and are gone when you close the tab. The page can only connect to this site, so it could not send your texts anywhere even by mistake.

Frequently asked questions

Is my text uploaded?
No. You can check it in the Network tab of your browser's developer tools or use the page offline once it has loaded.
Can I compare Word or PDF documents?
Copy the text out of the documents and paste it here. Formatting such as bold text or tables is not compared, only the words.
Do different line endings count as changes?
No. Windows, Mac and Linux line endings are treated the same, so a file saved on another system does not show every line as changed.
How long can the texts be?
Tens of thousands of lines work. If two very long texts have almost nothing in common, the tool asks you to compare smaller parts.
What does it cost?
Nothing. There are no ads, no sign-up and no limits.