Text Tools

Compare Documents (Text Diff)

Find every difference between two versions of a text. Additions are highlighted in green and deletions in red, word by word or line by line, so you can review edits to essays, contracts, articles and code in seconds.

Compare Two Texts

Paste the original on the left and the changed version on the right, then press Compare.

How to Compare Two Documents

  1. Paste the original version into the left box and the edited version into the right box. You can copy text from Word, Google Docs, PDFs, emails or code editors.
  2. Choose how to compare: by words for essays and articles, by lines for code, lists and data, or by characters to spot single-letter changes such as typos and numbers.
  3. Press Compare. Added text is shown in green and removed text in red with a line through it.

Common Uses

  • Contracts and agreements: see exactly what the other party changed between drafts, including small changes to dates and amounts.
  • Essays and articles: review an editor's changes or check what was rewritten.
  • Website copy and SEO: compare old and new versions of a page before publishing.
  • Code and configuration files: find changed lines quickly without setting up version control.
  • Lists and data: compare two lists of names, products or emails line by line.

Options

  • Ignore capital letters treats "Payment" and "payment" as the same.
  • Ignore extra spaces hides differences that are only spacing, which is common when text is copied from PDFs.

The comparison uses the longest common subsequence algorithm, the same principle used by tools such as Git's diff, to show the smallest set of changes between the two versions.

Privacy

Your documents are compared in your browser and never uploaded, so it is safe to compare confidential drafts and contracts.

Frequently Asked Questions

How do I compare two Word documents?

Copy the text of each document and paste them into the two boxes, then press Compare. Formatting is ignored; only the text is compared.

Is there a size limit?

Most documents compare instantly. Very long texts may be too large to compare word by word; switch to comparing by lines.

Can I compare code?

Yes. Choose "Lines" to see which lines were added or removed, similar to a code diff.

Is my text uploaded?

No. The comparison runs entirely in your browser.