Tool guide
About this tool.
The tool reads the text layer of both PDFs with pdf.js in your browser, joins the selected pages of each file into one text and compares the two texts line by line. Every page ends with a line break, so a last line that is the same in both files counts as unchanged even when one file has more pages. Nothing is uploaded.
- Rows are unchanged, changed, added or removed, and a changed row marks the part of the line that differs. The summary counts changed, added and removed rows and the lines that match.
- The report lists, for each file, the line where every selected page starts, so a row can be traced back to its page.
- Only text is compared. Layout, fonts, images and annotations are ignored, and a scanned page has no text layer, so the tool stops and says so instead of reporting an empty result.
- Each file may have at most 100,000 characters and 10,000 lines of selected text, so choose fewer pages for long documents.
Choose the Before PDF and the After PDF. The tool extracts the text of both and lists the lines that were changed, added or removed.
Leave Pages blank to compare all pages, or enter ranges such as 1-3, 5, 8-, last, odd or even. The same selection applies to both files.
Choose Side by side or Unified view to read the rows, or the JSON or readable report to save them. Ignore options only affect matching, not the text you see.
The tool compares the text layer only. It does not compare layout or images, and it does not read scanned pages.
- Compare two versions of a contract to see which sentences changed.
- Check that a regenerated report has the same text as the last release.
- Enter 2-3 in Pages to compare only the same chapter in both files.
- Turn on Ignore letter case to skip changes that only differ in capitals.
- Switch to Unified view to read removed and added lines in one column.
- Save the JSON report to keep the rows and the page start lines.
- Everything runs locally with pdf.js; the PDFs never leave your device.
- The files are read one after the other, so memory use stays near the larger file.
- Each PDF may be up to 50 MiB, with at most 2,000 selected pages, 100,000 characters and 10,000 lines of text.
- Text comes out in the order the page draws it, so multi-column layouts follow drawing order.
- Ignore spaces and tabs and Ignore letter case change matching only; the rows show the text as pdf.js extracted it, with runs of spaces inside a line collapsed.
- A password-protected PDF cannot be read; remove the password first.
- Errors name the file they come from, using its file name.