Skip to content

Compare Two PDFs (Text Differences)

See what changed between two versions of a document: removed, added and changed lines with the changed words highlighted, page by page.

Drop files here or click to choose Files never leave your device

    How to use Compare Two PDFs (Text Differences)

    1. Add two PDFs: the old version first, then the new one.
    2. Press Start.
    3. Read the list of differences: removed lines in red, added lines in green, and changed lines with the changed words marked.
    4. Download the report as text to keep it or send it.

    How Compare Two PDFs (Text Differences) works

    Line by line, then word by word

    The text of both PDFs is read with pdf.js and compared line by line with a longest-common-subsequence algorithm. When a line was changed, its words are compared again so you see exactly what was edited.

    Page numbers

    Each difference shows the page in the old and the new version, so you can find it quickly even when pages have moved.

    What is compared

    Only the text is compared, not fonts, colours, pictures or layout. Moving a paragraph shows as removed in one place and added in another.

    Comparison

    This site (in-browser)Typical upload-based sites
    Your filesNever leave your deviceSent to a remote server
    Waiting timeNo upload, no download queueUpload + processing + download
    LimitsNoneOften file-size or daily limits
    Works offlineYes, once loadedNo

    Tips for the best result

    • Use it to check what was changed in a contract before signing the new version.
    • Run OCR PDF on scanned versions first.
    • Compare exported PDFs of two Word versions to see edits when track changes was off.
    • For pictures and drawings, use Compare Two Images on the exported pages.

    Private by design

    Compare Two PDFs (Text Differences) runs entirely inside your browser, in background threads (Web Workers) that use your device's own processor. Your files are never uploaded to our servers, so nobody else can see them, and processing starts instantly with no upload or download wait. Once the page has loaded, the tool keeps working even without an internet connection.

    Related tools

    Frequently asked questions

    Does it compare layout and pictures?

    No, only text. Visual changes are not shown.

    Can I compare Arabic documents?

    Yes, Arabic lines are read right to left and compared like any text.

    Why is a whole paragraph marked when I changed one word?

    If the line breaks moved, whole lines differ; the changed words are still marked inside them.

    Is there a size limit?

    Very long and very different documents may be too big to compare in the browser; compare part of them.

    Is my PDF uploaded?

    No. The PDF is opened and changed in your browser with open-source libraries (pdf.js, pdf-lib or qpdf compiled to WebAssembly). It never leaves your device.

    Does it work with password-protected PDFs?

    A PDF that asks for a password to open must first be unlocked with Unlock PDF, using its password. Then use the unlocked copy here.

    Is there a size or page limit?

    There is no upload limit because nothing is uploaded. Very large PDFs (hundreds of pages or hundreds of MB) need more memory and time, especially on phones.