Code tool

Compare PDFs

Select two PDFs to see a page count summary and visual pixel differences. Files stay in this browser and are never uploaded.

In-browser processingNo account requiredPrivacy details ↗
No file selected
No file selected

Visual RGB comparison only. Each PDF: 50 MB and 100 pages maximum; rendered canvases are capped at 2,000 px and 256 MB working memory.

Choose two PDFs to begin.

A QUICK WALKTHROUGH

How to use this tool

  1. Choose two PDF files within the size and page limits.
  2. Set the pixel tolerance and start the visual comparison.
  3. Review the page summary and difference previews; this compares rendered appearance, not text or document meaning.

Visual comparison only

PDF.js renders both documents page by page to bounded browser canvases. The result reports changed pixels and a heatmap-style preview; it does not compare text, metadata, structure, accessibility, or semantic meaning.

Thresholds and limits

The channel tolerance is adjustable from 0 to 64. Files are limited to 50 MB each, 100 pages each, 256 MB of working canvas memory, and 2,000 pixels on the longest rendered side. Pages with different sizes are compared over the shared canvas area and reported clearly.

Private local processing

Both files are read locally with PDF.js. No upload or server request is used for document data. Temporary object URLs, PDF documents, render canvases, and image buffers are released when a comparison is replaced, cleared, cancelled, or the page is left.

GOOD TO KNOW

Common questions

Does this compare PDF text?

No. It compares the pixels produced by rendering each page. A text-aware or semantic comparison may reach a different conclusion.

What does tolerance mean?

It is the per-channel RGB difference ignored for a pixel. Higher values reduce sensitivity to anti-aliasing and tiny rendering changes.

Are my PDFs uploaded?

No. The files are opened and rendered in this browser with temporary local data.

Why are different page sizes reported?

The pages are rendered at a common bounded scale and compared over the shared area; the summary also reports the size mismatch.