# Compare two PDFs

> Compare two PDFs page by page in your browser and see what changed, in the pixels and the text. Free, and the files are never uploaded.

Source: https://visualci.com/tools/compare-pdfs/

Choose two versions of a PDF to see which pages changed and how. It's free, there's no sign-up, and both files stay on your computer.

<div id="compare-pdfs" class="tool-mount"><noscript>This tool runs in your browser and needs JavaScript.</noscript></div>

## How it works

- **Pages are lined up by what they draw**, so a page inserted near the start shows as one added page, not as every later page changed.
- **Each changed page is compared pixel by pixel.** Side by side, a diff with the changes in red, and a slider show what moved.
- **The text is compared line by line**, so a changed number or a reworded sentence stands out.

It's the same comparison [VisualCI](https://visualci.com/) runs on the PDFs your tests generate. Everything runs in your browser: VisualCI's diff code is compiled to WebAssembly, and [pdf.js](https://mozilla.github.io/pdf.js/) draws the pages. Nothing is sent to a server.

## Check every PDF your code generates

Invoices, statements, reports and labels change when the code that makes them changes. VisualCI compares every PDF your test suite generates on each pull request, and shows the pages that changed for someone to approve. [Compare PDFs in CI](https://visualci.com/docs/pdfs.md).
