Skip to content
Utilboxes

Text Compare

Paste the original and the changed version to see exactly which lines were added or removed, marked with a plus or a minus. You can ignore spacing and blank lines, or capital letters, and copy the differences as a report. The comparison runs in your browser, so your text is never uploaded.

Runs entirely in your browser

Updated

How to use Text Compare

  1. 1Paste the earlier version into Original text.
  2. 2Paste the newer version into Changed text.
  3. 3Choose whether spacing and capital letters should count as differences.
  4. 4Read the added and removed lines, or copy the report.

How it works

The two texts are split into lines and lined up with a longest-common-subsequence comparison — the method version-control tools use. It finds the smallest set of additions and removals that turns one version into the other, so a paragraph inserted near the top does not make every later line look changed.

Ignoring spacing trims each line and drops blank lines before comparing, which stops a re-indented copy from looking entirely different. Ignoring capitals compares lower-cased copies while still showing the original wording.

The comparison is by line. A line with one edited word appears as one line removed and one line added, which keeps a long report easy to scan. Texts of more than 4,000 lines are compared more coarsely, from the point where they start to differ, so the page stays responsive.

Your text is processed by JavaScript running in this page and is never sent over the network. That matters when you are pasting a draft, a client brief, meeting notes or anything else you would rather not hand to a server.

Tips and common mistakes

  • Put the older version on the left so that additions read as additions.
  • Compare clean copies of each draft rather than a tracked-changes copy, which carries deletion marks of its own.
  • Paste the copied report into an email or a ticket: added lines start with + and removed lines with -.

Frequently asked questions

Does it show which words changed inside a line?
No. It compares whole lines, so a line with an edited word shows as the old line removed and the new line added, next to each other in the list.
Can I compare Word documents or PDFs?
Paste their text here. For two PDF files, Compare Two PDFs reads each page and compares the text for you.
Why does everything look changed?
Usually because the lines were re-wrapped or re-indented. Keep the spacing option switched on; if the line breaks themselves moved, the texts genuinely differ line by line.
Is my text uploaded?
No. Both texts stay in your browser tab and the comparison runs there.
How long can the texts be?
Several thousand lines compare comfortably. Above 4,000 lines on either side the tool switches to a faster, coarser comparison from the first line that differs.

Guide