Compare 2 Documents Online: Step-by-Step Guide
In this article
You can compare two documents online in a few minutes using a free web tool or your word processor's built-in compare feature. The quickest route is to open a reputable online diff tool, paste or upload both versions, and read the highlighted changes side by side. If the files are sensitive, use the compare feature in Microsoft Word or Google Docs instead, because it keeps the files on your own device or account.
What You'll Need
- Both documents in a format you can open: .docx, .pdf, .txt, or plain text you can paste.
- A web browser on a computer or tablet. Comparing long documents on a phone screen is possible but slow and error-prone.
- A stable internet connection if you use an online tool.
- For sensitive files: Microsoft Word (desktop) or Google Docs, so the documents stay within your own software or account.
- Permission to share the files if they contain other people's personal data. Uploading to a third-party site is a form of sharing.
Step-by-Step
- Decide whether the files can leave your device. Contracts, medical records, HR files and anything with personal data should not be uploaded to an unknown website. Use Word or Google Docs for those. For public or low-risk text, an online diff tool is fine.
- Make clean copies. Save each version with a clear name such as contract-v1.docx and contract-v2.docx. If the documents contain tracked changes or comments, accept or reject them first, otherwise the comparison will show both the tracked edits and your new edits mixed together.
- Open a reputable online comparison tool. Search for a document diff or text compare site that lets you paste text or upload two files. Look for a clear privacy statement and avoid sites that demand an account or payment before showing results.
- Load the older version as the original and the newer version as the revised copy. Most tools label the boxes Original and Revised, or Left and Right. Getting this order wrong reverses every addition and deletion, which makes the output confusing.
- Choose the comparison mode. For plain text, a word-level diff is usually clearest. For formatted documents, use a document compare that preserves paragraphs and tables. If the tool offers ignore options, such as ignoring whitespace or letter case, turn them on only if you do not care about those differences.
- Run the comparison and read the highlighted output. Additions are normally shown in one colour and deletions in another, often with strikethrough. Work through the changes from top to bottom and note anything that matters.
- Check the summary count. Most tools show how many insertions and deletions were found. If the count is far higher than you expected, the documents may use different formatting or line breaks, which creates false differences. Re-run with formatting ignored to see the real text changes.
- Export or copy the result. Many tools let you download an HTML or PDF report. If there is no export, copy the highlighted text into a new document before closing the tab, because some sites do not save your session.
- Verify the important changes in the original files. Open both documents and confirm the key differences yourself, especially dates, numbers, names and clauses. A diff tool highlights text changes but does not judge whether a change is legally or factually correct.
Common Mistakes
- Uploading confidential files to a random site. Once uploaded, you may not be able to delete the copy. Use desktop software for anything sensitive.
- Comparing a PDF with a Word file. PDF conversion changes line breaks and spacing, so the tool reports hundreds of false differences. Convert both to the same format first.
- Leaving tracked changes on. Word's compare feature and online tools will show tracked edits as changes, doubling the noise. Accept or reject them before comparing.
- Swapping original and revised. This reverses additions and deletions. Always put the older file in the Original box.
- Trusting the tool's summary without reading. A high change count can be caused by formatting, not content. Skim the actual highlighted text.
- Ignoring tables and images. Many free tools compare text only. Tables may be flattened and images skipped, so check those manually.
Tips
- For long documents, compare section by section. It is easier to review and less likely to hit a tool's size limit.
- Use Word's built-in Compare feature (Review tab > Compare > Compare Documents) when you need a clean, tracked-changes style report you can accept or reject.
- In Google Docs, use File > Version history to see changes between saved versions of the same document. It does not compare two separate files, so for that, paste both into one document or use a diff tool.
- Keep a copy of the comparison report with the final document so you have a record of what changed.
- If the documents are in different languages or use heavy formatting, expect more false positives and allow extra review time.
Troubleshooting
- The tool shows every line as changed. This usually means different line endings or formatting. Re-save both files as plain text (.txt) and compare again, or enable the ignore whitespace option.
- The upload fails or the page freezes. The file may be too large. Split it into smaller parts or use desktop software. Try a different browser and disable extensions that block scripts.
- The comparison misses a change you know exists. Check that you loaded the correct files and that the tool compares the whole document, not just the visible page. Some tools only compare pasted text, so paste the full content.
- Tables or images are not compared. Many free tools handle text only. Compare tables and images manually in the original files.
- You closed the tab and lost the report. Re-run the comparison and export or copy the result this time. Some tools offer a shareable link, but check the privacy implications before using it.
- You are not sure the site is trustworthy. Close it and use Word or Google Docs instead. No comparison is worth exposing confidential data.
Frequently Asked Questions
Can I compare two PDFs online?
Yes, many online tools accept PDFs, but results vary. Scanned PDFs are images, so text comparison will not work unless the tool runs OCR. For reliable results, convert both PDFs to text or Word first.
Is it safe to upload documents to an online compare tool?
Only if the documents are non-sensitive and you trust the site. Uploading is sharing. For contracts, personal data or confidential business files, use desktop software such as Microsoft Word's Compare feature.
Does Google Docs compare two separate documents?
Not directly. Google Docs shows version history for a single document, which lets you see changes over time. To compare two separate files, paste both into one document and use a diff tool, or use Word's Compare feature.
Why does the tool show changes I did not make?
Formatting, line breaks, curly versus straight quotes, and hidden characters all create false differences. Re-save both files as plain text or enable the ignore whitespace and ignore case options.
Can I compare documents on a phone?
You can, but it is awkward. Online tools work in mobile browsers, yet long documents are hard to review on a small screen. Use a computer for anything important.
What is the best free way to compare two Word documents?
Microsoft Word's built-in Compare feature is free if you already have Word. It produces a tracked-changes report you can review, accept or reject. For plain text, any reputable online diff tool works.