Skip to content

Compare texts

Paste two texts and see what changed. Removed lines are red, added ones green. You can ignore case and whitespace, if that is not the difference you are looking for.

Your text stays on your device: nothing is uploaded

0 characters

Result

Paste something on the left: the result appears as you type.

How it works

The comparison looks for the lines that stayed the same and lines the rest up around them: add a line at the top and it tells you that you added one, not that everything changed. Ignoring case and spaces changes the comparison but not the text shown, which stays as it really is. There is a cap of two thousand five hundred lines per side: past that, a comparison that updates as you type would slow the page down.

Frequently asked questions

Can I see which word changed inside a line?
No, the comparison works on whole lines: a changed line appears twice, in red as it was and in green as it is now. In long paragraphs the changed word is hard to spot, so put a line break after each sentence in both texts; the difference then narrows down to one short line.
What exactly does “Ignore whitespace” ignore?
Spaces and tabs at the start and end of each line, and runs of spaces counted as one. It does not ignore a space that is missing altogether, as between “a b” and “ab”, nor blank lines added or removed. Windows-style line breaks never count, even with the option off, and neither does an accented letter written in two different ways (precomposed or with a separate accent).
Why is there an added blank line at the end?
Because one text ends with a line break and the other does not: the final line break makes one extra empty line, and the comparison reports it. If it does not matter to you, delete the last line break from the text that has it; the rest of the comparison stays the same.
Can I compare two Word documents or two JSON files?
Yes, with a step first. For Word, run both documents through “Extract text from Office” and paste the texts you get here. For JSON, run them through “Format JSON” with key sorting on: two files with the same keys in a different order come out identical, leaving only the real differences.
Can I copy the result as a patch?
The copy button gives you lines starting with “+”, “-” or a space, which read well in a message or a bug report. It is not a patch file, though: line numbers and headers are missing, so git or patch will not apply it.

What you paste is never uploaded. Anywhere.

The text you type stays in your browser’s memory: no request goes out while you type. You can paste something confidential.

  • Processed locallyEverything happens on this page.
  • Nothing to upload, nothing to wait forNothing to upload, no waiting.
  • Nothing to deleteWe keep nothing: nothing reaches us.
YOUR DEVICEyour fileprocessingthe resultservernever gets here

Other tools in this category