Compare Two Texts or Files Online
Paste two texts or drop in two files — Word, PDF, Excel or plain text — and every difference is highlighted: lines added, removed and changed, and the exact words that changed inside each line. Nothing is uploaded; both documents are read and compared in your own browser.
What would you like to do next?
About Text Diff
Confileo's Text Diff tool highlights every difference between two pieces of text. Everything runs in your browser, free and without signup, and nothing is uploaded.
Spotting what changed between two versions of a contract, article or code file by eye is slow and easy to get wrong. A diff tool highlights every change instantly.
Two versions of a document rarely arrive as text you can paste. They arrive as files: contract-v1.docx and contract-v2.docx, last month's price list and this month's, a report exported to PDF before and after the review. So the comparison starts with the file itself — pick or drop a .docx, .pdf, .xlsx, .csv, .txt, .md, .json or any source file on either side and its text is pulled out and laid into the panel for you.
That extraction runs inside your browser. A .docx and an .xlsx are ZIP containers, so they are unpacked here; a PDF is read with the same engine your browser uses to display one. Nothing is uploaded, which matters more for this tool than for most: the documents people most often need to compare are contracts, payslips, offers and medical reports, and a comparison that requires sending both versions to a server is not one you can honestly run on those. One limit worth knowing: a PDF that is a scan holds pictures of pages and no text at all, so run it through OCR first.
Putting two versions of a text side by side and hunting for the differences is precisely the task people are worst at. A changed figure, a swapped date, an inserted "not" — the eye skims past them because it believes it already knows the sentence. A line-by-line comparison finds them immediately.
The result comes side by side, with the original on the left and the new version on the right, or as one unified list in which removed lines start with a minus and added lines with a plus — the same shape Copy Diff puts on your clipboard. Above it sit the counts of lines added, removed, modified and unchanged, and a similarity percentage: the share of lines identical in both, measured against the longer text. When only capitals or spacing differ, tick Ignore Case, Ignore Whitespace or Trim Lines before comparing, and those lines stop counting as changes.
The most serious everyday use is contract review. When the other side returns a "lightly adjusted" draft, comparing it against your last version is the only reliable check. In practice the meaningful edits are rarely in the headline clauses; they sit in notice periods, liability caps, termination rights and payment terms — short passages that read as boilerplate and are easy to skim.
Other cases that come up constantly: diffing two exports of a price or customer list to see what moved since last month; checking a translation against the approved source; confirming that what was published matches what was signed off; and, for students and researchers, seeing exactly which passages changed after feedback.
One practical tip about interpreting the result. Text copied out of a PDF usually carries line breaks in the middle of sentences, so whole paragraphs light up as changed when only the wrapping differs. Compare paragraph by paragraph in that case rather than pasting the whole document at once, and the output becomes far more useful.
Everything runs in the browser with no account. Your text is not stored or transmitted anywhere, which is the point when the documents are contracts or internal material.
Quick facts
- Price
- 3 credits per use — runs in your browser (free every month: 50 credits as a guest, 300 with a free account)
- Signup
- Not required
- Max file size
- Up to 100 MB per file
- Your files
- Deleted automatically after processing
- Works on
- Any browser — desktop, tablet, mobile
- Watermark
- None on your output
How to use Text Diff
- Paste the original text on the left, or press “Choose a file” and pick a Word, PDF, Excel or text file.
- Do the same with the new version on the right.
- Press Compare Texts (with a file on each side it runs by itself) and every added, removed and changed line is highlighted, with the changed words marked inside it.
Why use Confileo
- ✓Try it free — 50 credits a month with no account and 300 a month with a free one; no watermarks and no credit card.
- ✓No signup or account required — start using it instantly.
- ✓Your files are processed securely and deleted automatically for full privacy.
- ✓Works in any browser on desktop, tablet and mobile — nothing to install.
- ✓Fast processing built to handle real, everyday document workloads.
Text Diff — Frequently asked questions
Can it compare long documents?
Yes. Paste large blocks of text and every change is highlighted line by line.
Can it tell me how similar two texts are?
Yes. After a comparison the summary shows a similarity percentage: the share of lines that are identical in both versions, measured against the longer of the two. Beside it are the counts of lines added, removed, modified and unchanged. It measures how much of a document was left as it was, not plagiarism — a reworded sentence counts as a changed line, and nothing is checked against other sources.
How do I compare two text files?
Press “Choose a file” above each box, or drop the files onto them. The text is read out of each file in your browser and laid into the box, and as soon as both sides are filled the comparison runs by itself. It reads .txt, .csv, .md, .json and most code files, Word .docx, Excel .xlsx, PowerPoint .pptx, OpenDocument .odt and PDF, up to 8 MB each.
Does it highlight small changes like a word or symbol?
Yes. A changed line is marked, and inside it every changed word is highlighted — a word being any run of characters between spaces, so a single changed digit or symbol lights up the word it sits in.
What is text comparison used for?
Reviewing contracts before and after edits, tracking changes in code or articles, and confirming differences between versions.
Can it compare code or formatted text?
Yes. Paste plain text or code and the line-by-line diff shows exactly what changed.
How do I compare two texts online?
Paste the first text on one side and the second on the other. Differences are highlighted line by line straight away — free, with no signup and nothing to install.
Does it detect changes inside a single line?
Yes. Beyond added and deleted lines, individual changed words are marked — essential when only one figure, name or date has moved.
How do I compare two versions of a contract?
Drop the old and the new version, Word or PDF, onto the two boxes, or paste the text of each. Additions, deletions and reworded clauses stand out immediately, which is the fastest way to check what actually changed between two drafts before signing.
Is my text uploaded to a server?
No. The comparison runs entirely in your browser, so what you paste never leaves your device and is not stored. That is what makes it usable on confidential material.
Can I compare two PDF or Word files?
Yes. Press “Choose a file” on each side, or drop the files onto the boxes: .docx, .pdf, .xlsx, .pptx, .odt, .csv, .txt and most code files are read straight in your browser, up to 8 MB each. Old .doc and .xls files cannot be read, so save them as .docx or .xlsx first, and a scanned PDF holds pictures of pages rather than text, so run it through OCR before comparing.
Does it work for source code?
Yes. Code is compared line by line with indentation preserved — handy for checking two versions of a file when you are not using version control.
Is there a limit on how much text I can compare?
Files can be up to 8 MB each, and a few thousand lines compare in a moment because the work happens in your browser. Past about 2,200 lines on each side, the tool switches to a quicker pass that pairs lines by position, so one inserted line can make the lines after it show as changed; for very long documents, compare a section at a time.
Can it ignore differences in spacing or capitalisation?
Yes. Tick Ignore Case to treat "Total" and "total" as the same line, Ignore Whitespace to treat runs of spaces and tabs as a single space, or Trim Lines to ignore spaces at the start and end of each line, then compare. The switches decide which lines count as changed; inside a changed line, the words are still compared exactly as typed.
Can I compare two strings, like two IDs or two lines of code?
Yes. Paste one string into each box and compare: if they differ, the line is marked as changed and the words that differ are highlighted. A word here is any run of characters between spaces, so in a string with no spaces, such as a hash, an ID or a URL, the whole string is highlighted rather than the one character that changed. If only capitals differ, tick Ignore Case.
Is this tool really free?
You can try it free: 50 credits without an account and 300 with a free account, renewed on the 1st of every month. Every tool uses credits — file tools 3 per file and the heavy ones 12. No watermark, no credit card. Beyond the monthly credits, Pro gives open use with no credits to count, or you can buy a credit pack.
Do I need to create an account?
No. You can use the tool straight away without signing up or logging in.
Are my files safe and private?
Yes. A file sent to our servers travels over an encrypted HTTPS connection and is deleted automatically after processing; tools that work in your browser never upload it. We don't open, read or sell your files.
Does it work on my phone?
Yes. The tool runs in any modern browser, so it works the same on desktop, tablet and mobile with nothing to install.