Online Text Compare
Paste the original and the modified text and compare them line by line. You see which lines were added or removed and which words changed inside a line.
How to compare two texts
- 1. Paste the original text
- Put the older version into the Original text field, for example a contract before the other side's comments.
- 2. Paste the modified text
- Put the newer version into the Modified text field. If you mixed them up, the Swap texts button with the arrows icon exchanges them.
- 3. Click Compare
- The result appears below the form. Both fields must contain text. The bin icon clears both fields and the result.
The texts are compared in your browser and are not sent anywhere.
How to read the comparison result
- Green line with +
- A line that exists only in the modified text. The number on the left is its line number in the modified text.
- Red line with -
- A line from the original that is missing from the modified text. The number on the left belongs to the original.
- Gray line
- A line that is the same in both texts, numbered as in the original.
- Highlighted words
- A changed line appears twice, old in red, new in green below it. Differing words get a darker background, the whole word even if one letter changed. Punctuation is marked on its own.
- Summary
- The number of added and removed lines, with a changed line counted in both. With no difference at all you see "The texts are identical." instead.
Why a whole paragraph shows as changed
The tool compares lines, and a line is everything up to the next Enter. A paragraph without line breaks is one line, so a single changed word shows the whole paragraph twice, with that word highlighted.
Different wrapping is worse. A paragraph on one line in the original and on three in the modified text comes out as one removed line and three added ones, even if no word changed. Prepare the texts first:
- Wrap both texts the same way, one paragraph per line, or one sentence per line for long paragraphs. Shorter lines pinpoint changes better.
- Empty lines are compared too, so an extra empty line shows as added.
- Upper and lower case count: "Contract" and "contract" are different words. If case does not matter to you, convert both texts to lower case with the Text Case Converter first.
- Different line endings, such as Windows and Mac text, and a single extra line break at the very end are ignored.
Compare two Word documents, PDF files or Excel lists
You cannot upload files here. Copy the text and paste it in. Only plain text comes across from Word, so bold, colors and images are not compared.
To compare two Word documents including formatting, use Word itself. In Word for Microsoft 365, 2024 or 2021 on Windows, select Compare in the Compare group on the Review tab and choose the option to compare two versions of a document. You pick the original and the revised file, and Word creates a third document with the differences shown as tracked changes. The two source files stay unchanged.
Text copied from a PDF breaks lines at the edge of the page, so two PDFs with a different layout show many changed lines. Even out the line breaks first. A scanned PDF without a text layer has no text to copy.
A column copied from Excel pastes as one line per cell, so two exports, such as order lists, compare item by item. Sort both lists the same way first, or reordered rows show as changed. To compare two cells inside Excel, =EXACT(A2,B2) returns TRUE only for an exact match, upper and lower case included.
What the text comparison does not show
- A similarity percentage or a plagiarism check. The tool only compares the two texts you paste.
- Formatting, page layout, images or comments from a document.
- A moved paragraph as a move. It shows as removed in the old place and added in the new one.
- Texts longer than 200,000 characters in total for both fields. Split longer texts, for example by chapter, and check their length with the Word Counter.
Related Tools
More tools for writing, editing and checking text.