pdfprivately
Back to Blog
How-To

How to Merge PDF Files: A Complete Guide

Learn how to merge PDF files completely free and private. Combine contracts, reports, and scanned documents into one file — all processed in your browser with no uploads.

pdfprivately TeamJuly 2, 20265 min read
merge PDFcombine PDFPDF mergerdocument assembly

When You Need to Merge PDFs

Merging PDFs is one of the most common document tasks. You might be combining scanned chapters of a book into a single file, assembling contract sections from different sources, merging multiple reports into one deliverable, or combining documents that a scanner split across multiple files.

Whatever the use case, the goal is the same: take two or more PDF files and produce a single, well-ordered document that preserves the content of each source.

How PDF Merging Works Under the Hood

When you merge PDFs, the underlying operation is surprisingly simple. Each PDF is a container of page objects — internal structures that store the text, images, and vector graphics for each page. A merge operation copies the page objects from each source PDF into a new output document, preserving their specified order.

pdf-lib handles this by reading each source PDF's internal page tree and copying page objects by reference into the output document. Because pages are copied as structured objects rather than being re-rendered, the merge is lossless — no content is re-encoded, no images are recompressed, and no text is re-rasterized. Every element of the original PDFs is preserved exactly as it was authored.

This is fundamentally different from printing pages to a new PDF or using a screenshot-based approach. A proper merge operates at the PDF structure level, maintaining the internal fidelity of each source page.

Step-by-Step: Merge PDFs with pdfprivately

1. Open the Merge PDF tool. No account or sign-up needed.

2. Drop your PDF files onto the upload area. You can add files individually or drag multiple at once. The tool reads them directly into browser memory — nothing is uploaded or transmitted.

3. Arrange the files in your desired order. Drag and drop to reorder entire documents or individual pages. The interface shows thumbnails so you can verify the sequence before merging.

4. Click "Merge." The tool combines all pages into a single PDF, preserving the order you specified.

5. Download your merged PDF. The entire process ran on your device — no copy of your files ever existed outside your computer.

What Happens to Bookmarks, Links, and Annotations

This is where understanding PDF internals matters. Each source document's internal bookmarks — the table of contents entries in the navigation pane — reference specific locations within their original document. When pages are copied into a merged document, those internal references do not automatically remap to the new page numbering. Bookmarks from the source PDFs will not carry over.

Interactive elements like hyperlinks, form fields, and annotations are generally preserved because they attach to individual page objects. A link that jumps to a URL still works. A filled form field on a page remains filled. But internal document links — "click here to go to page 5" — may break because the target page's position has shifted in the merged output.

For most users, this isn't a practical concern. The content of each page is perfectly preserved. If you need a combined document with navigable bookmarks, you can generate a new table of contents after merging.

Tips for Large Merges

Browser memory is the only constraint on client-side PDF merging. Modern browsers handle up to about 2 GB of PDF data before running into limits. For large merges exceeding 500 pages, these tips help:

  • Close other memory-heavy tabs — Gmail, Google Docs, and streaming sites consume significant browser memory. Freeing it up gives the merge operation more room to work.
  • Merge in batches — Combine files in groups of 10-20, then merge the intermediate results. This is more memory-efficient than merging 50 files at once.
  • Compress before merging — If your source PDFs contain large images, compressing them first reduces memory pressure during the merge. Use the Compress PDF tool with standard settings.
  • Watch total file size — If your combined files approach 1 GB, consider splitting the task into separate output documents rather than attempting a single massive merge.

The Privacy Advantage

Every merge operation described here runs entirely in your browser. Your files are read from your filesystem, processed by JavaScript running on your CPU, and the merged result is created in browser memory. At no point does your document content travel over a network.

This matters for contract negotiations, legal filings, medical records, and any document containing confidential information. The files you merge stay as private as they were on your hard drive — because they never leave it.

Try These pdfprivately Tools

Stay Updated

Get the latest PDF tips, privacy guides, and tool updates. No spam, no tracking — just useful content delivered to your inbox.

We respect your privacy. Unsubscribe anytime. No tracking, no analytics.