Text Compare

Compare two texts and see every added, removed and changed line, with the exact changed words highlighted.

Runs in your browser. Nothing is uploaded.

How to use the Text Compare

  1. Paste the original text on the left and the changed text on the right, or press Load example.
  2. Differences appear below as you type. Removed lines are red, added lines are green.
  3. Within changed lines, the exact words that differ are highlighted.
  4. Tick Ignore case or Ignore spacing to hide differences that don't matter to you.
  5. Copy the result as a unified diff to share it.

See exactly what changed

Whether it’s a contract that came back from the other side, a revised essay, two versions of a configuration file, or an article edited by a colleague, the question is the same: what’s different? Reading both versions side by side is slow and it’s easy to miss a changed number. This tool does the comparison for you and shows every addition, deletion and edit.

Line and word level

Changes are shown as a unified view, the format used by code review tools. Each line is marked with its line numbers from both versions, and a + or − when it was added or removed. When a line was edited rather than replaced, the specific words that changed are highlighted within it, so a single altered figure stands out immediately. Long stretches of unchanged text are folded away, with a button to show them when you need context.

Options for noisy texts

Texts copied from different places often differ in ways that don’t matter: capital letters, double spaces, or trailing spaces at line ends. Tick Ignore case or Ignore spacing to treat those as equal. The original text is still shown, only the comparison changes.

Share the result

The summary shows how many lines were added and removed and how similar the two texts are overall. Copy as unified diff gives you a plain-text version with + and - markers that pastes cleanly into email, chat or a ticket. Everything runs in your browser, so nothing you compare is stored or sent.

Frequently asked questions

How does the comparison work?

The texts are compared line by line using the same algorithm as Git and most diff tools, which finds the smallest set of added and removed lines that turns one text into the other. When a line has changed, the two versions are then compared word by word so you can see exactly what was edited.

What does "similar" mean?

It's the share of lines that are unchanged between the two texts. Two identical texts are 100% similar. If every line is different, they're 0% similar. It's a quick sense of how much changed, not a measure of meaning.

Can I compare Word documents or PDFs?

Copy the text out of each document and paste it here. Formatting such as bold or fonts isn't compared, only the words and line breaks.

Why does a whole paragraph show as changed when I edited one word?

The comparison works per line, and a paragraph without line breaks is one long line. The changed word is still highlighted inside it. For finer results, put each sentence on its own line before comparing.

Is my text uploaded?

No. Both texts are compared in your browser and never leave your device, so it's safe for contracts, essays and private notes.

Tutorials