Text compare
Compare two versions of a text and see exactly what changed: added text in green, removed text in red, line by line or word by word.
Your files stay on your device. Nothing is uploaded.
Step 1: Paste the two texts
Step 2: How to compare
Step 3: Differences
How to compare two texts
-
Paste both versions
Paste the original on the left and the changed version on the right.
-
Choose how to compare
Line by line for code and lists, word by word for edits inside sentences. You can ignore capital letters and extra spaces.
-
Read the differences
Added text is green and underlined, removed text is red and crossed out, with a count of changes.
About this tool
Line or word
Line by line marks each changed line as removed and added, which is clear for code, lists and data. Word by word shows a changed word inside a sentence, which suits contracts, essays and articles.
How it works
The comparison uses the same method as version control tools: it finds the longest parts the two texts share and marks the rest as added or removed.
Private by design
Contracts, code and private documents never leave your device: the comparison runs in your browser.
Privacy
This tool runs in your browser, on your own device. Your files and text are not uploaded to our server and we cannot see them. When you close or reload this tab, they are cleared, along with the results.
Frequently asked questions
Can I compare files?
Open each file, copy its text and paste it into the boxes. For Word files, use Word to text first.
Why is a whole line marked as changed?
In line mode, one changed character changes the whole line. Switch to word by word to see the exact words.
Is my text uploaded?
No. The text stays in your browser and is never sent anywhere.
Can I swap the two sides?
Yes. Click Swap the two texts.
Related tools
- Replace Find and replace Replace words or patterns in text, with a count of changes.
- Dedupe Remove duplicate lines Delete repeated lines from a list, keeping the first copy.
- A › Z Sort lines Sort lines alphabetically, by number, by length or shuffle them.
- DOCX › TXT Word to text Get the plain text out of a Word document.
- { JSON } JSON formatter Format, validate, minify and sort JSON.
- Words Word counter Count words, characters and sentences as you type.
- Aa › AA Case converter Change text to upper, lower, title or sentence case.
- PDF › TXT PDF to text Copy all the text out of a PDF.