Compare two texts
Paste the original and the changed version to see exactly what was added, removed or changed, highlighted word by word or line by line. The comparison runs on your device, so drafts and contracts stay private.
Paste two versions above to see what changed.
- Your text stays on your device
- Free, no sign-up
- Works on phone and desktop
How to compare two texts
- 1
Paste the original text in the left box and the changed version in the right one.
- 2
Read the result below: removed text is struck through in red, added text underlined in green, with a count of the changes.
- 3
Choose word by word for prose or line by line for lists and line-based text, and side by side or inline.
- 4
Step through the changes with Next change, and tick the ignore options if case, spacing or punctuation don’t matter.
Features
Word or line level
See exactly which words changed inside a sentence, or which lines were added, removed or edited in a list.
Ignore what doesn’t matter
Skip differences in capital letters, extra spaces and line breaks, or punctuation, to see only real edits.
Long texts stay smooth
The comparison runs in the background as you type, so even book-length texts don’t freeze the page.
Private
Both texts are compared on your device. Nothing is uploaded or saved, so it is safe for contracts and drafts.
Word by word or line by line?
The two modes answer different questions. Word by word reads each text as a sequence of words and finds the smallest set of words to remove and add to turn one into the other. Where the lines happen to break doesn’t matter, which is what you want for prose that was re-wrapped, pasted from an email or reflowed by a word processor. Line by line compares whole lines first, then marks the words that changed inside each changed line. It suits text where every line is a unit of its own: lists, addresses, subtitles, song lyrics, spreadsheet rows or settings files. Here is what each mode reports for a few typical edits:
| Edit | Word by word | Line by line |
|---|---|---|
| One word changed in a sentence | 1 change: 1 word added, 1 removed | 1 change: 1 line added, 1 removed |
| Same paragraph, lines broken in different places | No differences | 1 change: 2 lines added, 2 removed |
| An item added to a list | 1 change: 1 word added, 0 removed | 1 change: 1 line added, 0 removed |
| Capital letters fixed | 2 changes: 2 words added, 2 removed | 1 change: 1 line added, 1 removed |
With Ignore case turned on, the last example becomes “No differences”. The ignore options never change your text, only what counts as a difference.
Essays, drafts and feedback
Writers compare drafts to see what an editor, a teacher or a co-author actually changed when the document came back without tracked changes. Paste your version on the left and theirs on the right, keep word mode on, and step through the edits with Next change. Students use the same trick to check that a revision really addressed the comments, and to confirm a final copy matches the version that was approved.
Contracts and other documents where every word counts
In an agreement, a changed date, amount or “not” matters more than a whole rewritten paragraph of boilerplate. Comparing the version you agreed to with the one sent for signature shows quiet edits such as 30 days becoming 15, or a clause that disappeared. Turn on Ignore punctuation only if you are sure commas don’t matter: in a contract they sometimes do. Because the comparison runs on your device, confidential documents never leave it. A comparison is a reading aid, not legal advice; have anything important reviewed by a professional.
Comparing without code
Programmers have diff tools built into their editors, but the same idea helps with everyday text: two versions of a mailing list, an exported report from this month and last, a product description before and after an update, or two sets of meeting notes. Line mode with line numbers makes it easy to find each change in the original file. To clean a list before comparing it, sort it with alphabetical order or strip repeats with remove duplicate lines, so the comparison shows real differences rather than reordering. For text pasted from a PDF, fix the broken lines first with remove line breaks, and keep drafts between visits in the online notepad.
Frequently asked questions
How do I compare two texts for differences?
Paste the older version into the Original box and the newer one into the Changed box. The differences appear straight away below them: words that were removed are struck through in red and words that were added are underlined in green. The summary line says how many changes there are and how many words were added and removed.
What is the difference between word and line mode?
Word mode treats the text as a stream of words, so it pinpoints a single changed word in a long paragraph and doesn’t care where the lines break. Line mode compares whole lines, like most code diff tools, and then marks the changed words inside each changed line. Use word mode for essays, letters and contracts, and line mode for lists, addresses, lyrics or anything where each line stands on its own.
Why does it say the texts match when they look different?
One of the ignore options is probably on. With "Spaces and line breaks" on (the default), text that only differs in spacing or where lines wrap counts as the same; with "Case" on, "Monday" and "monday" match; with "Punctuation" on, "however," and "however" match. Turn the options off to see every difference.
Can I compare Word documents or PDFs?
Copy the text out of each document and paste it here. Formatting such as bold or fonts isn’t compared, only the words. For two PDF files, our sister site FolderNook has a Compare PDF tool that reads the text out of the files for you, also without uploading them.
Is there a limit on how much text I can compare?
No fixed limit: texts of several hundred pages work, and the comparison runs in the background so typing stays smooth. If two very long texts have almost nothing in common, the comparison is simplified after a few seconds and the result says so, showing the unmatched stretches as removed and added whole.
Are my texts saved or sent anywhere?
No. Both texts stay in your browser’s memory and are compared on your device. They are not uploaded, not saved and not put in the page address; the link only keeps your settings, such as word or line mode. Close the page and they are gone.
More free tools
- Word CounterWords, characters and reading time.
- Character CounterCharacters and platform limits.
- Case ConverterUpper, lower, title and sentence case.
- Online NotepadNotes that save in your browser.
- Alphabetical OrderSort lines A to Z.
- Morse Code TranslatorText to Morse and back, with sound.
- Number to WordsNumbers spelled out, check style too.
- Binary TranslatorText to binary and hex, and back.
- Font GeneratorFancy text styles to copy.
- JSON FormatterFormat and validate JSON.