What is document comparison?
A document comparison tool detects the differences between two versions of a document. After you upload Word (.docx), PDF or plain text files, it highlights every added, removed and unchanged line in color, line by line.
All processing is done locally in your browser — your documents are never uploaded to any server.
How to compare documents
- Upload the original as Document A and the modified version as Document B. Word, PDF and common text formats are detected automatically.
- Click Compare and the tool extracts the text of both files and highlights the differences line by line.
- Green lines are added, red lines are removed, and gray lines are unchanged. Use Export diff to download the result as a text file.
Supported formats
- Word (.docx) — extracts text from the document body.
- PDF — extracts text from every page.
- Text files — .txt, .md, .html, .json, .csv, .xml, .log and source code files are read directly.
Usage tips
- Comparison quality depends on the extracted text. Scanned PDFs without a text layer are not supported.
- Large documents may take a few seconds to compare locally.
- To compare formatting changes, export both versions as plain text first.