Text Compare
Paste two versions of a text and see exactly what changed, line by line or word by word.
DIFFERENCES
Loading the comparison…
How the differences are shown
- Red text was in the original but is gone from the changed version.
- Green text is new in the changed version.
- In the line view on a wide screen, a red line next to a green one is a line that was changed. Lines that only exist on one side leave a gap on the other.
- On a phone the line view is a single column, with − before removed and + before added lines.
The status bar counts changed, added and removed lines, so you can see at a glance how much a text was edited.
Comparing documents from Word or PDF
Copy the text out of both documents and paste it in. If text from a PDF has line breaks in the middle of sentences, run it through Remove line breaks first, or compare by words, so the broken lines don't show up as changes.
When the texts look the same but aren't
If every line is marked as changed while the text looks identical, the difference is usually invisible: spaces versus tabs, trailing spaces, or different line endings from Windows and Mac. Turn on Ignore spaces to compare only the visible text. Line endings are already treated as the same.
How to compare two texts
- 1
Paste both versions
Put the original text on the left and the changed text on the right. The differences update as you type.
- 2
Choose how to compare
Compare by lines for code, lists and documents, or by words to spot small edits inside sentences. Turn on Ignore case or Ignore spaces to skip changes that don't matter.
- 3
Read or copy the result
Removed text is red, added text is green. Copy the differences as plain text with + or - in front of each changed line.
Frequently asked questions
What's the difference between comparing lines and words?
Lines shows which whole lines were added, removed or changed, with line numbers, which suits code, lists and lists of settings. Words marks the exact words that changed inside a sentence, which suits edited prose.
What do Ignore case and Ignore spaces do?
Ignore case treats "Hello" and "hello" as the same. Ignore spaces treats lines as the same when they only differ in spaces, tabs or indentation, which helps when a text was re-indented or reformatted.
Is my text uploaded?
No. The comparison runs in your browser, so both texts stay on your device. That makes it safe for contracts, code and other private documents.
Can I compare code?
Yes. Compare by lines to see changed lines with their line numbers, the way version control tools show them. For JSON or YAML, use the Diff checker instead. It compares the data itself, so formatting and key order don't show up as changes.
How big can the texts be?
There's no fixed limit. Texts of a few thousand lines compare in a moment; very large texts with many changes take longer because every line is matched against the other version.