How to Compare Two Texts and Find the Differences
A contract comes back “with a few small edits”. A colleague rewrote part of a report. A config file worked yesterday and doesn’t today. Reading both versions side by side and hoping to spot the change is slow and unreliable. The free Text Compare tool highlights every difference — and runs entirely in your browser, so confidential text stays on your device.
Compare text in three steps
- Paste both versions. Put the original on the left and the changed version on the right — or open
.txt,.csv,.json, code or subtitle files. - Choose how to compare. Lines, Words or Characters; side by side or inline.
- Review. Removed text is red, added text is green. Copy the differences or download them as a
.difffile.
Lines, words or characters?
- Lines — best for code, lists and documents where whole lines are added or removed.
- Words — best for prose: contracts, essays, letters. You see exactly which words in a sentence changed.
- Characters — for spotting a single changed digit in an account number or a typo fix. Best on paragraphs rather than whole books.
Ignore what doesn’t matter
Ignore case treats “Payment” and “payment” as the same. Ignore spaces stops changes in indentation or spacing from being counted — essential when text was copied from a PDF or re-indented in an editor.
Comparing Word and PDF documents
Copy the text out of each document and paste it in. Text copied from PDFs often has broken lines and extra spaces; run both versions through Text Cleaner first (join broken lines, collapse spaces) so the comparison shows real changes, not formatting noise. See how to clean up text copied from a PDF.
What is a .diff file?
A standard “unified diff” that developers and tools like Git understand. Removed lines start with -, added lines with +. It’s a compact way to send someone just the changes.
Frequently asked questions
Is my text uploaded?
No. The comparison runs entirely in your browser.
How long can the texts be?
Thousands of lines compare in a moment. Character mode on very long texts is slower.
Can it compare Nepali text?
Yes. Any language works in Lines and Characters mode, and Words mode uses your browser’s language-aware word splitting.