How PDFMerger.io Works
A plain-English explanation of what happens when you use our tools — and why your files never leave your device.
The short version
When you open PDFMerger.io and use any tool, everything happens inside your browser tab. Your PDF files are read from your hard drive, processed in memory using JavaScript, and the result is written back to your hard drive — all without any data ever leaving your device. There is no upload step, no server, and no cloud storage involved.
The libraries powering it
pdf-lib
Handles all PDF manipulation: merging, splitting, rotating pages, removing pages, compressing, and unlocking password-protected files. It reads the binary structure of PDF files directly in the browser and produces new PDFs without any server-side rendering. The output quality is identical to the input — images and fonts are not re-encoded.
pdfjs-dist (PDF.js)
Mozilla's PDF rendering engine. PDFMerger.io uses it to generate thumbnail previews of your PDF pages so you can visually verify files before processing. It renders PDF pages to an HTML canvas element — entirely in the browser.
Tesseract.js (OCR)
A WebAssembly port of the Tesseract OCR engine. When you use the PDF OCR tool, each page is rendered to a canvas at 2× resolution and fed to Tesseract running locally in your browser. The WASM binary and language data are loaded from a CDN on first use — your PDF content is never sent anywhere.
react-signature-canvas + pdf-lib (Sign PDF)
The Sign PDF tool captures your signature using a canvas element (draw, type, or upload). The signature is converted to a PNG image and embedded into the PDF using pdf-lib's image embedding API — all in memory. No server is involved at any step.
pdf-lib (Edit, Organize, Crop, Watermark, Page numbers, Fill forms)
The page tools write your changes straight into the PDF's own structure. Organize copies pages into a new order without re-rendering them, Crop changes each page's visible box, and Edit, Add Watermark and Add Page Numbers draw text, images and shapes into the page content. Fill PDF Forms sets the values of the form's fields and can flatten them into the page. Text you didn't touch stays selectable.
AES-256 encryption (Protect PDF and Unlock PDF)
Protect PDF encrypts the file with AES-256 (PDF 2.0, security revision 6) using @cantoo/pdf-lib, a fork of pdf-lib that supports encryption. The password you type is used in the page's memory to derive the key and is never sent or stored. Unlock PDF does the reverse with the password you already know.
Redact PDF: pages rebuilt from scratch
Drawing a box over text only hides it. Redact PDF renders every page that has a box with PDF.js, burns the black boxes into that image, and builds a new page from the image alone. The page's original text, images and drawings are not copied into the new file, so there is nothing underneath to recover.
libheif (HEIC to PDF)
iPhone HEIC photos are decoded by libheif compiled to WebAssembly, the same decoder many desktop apps use, running in your tab. Each photo is turned the right way up and placed on its own page with pdf-lib.
PDF.js + a built-in spreadsheet writer (PDF to Excel)
PDF.js reports where each piece of text sits on the page. PDF to Excel groups that text into rows and columns, turns amounts and percentages into real numbers, and writes the .xlsx file itself with JSZip. No spreadsheet service is involved.
PDF.js + jsdiff (Compare PDF)
The Compare PDF tool reads the words of both PDFs and where each one sits on the page with PDF.js, then finds the added, removed and changed words with jsdiff, a word-level diff library. The boxes you see are drawn over the rendered pages in your browser. Neither document is sent anywhere.
What happens step by step when you merge PDFs
- 1You drag files onto the merge area. The browser reads each file from your disk using the File API — a standard browser feature that gives JavaScript access to local files you explicitly select.
- 2PDF.js renders the first page of each file to a canvas element to generate the thumbnail previews you see in the file list. This happens entirely in your browser's memory.
- 3You click "Merge PDF". pdf-lib opens each PDF's binary structure, extracts the page objects, and writes them into a single new PDF document — all in memory.
- 4The finished PDF bytes are converted to a Blob (a temporary in-memory file object) and a download link is created using URL.createObjectURL(). Your browser's native download mechanism saves it to your Downloads folder.
- 5When you close the tab, all data is cleared from memory. Nothing persists anywhere.
Privacy — what data we collect and what we don't
PDF formats and compatibility
PDFMerger.io supports standard PDF files (any version). It does not currently support PDF/A, PDF/X, or encrypted PDFs with unknown passwords. The tools work with PDFs from Adobe Acrobat, Microsoft Word, Google Docs, macOS Preview, LibreOffice, scanners, and browser print-to-PDF.
Browser and device requirements
Any modern browser works: Chrome, Firefox, Safari, Edge, and Brave on desktop and mobile. Performance depends on your device's available RAM. Large PDFs (100 MB+) process more slowly. If the tab becomes unresponsive on very large files, try splitting the job into smaller batches.
Why browser-based processing matters
Most online PDF tools upload your files to a server, process them there, and send the result back. This means your potentially sensitive documents pass through a third party's infrastructure. With PDFMerger.io, the processing chain never leaves your device — there is no infrastructure risk because there is no infrastructure involved in handling your files.