text.compare

Compare text online and see exactly what changed

Paste two versions of any text and text.compare highlights every difference: whole lines that were added or removed, the exact words that changed inside a line, and blocks that were moved rather than rewritten.

It works for code, contracts, essays, configuration files and logs, and it opens Word, Excel, PDF and image files too. Everything happens in your browser, so private documents stay on your device.

How to compare two texts

  1. Paste the original text on the left and the changed text on the right, or drop two files onto the page.
  2. Differences appear straight away. Press F7 or use the arrows to step through each change.
  3. Adjust what counts as a change in Options, then copy a link, download a .patch, or export a report.

Questions

Is my text uploaded anywhere?

Not to compare it. The comparison runs entirely in your browser, and the text you paste and the files you open are never sent to a server for that. There are no ads. The site counts visits with Google Analytics, which sees which page you opened, and keeps its own anonymous tally of what kind of comparisons are made (for example “a Word file, about 500 lines”), but neither ever sees the text you compare. If you copy a share link, the text is packed into the link itself, in the part after the # that is never sent to a server or to analytics. Your history and saves stay in your browser unless you sign in. If you do, they are uploaded to your account, but only after they are encrypted in your browser with a passphrase only you know, so nobody else can read them. The site stores your email address and that encrypted data, and can see how much you have saved but not what it says.

Is it really free?

Yes, with no account, no limits and no paid tier. The code is open source under the GNU AGPL-3.0 license, so anyone can host their own copy.

What does moved text look like?

When a block of lines appears in both versions but in a different place, it is shown in violet with a tag saying where it moved to, instead of a red deletion and a separate green addition. Click the tag to jump to the other copy.

Can it ignore whitespace, case or timestamps?

Yes. Options can ignore upper and lower case, spaces at line ends, all whitespace, or blank lines. You can also ignore anything matching a pattern, with ready-made ones for dates and times, GUIDs, hex values and numbers.

text.compare

Compare two texts and see exactly what changed. The comparison runs in your browser, and this site has no ads.

Privacy

Keyboard

F7 or Alt ↓
Next change
Shift F7 or Alt ↑
Previous change
Ctrl F
Find and replace in a side
Ctrl Z
Undo an edit or merge
Ctrl S
Save the comparison to your library
?
Show this help

Tips

Free and open source under the GNU AGPL-3.0 license, made by James Patton. Get the code on GitHub and host your own copy. If it saves you time, you can buy me a coffee.

Copy this

Your browser blocked automatic copying. Select the text below and copy it.