Text Compare

Highlight what changed between two texts, line by line or word by word. Your text never leaves your browser.

Compare by

Differences

How to use it

  1. Paste the original version in the first box and the changed version in the second.
  2. Choose Line or Word as the comparison unit.
  3. Press Compare. The merged result appears below with a count of additions and removals. Swap exchanges the two texts and compares again.

Reading the result

The result is a single merged text. Parts with a green background were added in the changed version; parts in red strike-through existed in the original but were removed. Everything without a mark is identical in both. When a phrase is reworded, you will usually see the old wording struck through in red immediately followed by the new wording in green, so each edit reads as "this became that".

Line mode vs. word mode

ModeHow it comparesBest for
LineEach line is one unit; a line that differs by a single character is marked as removed and addedCode, config files, lists, numbered clauses
WordEach word, number and punctuation mark is compared separatelyEssays, articles, cover letters, long paragraphs

Ignore case treats "Apple" and "apple" as the same word. Ignore leading/trailing spaces is on by default and stops indentation or stray spaces at the end of a line from showing up as changes. Spaces in the middle of a line are still compared, because a missing or extra space between words is a real edit.

Common uses

Privacy and limits

Everything is calculated locally in your browser; nothing is uploaded. Very long texts in word mode may exceed the size limit, in which case the tool asks you to use line mode or split the text. Text copied from PDFs often contains extra spaces and line breaks that create noisy differences, so run both versions through Remove Extra Spaces first. To apply the same correction across a document, try Find and Replace.

Frequently asked questions

Should I compare by line or by word?

Line mode is best when whole lines, list items or code statements were added or removed: any line that differs at all is shown as removed and re-added. Word mode pinpoints the exact words that changed inside a sentence, which is what you want for essays and prose. A good habit is to scan in line mode first, then switch to word mode for the details.

Is my text uploaded anywhere?

No. The comparison runs entirely in your browser with JavaScript, and nothing you paste is sent to a server or stored. You can safely compare drafts of contracts, cover letters or unpublished work, and the text disappears when you close the tab.

Why do I get a "too long to compare" message?

Word mode splits text into many small pieces, and the work grows with the size of the changed region. To keep your browser responsive, the tool stops when the part that differs (after skipping identical text at the start and end) is several thousand words on each side. Switch to line mode or compare the document section by section.

Can this check my work for plagiarism?

No. It only compares the two texts you paste, so it cannot search the web or other documents. It is useful as a self-check, for example to confirm how much you actually reworded a passage, but it is not a plagiarism detector.

Why is the result shown in lowercase?

When "Ignore case" is on, both texts are converted to lowercase before comparing, and the result shows that normalized text so you can see exactly what was compared. Your original wording stays unchanged in the input boxes.

More text tools